android:layout_weight is the key... This will probably be useful:

http://androidrecipes.blogspot.com/2008/11/simple-form-layouts.html


On Tue, Nov 25, 2008 at 6:30 AM, Brad Gies <[EMAIL PROTECTED]> wrote:

>
>
> Ok, I'm finally frustrated J.
>
>
>
> How do I layout a single row with a TextView, an EditText, and a Button
> such that the TextView is on the left (wrap_content), the Button (also
> wrap_content) is on the right and the EditText fills all the available space
> in between?
>
>
>
> It seems that it should be such an easy thing to do, but I can't seem to
> get it to work exactly the way I want it. I don't want to hard code the
> pixels because then I need two separate layouts for the portrait and
> landscape views, and the problem of it looking funny on the next phone if
> the screen width is not the same.
>
>
>
> Anyone want to save the little hair I have left?
>
>
>
> Thanks.
>
>
>
>
>
> Sincerely,
>
>
>
> Brad Gies
>
>
>
>
>
> -----------------------------------------------------------------
>
> Brad Gies
>
> 27415 Greenfield Rd, # 2,
>
> Southfield, MI, USA
>
> 48076
>
> -----------------------------------------------------------------
>
>
>
> Moderation in everything, including abstinence
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to