Your android:layout_height="wrap_content" on the LinearLayout will not
work, as the "content" of a ListView can grow very tall.

Instead:

-- get rid of the LinearLayout
-- have your ListView use android:layout_above="@+id/add_drink_type"
and android:layout_alignParentTop="true"
-- get rid of the android:layout_below rule from the Button and
replace it with android:layout_alignParentBottom="true"

This would keep your Button anchored to the bottom of the screen, with
the ListView filling the remaining space.

I do not recommend having the Button slide all over the screen based
upon however many items there are in the ListView.

-- 
Mark Murphy
CommonsWare
[email protected]
http://commonsware.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to