[mono-android] Layout - Activity with ListView and TextView below it
riteshsahu
rsahu at epicor.com
Tue Jan 17 22:38:38 UTC 2012
Something like this should work in any resolution:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:orientation="vertical" >
<ListView
android:id="@+id/listView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</ListView>
</LinearLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Some text here" />
</LinearLayout>
The Listview needs to be put inside another layout so that it can always
take the remaining space.
--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Layout-Activity-with-ListView-and-TextView-below-it-tp5149952p5153186.html
Sent from the Mono for Android mailing list archive at Nabble.com.
More information about the Monodroid
mailing list