Android:项目之间的GridLayout间距 [英] Android: GridLayout spacing between items
本文介绍了Android:项目之间的GridLayout间距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个充满按钮的网格布局,现在我希望按钮之间的距离更远,我应该编写什么代码?我尝试搜索它,但只找到了GridView的解决方案,而不是GridLayout.
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.
推荐答案
您可以在按钮上添加边距
You can put margin to the buttons
这篇关于Android:项目之间的GridLayout间距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文