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