Thanks but your code is not working, what is this view item ? I searched, it's not documented, is it ? I can complete the code you gave me (id, "" missing with type view)
http://developer.android.com/reference/android/view/View.html 20 dp was an example, I could have written 2000 dp or whatever.... Le vendredi 11 mai 2012 08:20:25 UTC-4, Kostya Vasilyev a écrit : > > ... 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