我在线性布局中有一堆按钮。但是有空格按钮。我将填充设置为 0 但没有变化。 http://www.mail-archive.com/android-developers@googlegroups.com/msg51104.html 已经有人遇到同样的问题了但那里没有答案。 你能帮帮我吗?
最佳答案
尝试使用 android:layout_margin
属性。例如,要减少左侧/右侧的空间(假设您有一组水平按钮),您可以这样做:
<Button
android:layout_marginLeft="-3dip"
android:layout_marginRight="-3dip"
... />
关于java - 删除按钮之间的空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4361309/