Neilz wrote: > layout_width="0px" > > > That's all it needed. Grrrr. > > > I guess it's just one of the tricks of the trade that you either know > or you don't. I mean, that's not logical, is it?!
Let's say you use layout_width="wrap_content" and layout_weight="1". The calculation then goes something like this: -- Start with the screen width (e.g., 480) -- Subtract the space needed for all of the buttons with their wrapped content -- Divide up the remainder according to the layout weight (and, if you have 5 buttons all with weight 1, they'll each get 20% of the space) If you use layout_width="0", you skip the second step above (or, more accurately, it subtracts 0 five times from the screen width). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 2.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

