I have 3 buttons the layout.xml below where they appear below of each other...
just change android:orientation="vertical"
to android:orientation="horizontal"
of your layout and every thing will work fine
best way to do this is to make layout and then put your button like this code
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<Button
android:id="@+id/Button9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:text="@string/Home1"/>
<Button
android:id="@+id/Button11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="@string/NextL"/>
in this shape you have two button in same row so easy :D
Change the Linear Layout orientation Vertical into Horizontal.And then Give weight for your both buttons as 1 or 2.As your wish.the buttons will be arranged equally.