Using xml Syntax Highlighting
- ?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>
Parsed in 0.004 seconds, using GeSHi 1.0.8.4
I have this xml layout for a ListActivity.
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: Select all
|-------------------------|
| ListName |
|-------------------------|
| ListItem |
| ListItem |
| ListItem |
| [free space] |
| [free space] |
| [free space] |
|-------------------------|
| Button |
|-------------------------|
Any suggestions please?

