try this one
<?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"
android:background="#000000">
     <TextView
          android:id="@+id/loadingStatus"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:gravity="center"
          android:text="Title..."
          android:textSize="20sp"
     />

    <ListView
android:id="@+id/fileList"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:drawSelectorOnTop="false"
android:layout_marginTop="10dip"
android:layout_marginBottom="15dip"
>
</ListView>

     <TextView
          android:id="@+id/streamStatusBar"
          android:layout_width="fill_parent"
          android:text="Processing Some Information"
          android:textSize="12sp"
          android:textColor="#FFFFFF"
          android:layout_gravity="left|center_horizontal"
          android:gravity="center_horizontal"
          android:layout_height="18px"
          android:layout_marginBottom="4px"/>
</LinearLayout>

On Dec 29, 12:12 pm, Moto <medicalsou...@gmail.com> wrote:
> Hi, I'm currently trying to display a TextView on the top and bottom
> of my screen and in the middle my ListView.
>
> The problem is that when my ListView grows it pushes my bottom
> TextView out of the screen.
> How can I overcome this?
> Thanks!
> here is current XML:
>
> XML:
> <?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"
> android:background="#000000">
>      <TextView
>           android:id="@+id/loadingStatus"
>           android:layout_width="fill_parent"
>           android:layout_height="wrap_content"
>           android:gravity="center"
>           android:text="Title..."
>           android:textSize="20sp"
>      />
>
>      <LinearLayout
>           android:id="@+id/LinearLayout01"
>           android:layout_width="wrap_content"
>           android:layout_height="wrap_content">
>
>      <ListView
>           android:id="@+id/android:list"
>           android:layout_width="wrap_content"
>           android:layout_height="wrap_content"/>
>
>      </LinearLayout>
>
>      <TextView
>           android:id="@+id/streamStatusBar"
>           android:layout_width="fill_parent"
>           android:text="Processing Some Information"
>           android:textSize="12sp"
>           android:textColor="#FFFFFF"
>           android:layout_gravity="left|center_horizontal"
>           android:gravity="center_horizontal"
>           android:layout_height="18px"
>           android:layout_marginBottom="4px"/>
> </LinearLayout>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to