There are two buttons :
<LinearLayout
android:layoutWidth="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center">
<Button
android:id="@+id/btn1"
android:layoutWidth="wrap_content"
android:layout_height="wrap_content"
android:text="Launch camera"
android:onClick="launchCamera" />
<Button
android:id="@+id/btn2"
android:layoutWidth="wrap_content"
android:layout_height="wrap_content"
android:text="List of photos"
android:onClick="listPhotos" />
</linearLayout>
How to make these two buttons having equal size and spanning all their parent's width ?