How can I create 2 rows of buttons in android layout.xml file
<p>I try to create 2 rows of buttons in android layout.xml file.
The first row is left-aligned, the second row is center-aligned.</p>

<p>Here is what I did, but I end up getting 1 row of buttons. Can you please tell me what am I doing wrong?</p>

<pre><code>enter code here
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="wrap_content"
android:layout_height="fill_parent"&gt;
 &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:layout_gravity="bottom|left"
        &gt;
         &lt;Button 
          android:id="@+id/btn1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          /&gt;
        &lt;/LinearLayout&gt;
     &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:layout_gravity="bottom|center"
        &gt;
         &lt;Button 
          android:id="@+id/btn2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          /&gt;
       &lt;Button 
          android:id="@+id/btn3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          /&gt;
        &lt;/LinearLayout&gt;
&lt;/FrameLayout&gt;
&lt;/pre&gt;
</code></pre>
