tags:

views:

219

answers:

0

My application should display a TextView, a GLSurfaceView and another TextView at the bottom of the screen, all within a vertical LinearLayout. When I run the application in the emulator or on my N1 device, the bottom-most TextView is not visible. Following an example on-line, I tried encapsulating the GLSurfaceView within a FrameView, but that does not seem to help.

Do you know what I am doing wrong? Many thanks for your help.

Here is my layout xml file:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView  
android:layout_width="fill_parent" 
android:layout_height="wrap_content" 
android:text="STEREO EUVI"
android:id="@+id/scene_title"/>

<FrameLayout android:id="@+id/FrameLayout01" 
android:layout_width="wrap_content" 
android:layout_height="fill_parent">

<android.opengl.GLSurfaceView
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:id="@+id/surface_view"/> 
</FrameLayout>

<TextView  
android:layout_width="fill_parent" 
android:layout_height="wrap_content" 
android:text="Double-tap to change channel"
android:id="@+id/scene_title"/>

</LinearLayout>