Friday, September 16, 2011
[android-developers] widgets not showing up after ListView
Hello,
I am trying to insert a linear layout with a button or two at
the bottom of a listview which is dynamically populated
from source code. But the bottom button(s) (the one with
text property set to Foo) do not show up.
Any idea what I am doing wrong and how to fix it?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_height="fill_parent"
android:layout_width="fill_parent">
<!-- Header -->
<TextView android:text="@string/schedule_title"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_height="wrap_content" android:layout_width="match_parent"
android:gravity="center"></TextView>
<!-- List Divider -->
<View android:layout_width="fill_parent" android:layout_height="1dip"
android:background="?android:attr/listDivider" />
<!-- ListView (grid_items) -->
<LinearLayout android:id="@+id/layout"
android:layout_width="wrap_content" android:layout_height="fill_parent">
<ListView android:layout_weight="1" android:id="@+id/listview"
android:layout_width="fill_parent" android:layout_height="fill_parent"></ListView>
</LinearLayout>
<!-- this stuff is not showing up! -->
<LinearLayout
android:layout_width="fill_parent" android:layout_height="20dp">
<Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Foo"></Button>
</LinearLayout>
</LinearLayout>
Thanks for your help,
John Goche
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment