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

前端 未结 6 1150
情书的邮戳
情书的邮戳 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条回答
  •  感情败类
    2021-01-01 17:10

    Try changing the color of the button, because the default interface of the button which is native to android is actually smaller than it's size, and it's center-fitted to make it look cool.

    Change it's background to black or something and you'll see the real size of the button.

    android:background="#000"
    

提交回复
热议问题