Bitmap bitmap = ((BitmapDrawable)listItemIconDrawableObject).getBitmap(); BitmapDrawable d = new BitmapDrawable(bitmap); //use d whenever you want
Mohammad Abu Hmead
Bitmap bitmap = ((BitmapDrawable)listItemIconDrawableObject).getBitmap(); BitmapDrawable d = new BitmapDrawable(bitmap); //use d whenever you want
public Drawable getDrwableFromBytes(byte[] imageBytes) {
if (imageBytes != null)
return new BitmapDrawable(BitmapFactory.decodeByteArray(imageBytes,
0, imageBytes.length));
else
return null;
}