Tuesday, September 13, 2011

[android-developers] Why is my ImageView (wrap_content) bigger than the Image itself?

Hi!

I want to put a Button in a RelativeLayout on top of an Image and also at the bottom. The Image should be scaled with the scaletype "centerInside".
The ImageView has the height and width "wrap_content".

Why does the ImageView take more space than the image itself? Like this I cannot use the RelativeLayout.

Greetings, Martin

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment