I have an ImageView that contains a bitmap. Now the bitmap can change size within a known range. This makes the surrounding views to relocate which I want to prevent. I've tried setting margins and padding for the ImageView but without success. Any ideas? Thanks, Christian
views:
53answers:
1
A:
Try putting your ImageView and other UI elements into a FrameLayout and setting each item's android:layout_gravity to place them.
rreeverb
2010-10-14 20:08:57
Thanks, I'll check it out!
Christian
2010-10-15 06:09:20
FrameworkLayout didn't solve the problem unfortunately. I sort of fixed it though by changing the size of the view to the same of the bitmap. The downside is that the image rescales when rotated but that I can live with.
Christian
2010-10-24 19:06:40