To android:layout_height
attribute of LinearLayout
, give value of 60dp
android:layout_height="60dp"
and to android:layout_height
attribute of both Button
, give value of match_parent
android:layout_height="match_parent"
So, updated XML snippet will be
<LinearLayout
android:id="@+id/buttonLayout"
android:layout_width="fill_parent"
android:layout_height="60dp"
android:layout_below="@id/botomMarginTextView"
android:orientation="horizontal" >
<Button
android:id="@+id/id1"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:layout_weight="0.5"
android:background="@drawable/button_back"
android:text="@string/name1" />
<Button
android:id="@+id/id2"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_marginRight="20dp"
android:layout_weight="0.5"
android:background="@drawable/button_back"
android:text="@string/name2" />
</LinearLayout>