Hi, this class is used to associate an image with a list view using a simple adater and use the following class
class MyViewBinder implements ViewBinder { public boolean setViewValue(View view, Object data,String textRepresentation) { if( (view instanceof ImageView) & (data instanceof Bitmap) ) { ImageView iv = (ImageView) view; Bitmap bm = (Bitmap) data; iv.setImageBitmap(bm); return true; } return false; } }
Jabbir basha
source share