When you load a bitmap from the resources like so:
iv.setImageResource(R.drawable.image);
- if the bitmap is reduced in quality by Scaletype, does it still save the whole original bitmap? (I would guess yes, because one could change the Scaletype on the fly and you would want to have the full quality.)
- if you load the same resources ID into multiple ImageView’s, is there only one bitmap stored in memory?
- would it be good practice to scan through the view hierarchy and manually recycle these bitmaps (by extracting the BitmapDrawable from the ImageView) in onDestroy or can I be sure that this is done in time by the system?
1 Answer