I want to set margins by percentage.. I have 4 imageviews in a linearlayout and want to set default left,right,top,bottom margins that keep same percentage for each screen size.
You can have invisible Views in your LinearLayouts as spacers and use the layout_weight mechanism to assign them relative size.
View
LinearLayout
layout_weight
Example: