Android Layout question?
<p>I want to have navigation bar at the bottom of my screen.
There will be 'Prev' button at rightest and a 'Next' button at leftest.
And a textview on center.</p>

<p>I tried linear and relative layout but failed.
When I put width="fill_parent" to text then left button dissappears.</p>

<p>Here the one I tried:</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="fill_parent"
              android:id="@+id/rlayout"
              android:layout_height="fill_parent"
        &gt;
               &lt;!-- other content a listview etc.
               --&gt;

        &lt;LinearLayout  android:id="@+id/navigator"
                      android:orientation="horizontal"
                        android:layout_alignParentBottom="true"
                      android:layout_width="fill_parent"
                      android:layout_height="wrap_content"
                &gt;
        &lt;Button android:id="@+id/prevbtn"
                android:background="@drawable/prev"  android:onClick="prevPage"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" /&gt;
        &lt;TextView
                android:id="@+id/pageText"
                android:text=""
                android:gravity="center_horizontal"
                android:layout_centerHorizontal="true"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                /&gt;
        &lt;Button android:id="@+id/nextbtn"
                android:background="@drawable/next"
                android:onClick="nextPage"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" /&gt;
&lt;/LinearLayout&gt;
&lt;/RelativeLayout&gt;
</code></pre>
