I looked into the source code of NetworkImageView
at here, it sets image by using setImageBitmap(bitmap)
. Correct me if I'm wrong, the way to scale a bitmap is using setImageBitmap(Bitmap.createScaledBitmap(...))
, and scaleType
for NetworkImageView
won't work.
For example, I tried myNetworkImagView.setScaleType(ImageView.ScaleType.FIT_CENTER)
which doesn't work.
Is there a simple way to scale myNetworkImageView
such as setScaleType
other than rewriting the NetworkImageView
class with createScaledBitmap(...)
?
Android Studio got updated to 1.5.1 and scaletype
is now working for NetworkImageView
.