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
layout_marginRight
layout_marginLeft
I think you can get rid of the space if you use TableLayout instead. And you can set negative values for the margin, if it's still adding some default space between them.