if you put the button at the top yes. But now ListView is too tall and
extends out of the screen. layout_weight is the only way to do it.

On Jul 7, 2009 6:29 PM, "Mark Murphy" <mmur...@commonsware.com> wrote:

Romain Guy wrote: >>> fill_parent won't work, the button will be pushed out
of the screen. > > Tha...
Um, no.

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
android:orientation="vert...

<Button android:id="@+id/button_cancel" android:layout_width="100dip"

android:layout_height="wrap_content"
               android:text="Cancel"
       />
       <ListView
               android:id="@android:id/list"

android:layout_width="fill_parent" android:layout_height="fill_parent"
               android:drawSelectorOnTop="false"
               />
</LinearLayout>

Taking his Button and putting it atop a fill_parent ListView works just
fine.

That's not solving his problem if he wants his Button on the bottom, of
course.

-- Mark Murphy (a Commons Guy) http://commonsware.com |
http://twitter.com/commonsguy Android 1.5...

--~--~---------~--~----~------------~-------~--~----~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to