Android: how to make it no space between 2 button in a horizontal linearlayout

前端 未结 6 1167
情书的邮戳
情书的邮戳 2021-01-01 16:32

I just found I cannot remove the space between 2 buttons even if I set the layout_marginRight and layout_marginLeft as below. But it make sense if

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-01 16:55

    Please look at Bryan's answer. With my answer both buttons overlap. Bryans answer shows the real size of the buttons.

    Old answer:

    Just set the android:layout_marginRight of the first button to "-8dip" or even more. Than the space between the two buttons will get smaller.

提交回复
热议问题