[mono-android] Layout - Activity with ListView and TextView below it
subsembly
a.selle at subsembly.com
Mon Jan 23 15:45:25 UTC 2012
A more optimized layout serving the same purpose would be:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ListView
android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1" >
</ListView>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Some text here" />
</LinearLayout>
Less nesting means faster layout. Also I would prefer to use the Android
predefined ID for the ListView.
Cheers,
Andreas
--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Layout-Activity-with-ListView-and-TextView-below-it-tp5149952p5166455.html
Sent from the Mono for Android mailing list archive at Nabble.com.
More information about the Monodroid
mailing list