Lets say I wanted to make a relative view with two columns of buttons, left and right.
Where each button takes up exactly 20% of the screen, separated by 10%, with the remaining border on the sides. But to do this for any screen size. DP I think won't work because how do you know the DP pixel count on each different screen?
Basically how do you keep UI's relatively the same and fitting between all devices?
Short answer:
LinearLayout
.Long answer is here:
Defining a percentage width for a LinearLayout?
There are also ways of getting density at runtime, but the above is easier in the long run.
Get ready for some pseudo-xml!
Edit:
If you are bent on doing alot of dynamic resizing, I have this custom class for getting screen size:
Obviously you'll need to do some math to figure out what you want at different sizes and densities. You also need to account for parts of the screen you are not using (ActionBar, etc.)