oh, and when I look at it on an actual display, it is small (48x48). On Sep 15, 3:56 pm, sdphil <phil.pellouch...@gmail.com> wrote: > I am running into a very weird thing. I have an ImageView, and when I > call setImageURI with an image, it seems to change the size of the > image view. > > <ImageView > android:id="@+id/MyImage" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_gravity="center_horizontal" > android:src="@drawable/default_image"/> > > the default image is 195 x 195, i am trying to set the image to be 200 > x 200, after setting the image using setImageURI, i get the dimensions > back and it says it's 48 x 48. > > I have tried a bunch of different android:scaleType parameters, and I > couldn't find anything that worked. > > I also tried explicitly setting the size (layout_width="200px") and it > seems to work. > > any ideas? > > tia.
-- 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