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

2010-07-09 Thread Jeruliu
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


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

2010-07-09 Thread Kostya Vasilyev

You can achieve this by using a RelativeLayout:

http://groups.google.com/group/android-developers/browse_thread/thread/f88b83d3b453a981/db595fb356a92467

(substitute height / bottom for width / right in the thread above)

-- Kostya

09.07.2010 13:35, Jeruliu пишет:

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.

   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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


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

2010-07-09 Thread YuviDroid
I think RelativeLayout should be helpful in this case. For your button,
simply put in its xml tags:

android:layout_alignParentBottom=true


On Fri, Jul 9, 2010 at 11: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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
YuviDroid
http://android.yuvalsharon.net

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