Reputation: 21335
For examples two buttons inside a linear layout or a relative layout. Have each button always take up 50% of space in parent container. How is this specified? Thanks
Upvotes: 0
Views: 102
Reputation: 29121
<LinearLayout>
<Button
layout_weight="0.5"
/>
<Button
layout_weight="0.5"
/>
</LinearLayout>
each button will take 50% of the linearLayout.
Upvotes: 2