how can I put 2 buttons side by side, so that they occupy all the width, with a little space between them..
I thought a horiz linear layout, with 2 sub linear layout
If you want that the 2 buttons ocuppy all the width and the buttons have the same width, you must change in the 2 buttons the propertie:
android:layout_width="wrap_content"
to android:layout_width="match_parent"
because if you have one of this button with a long text and the other button with short text, the button with long text ocuppy more space.