What is the difference between setImageBitmap and setImageDrawable?
I have an image which I would like to set dynamically from file. The tu
Actually, you may see the difference, if you sometimes use null as an argument:
imageView.setImageDrawable(null);
Drawable d = imageView.getDrawable(); // d == null
imageView.setImageBitmap(null);
Drawable d = imageView.getDrawable(); // d == some BitmapDrawable, != null
so if you are checking for existence of a drawable in ImageView, beware of it.