ImageView source scaling done right. How?
- by Aleksey Malevaniy
Scope
Image bitmap have to be shown as imageView.setImageBitmap(bitmap) and scaled to fit UI. This could be done via:
bitmap = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true);
xml's ImageView attributes such as
android:layout_width="newWidth"
android:layout_height="newHeight"
android:adjustViewBounds="true"…