The weight controls how the remaining space is used after the sizes are taken into account. That's why you often see width/height set to zero where weight is used.
On Jan 31, 3:49 am, scastria <[email protected]> wrote: > Maybe I am missing something here: > > I have a simple horizontal LinearLayout with fill_parent set > containing 3 TextViews inside it. I have set each of the TextViews to > have 1.0 weight. My goal was to get each TextView to take up 33% of > the LinearLayout. This sort of works, but the TextView sizes change > depending on the text of the TextView. The TextView with the longest > string is taking up slightly more space than the other two TextViews > with shorter strings. Since each of the TextViews have equal weights, > they should be evenly distributed across their parent regardless of > the text inside, correct? -- 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

