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
You will have to set android:layout_marginRight="0dip"
and you will have to remove the padding with android:paddingRight="0dip"
for the other button this has to be changed to the left values. I guess you forgot that every android element has generally a padding added to it by default. This is generally a good idea, but if you want to remove it, this is the way.