I have this xml layout for a ListActivity.

?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/VoicemailLayout"
     xmlns:android="http://schemas.android.com/apk/res/android";
     android:layout_width="fill_parent"
android:layout_height="fill_parent"
     android:orientation="vertical">

     <TextView android:layout_width="fill_parent"
          android:layout_height="wrap_content" android:text="List:"
          android:textSize="20sp" android:textStyle="bold"
android:layout_gravity="top">
     </TextView>

          <LinearLayout android:id="@+id/linearMain"
               android:layout_width="fill_parent"
android:layout_height="wrap_content"
               android:orientation="vertical">
               <ListView android:id="@android:id/list"
                    android:layout_width="wrap_content"
android:layout_height="wrap_content">
               </ListView>
          </LinearLayout>

     <Button android:id="@+id/onlinerButton1"
android:layout_width="fill_parent"
          android:layout_height="wrap_content"
android:layout_gravity="bottom">
     </Button>
</LinearLayout>


The problem is that the ListView does not fill the free space between
the TextView and the Button.

I would like it to be like this:
Code:

|-------------------------|
|       ListName    |
|-------------------------|
|       ListItem      |
|       ListItem      |
|       ListItem      |
|   [free space]    |
|   [free space]    |
|   [free space]    |
|-------------------------|
|         Button      |
|-------------------------|


Any suggestions please?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to