> LinearLayout obeys weight and as per documentation weight gives > priority to an object. Here is the layout I have: > > Here you can see that the first textview has a weight of 2, second has > a weight of 0, but still the second text view takes up all the space. > If I give the first edit view a weight of 0 and second a weight of 2, > surprisingly, first edit view gets more space. Isn't this weird, or am > I doing something very wrong. I am poor in layouts.
Try using a weight of 1, or not having a weight, rather than a weight of 0. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

