[android-developers] Re: How to define some smart layout?

2010-07-10 Thread Jeruliu
Matty's sample works, thanks.

On Jul 9, 11:14 pm, Matty busbus...@gmail.com wrote:
 This simple layout seems to work for me:

 ?xml version=1.0 encoding=utf-8?
 LinearLayout
         xmlns:android=http://schemas.android.com/apk/res/android;
         android:layout_width=fill_parent
         android:layout_height=fill_parent
         android:orientation=vertical
         android:gravity=center
         ListView
                 android:id=@+id/ListView01
                 android:layout_width=fill_parent
                 android:layout_height=fill_parent
                 android:layout_weight=1 /
         Button
                 android:text=@+id/Button01
                 android:id=@+id/Button01
                 android:layout_width=wrap_content
                 android:layout_height=wrap_content /
 /LinearLayout

 On Jul 9, 5:35 am, Jeruliu jeru@gmail.com wrote:

  I will have a list view on the top and a button on the bottom in the
  view.

  Regardless the height of the list view i would like to fix the button
  position on the bottom all the time.

  If the list view is too long then make it scrollable.

  How to do this? thanks.



-- 
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


[android-developers] Re: How to define some smart layout?

2010-07-09 Thread Matty
This simple layout seems to work for me:

?xml version=1.0 encoding=utf-8?
LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical
android:gravity=center
ListView
android:id=@+id/ListView01
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_weight=1 /
Button
android:text=@+id/Button01
android:id=@+id/Button01
android:layout_width=wrap_content
android:layout_height=wrap_content /
/LinearLayout



On Jul 9, 5:35 am, Jeruliu jeru@gmail.com wrote:
 I will have a list view on the top and a button on the bottom in the
 view.

 Regardless the height of the list view i would like to fix the button
 position on the bottom all the time.

 If the list view is too long then make it scrollable.

 How to do this? thanks.

-- 
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