Reputation: 465
I have a grid layout which is filled with buttons. I want the buttons to be more distant from each other, what code should I write? I tried to search for it but only found a solution for GridView
, not GridLayout
.
Upvotes: 31
Views: 49191
Reputation: 1015
Instead of adding margin to each buttons, use android:useDefaultMargins="true"
It is better than adding margin to each buttons!
Upvotes: 28