I believe doing this requires the following:
- When a list item is clicked, a bitmap of the list item is created.
- The bitmap is animated so it falls to the bottom of the screen and shrinks.
At the moment, I'm still stuck on the first step. How exactly would I create a bitmap of the list item? Here is my attempt so far:
- Code: Select all
@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
v.setDrawingCacheEnabled(true);
Bitmap bit = v.getDrawingCache();
v.setDrawingCacheEnabled(false);
// do something with bit
}
This does not work (when debugging, I see that the width and height of bit are -1). What am I doing wrong?
If you would like to give me some insight into the second step, that would be much appreciated, too.
Thank you for your time



