As far as I understand, for you, the background is more important, and the buttons should be placed at certain positions within the background.

Well, there is no law that says you have to use layout_margin and dp units for positioning your buttons (ImageViews).

Write your own ViewGroup subclass, override onDraw() to draw the background with some kind of scaling logic, and override onLayout() to position the buttons where they should be .

-- Kostya

04.12.2010 14:53, Serdel пишет:
But the problem is to place them on the same area on the screen. I
only could come up with margins but I try to avoid that. Right now I
have solved this by grouping the buttons in a linear layout and set
the background of this layout. Then the layout is placed inside a
parent relative layout and align to the bottom. However I can imagine
other situations where this would be insufficient.



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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