I have a grid layout which is filled with buttons, now i want the buttons to be more distant from each other, what code should i write? i tried to search it but only found a solution for GridView, not GridLayout.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can put margin to the buttons
回答2:
Instead of adding margin to each buttons, use android:useDefaultMargins="true"
It is better than adding margin to each buttons.