You can create your own class that extends ViewGroup and override the 
layout/onMeasure functions to explicitly define your own layout.
Not sure of how to do this via xml though.

-----Original Message-----
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Martin
Sent: Tuesday, 21 September 2010 8:02 AM
To: Android Developers
Subject: [android-developers] Exact Layout that fits a background image

Hi!

I have a background image (full screen) and want to create an exact
layout, which fits this background-image. The buttons and labels have
to be at an exact place of the background-image. How can I do this?
The absolute-layout is deprecated. If I use relative layout, I can use
margins, but the positions differ from device to device.

The best thing is if I could set the exact positions as percent of the
total view size. How can I do this?

Greetings, Martin

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to