On 1 August 2010 13:08, Jez <[email protected]> wrote:
> But I want two controls on a line and that doesn't do it.

It does. Second LinearView is horizontal for that exact purpose so
both TextEdits are next
to each other. It may however look like it is not if you got long text
there (or long text
resource ID). In default settings textEdit will expand and the 2nd may
 be off the screen.
The solution is to edit each textedit obiect and set "Layout weight"
for that object to 1
and "Layout width" to 0dip. If you set that on both they will have
equal width and will
both fit on screen. It works for other objects as well (i.e. if you
want couple of buttons
in a row and want each of them to have equal width no matter of text
inside - this
will do that trick - check it out).

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

Reply via email to