@ Brion, that worked perfectly!  Thanks!

@ Sasikumar, that was absolutely pointless.  You just placed a link
pointing to your website and is general, not close at all to what I
was looking for and you know that.  That is purely a spam message just
like the rest of your posts...  If someone asks something about
buttons, you point a link to your website talking about buttons albeit
has nothing to do with the question originally asked.  Stop spamming.



On Jan 19, 8:17 am, Brion Emde <[email protected]> wrote:
> This appears to work, at least in Eclipse:
>
> <?xml version="1.0" encoding="utf-8"?>
> <RelativeLayout
>         xmlns:android="http://schemas.android.com/apk/res/android";
>         android:layout_width="fill_parent"
>         android:layout_height="fill_parent"
>
>         <RelativeLayout
>                 android:id="@+id/buttons"
>                 android:layout_width="fill_parent"
>                 android:layout_height="wrap_content"
>                 android:layout_alignParentBottom="true"
>         >
>                 <Button
>                         android:id="@+id/Button1"
>                         android:text="Button1"
>                         android:layout_height="wrap_content"
>                         android:layout_width="wrap_content"
>                         android:layout_alignParentLeft="true"
>                 />
>                 <Button
>                         android:id="@+id/Button2"
>                         android:text="Button2"
>                         android:layout_height="wrap_content"
>                         android:layout_width="wrap_content"
>                         android:layout_alignParentRight="true"
>                 />
>         </RelativeLayout>
>         <TextView
>                 android:text="TextView"
>                 android:id="@+id/TextView"
>                 android:layout_height="wrap_content"
>                 android:layout_width="fill_parent"
>                 android:layout_alignParentTop="true"
>                 android:layout_above="@id/buttons"
>         />
>
> </RelativeLayout>
>
> But I guess you tried that.
>
> On Jan 18, 6:39 am,Breezy<[email protected]> wrote:
>
> > I've a textview I want to span almost the length of the screen, then 2
> > buttons at the bottom.
>
> > Right now I'm using a relative layout with a textview and two buttons
> > and I can almost get it the way I want but the only thing is the
> > textview isn't as long as I want it.  I want it to be as long as
> > necessary for whatever handset is using it.  So a constant pixel
> > amount is out.
>
> > Lets see if this will work.
>
> > -------------------------------------
> > |                                             |
> > |                                             |
> > |                                             |
> > |                                             |
> > |                                             |
> > |                                             |
> > |                                             |
> > |                                             |
> > |                                             |
> > |                                             |
> > |----------------     ----------------|
> > ||                  |     |                   ||
> > |----------------     ----------------|
> > -------------------------------------

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