Android: How to make the margin of a button relative to screen width?

howtosecret

New Member
for example I want the button's margin to be 1/4 of the screen width (in pixels), what should I do? I prefer to change something in layout xml file instead of coding.
 
Back
Top