I have a ListActivity
that displays two pieces of information in each line of the list (one image sett in an ImageView
and a text description set in a TextView
). These information I get through a XML file from a download. Every thing works fine!!!!! :-).
On OnListItemClick
, I would like to get the Bitmap
from the ImageView
that the user selected.
To get an image from an ImageView
, I use this :
ImageView img = (ImageView) l.findViewById(R.id.imageViewXYZ);
img.buildDrawingCache();
Bitmap b = img.getDrawingCache();
But inside the onClick
event of the ListActivity
, how can I get the this bitmap?