[android-developers] Re: Prevent image from being scaled in ImageView

2012-02-11 Thread Doug Gordon
Are you saying that the X gets scaled up to the full size of the ImageView as though the transparent border were not there? I have an ImageView that displays photos in their native pixel dimensions up to a max size by doing this: ImageView android:id=@+id/photo

[android-developers] Re: Prevent image from being scaled in ImageView

2012-02-11 Thread Kookamonga
Well... I should thank you. Based on your XML, I tried android:scaleType=fitCenter and the image now appears as-is, without any scaling. I'm confused as to why this works and not just android:scaleType=center. Based on the docs (http:// developer.android.com/reference/android/widget/