Using GLSurfaceview together with buttons
<p>I hope to add some buttons under a GLSurfaceview, but how should I write the XML file for the layout?</p>

<p>The XML file I use now is shown below with several lines omitted for simplicity. The omitted lines are replaced with a comment in the code. I hope it is clear enough.</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" &gt;

    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/UpperLayout"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" &gt;
        &lt;!-- TextView is added here --&gt;
    &lt;/LinearLayout&gt;
    &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/CenterLayout"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical"
        android:layout_above="@+id/BottomLayout"
        android:layout_below="@+id/UpperLayout"&gt;
        &lt;!-- com.example.test.MyGLSurfaceView--&gt;
    &lt;/RelativeLayout&gt;
    &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/BottomLayout"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:layout_alignParentBottom="true"&gt;
        &lt;!-- Buttons are added here --&gt;
    &lt;/RelativeLayout&gt;

&lt;/RelativeLayout&gt;
</code></pre>

<p>I hope to add several buttons at the bottom of the screen and fill up the rest of the screen with the GLSurfaceView. But the program does not work. I tried to change the field "android:layout_height" for the three linearlayout but also failed. What should I do to achieve this goal?</p>
