android的button之间会有一定间隔。如何去除两个button之间的间隔? 图像 1.png 要用到android:layout_marginLeft等参数调整,而且LinearLayout和RelativeLayout都可以的,不过需要注意的是: 外边框:android:layout_marginLeft等参数的默认数值为0dp,但相邻两个控件之间会自动添加8dp,如果想一个挨一个的话,android:layout_marginLeft="-8dp"。