[android-developers] ExpandableListView How to get bitmap of each item separately
Hi, I am trying expand/collapse animation in expandable listview but i am stuck :( i have two group each with some dynamic number of items. so when first group expands, second group slides down (along with its child items) smoothly and displays first group child items with some alpha animation. I got idea for this animation but i have to get bitmap for each (group and child) and draw this bitmap on surfaceview canvas with some logic but problem is how to get bitmap for group/child items . I tried following and got first group bitmap : View mView = mExpandableListView.getChildAt(0); mView.setDrawingCacheEnabled(true); mView.setDrawingCacheQuality(DRAWING_CACHE_QUALITY_HIGH); Bitmap sweet = mView.getDrawingCache(); but how to get bitmap for particular group /child generically ? Please help me with your valuable comments :) Thanks and regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ExpandableListView How to get bitmap of each item separately
On Tue, Jan 31, 2012 at 8:41 AM, Mansoor musafir4frie...@gmail.com wrote: I tried following and got first group bitmap : View mView = mExpandableListView.getChildAt(0); but how to get bitmap for particular group /child generically ? Well, if getChildAt(0) get your the first one, replace 0 with the index of the ones you want. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en