Hello, I'm very new to Android and trying to develop an app.

I have a FrameLayout, which hosts an ImageView, loaded with a scaled image, 
and a RelativeLayout which hosts a number of ImageButtons. The idea is for 
the ImageView to display a map, and the RelativeView to have a number of 
buttons which will be regions on the map which can be tapped to perform 
certain actions.

The map can be very large, so I scale it manually. I use the scale used in 
the ImageView and apply it to the RelativeLayout, this is necessary since 
ImageButton positions are stored in the original map proportions; so by 
applying the same scale values as in the image, the buttons are finally 
correctly placed.

But, for some odd reason, the RelativeView ends up being very small in 
size, if I set a larger size manually it looks ok and the buttons are 
displayed correctly, but normally they don't.

I wanted the RelativeLayout to draw the buttons despite its size, so no 
clipping, I tried doing relativeLayout.setClipChildren(false); but the 
imageButtons are still not drawn past the parent boundaries.

What am I doing wrong?

Thank you.

-- 
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

Reply via email to