More information: In the attached project, add the following attributes to <MyImageView/> :
android:adjustViewBounds="true" android:scaleType="centerCrop" If <MyImageView/> is inside <FrameLayout/> the (expected) result will be: <https://lh6.googleusercontent.com/-pQTK6-yNnq8/UqweuRGc3FI/AAAAAAAAZCw/rI3n8Uh2K7o/s1600/Bug-FrameLayout.png> If <MyImageView/> is inside <RelativeLayout/> the (unexpected) result will be: <https://lh5.googleusercontent.com/-ytxB6oDaiAQ/UqweTHs0S8I/AAAAAAAAZCo/EEHPIGVd47g/s1600/Bug-RelativeLayout.png> This kind of behavior makes it absolutely impossible to write any serious layout algorithms :( -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

