Use a LinearLayout as the root, then make give each button the attribute android:layout_weight="1"
- which will make them all equal weights, and take up the space.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dip"
android:orientation="horizontal" >
<Button
android:id="@+id/rvButton"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
/>
<Button
android:id="@+id/rvButton"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
/>
<Button
android:id="@+id/rvButton"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
/>