Have a look at Bitmap.CreateScaledBitmap(Bitmap src, int dstWidth, int dstHeight, boolean filter). You should be able to use that to scale it into your ImageView dimensions before setting it.
However, ImageView.ScaleType.CENTER should give you what you want even without the extra bm creation. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en