Re: [android-developers] How to position buttons in a linear layout?

2010-08-18 Thread Filip Havlicek
Hi, I think that what you want to do is put the image inside some container and add onClick listener to that container. Inside the listener you get x/y coordinates of the click and match it with the x/y coordinates of image parts you want to be clickable. If match is found, play appropriate sound.

Re: [android-developers] How to position buttons in a linear layout?

2010-08-18 Thread Kostya Vasilyev
RelativeLayout is more flexible, and can do what AbsoluteLayout can do, and more. http://developer.android.com/reference/android/widget/RelativeLayout.html To place views on top of one another you can also use FrameLayout, positioning these frame layouts in their parent layout: http://devel

[android-developers] How to position buttons in a linear layout?

2010-08-18 Thread ericmahlon
I have an image that will have 5 different areas that will be "clickable." Each clickable area will be invisible and play a different sound. I was told not to use an absolute layout, and use a linear layout instead. However, I am now having an issue with placing the buttons over the picture. The