... where 20dp is a dynamic size, based on how much space is available?

If that's what you want, consider:

<LinearLayout orientation="vertical">

<Button height="wrap_content"/>

<View width=fill_parent, height=0dp, weight=1/>

<Button height="wrap_content"/>

<View width=fill_parent, height=0dp, weight=1/>

<Button height="wrap_content"/>

</LinearLayout>

The <View> items act as spacers, and will be dynamically resized by LinearLayout due to having weight attribute.

-- K

11.05.2012 15:25, huberte написал:
Exactly. Look closely at the title. I thought it was clear enoug. Sorry Jason.

Space, e.g having the same space between them, not resizing them.

For example : top-20dp-button-20dp-button-20dp

I I was clear enough


--
Kostya Vasilyev

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