删除按钮之间的空间 [英] Remove space between buttons

查看:128
本文介绍了删除按钮之间的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有内部线性布局一堆按钮。但有空格键。我有边距设置为0,但没有改变。 是谁的人已经在有同样的问题<一href="http://www.mail-archive.com/android-developers@googlegroups.com/msg51104.html">http://www.mail-archive.com/android-developers@googlegroups.com/msg51104.html但也没有答案。 你能普莱舍帮助我。

i have bunch of buttons within linear layout. But there is spaces buttons. I set padding as 0 but there no change. There is someone who already had the same problem at http://www.mail-archive.com/android-developers@googlegroups.com/msg51104.html but no answer at there. Can you plese help me.

推荐答案

试着用玩安卓layout_margin 属性。例如,为了减少对左/右侧空间(假设你有一个横向的按钮),你可以做水木清华这样的:

Try to play with android:layout_margin attribute. For instance, to reduce space on the left/right side (assuming you have a horizontal set of buttons) you can do smth like this:

<Button
    android:layout_marginLeft="-3dip"
    android:layout_marginRight="-3dip"
    ... />

这篇关于删除按钮之间的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆