Basically, I want:

---------------------------------------------------------------------------------------
| ImageView |  TextView fill up the rest            | ImageView |
---------------------------------------------------------------------------------------

How can I do that?

I have put 'android:layout_alignParentRight="true"' in my 2nd
ImageView, but that does not align to the right of the parent.
Any idea please?


On Tue, Feb 9, 2010 at 2:23 PM, n179911 <n179...@gmail.com> wrote:
> Hi,
>
> I have the following l relative layout, which I want an Image to the
> left and an Image to the right, then the rest is filled by TextView.
> But I can't get the last image to align right of the parent. I have
> added 'android:layout_alignParentRight="true"' but it does not work.
>
>
> Any idea please?
> Thank you.
>
>
>
> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android";
>        android:layout_width="fill_parent"
> android:layout_height="?android:attr/listPreferredItemHeight"
>        android:padding="6dip">
>
>        <ImageView android:id="@+id/icon"
>            android:layout_width="wrap_content"
>                android:layout_height="fill_parent"
>                android:layout_alignParentTop="true" />
>
>        <TextView android:id="@+id/text"
>            android:layout_width="wrap_content"
>            android:layout_height="wrap_content"
>            android:layout_alignWithParentIfMissing="true"
>            android:layout_toRightOf="@id/icon"
>            android:layout_alignParentTop="true" />
>
>        <ImageView
>        android:id="@+id/button1"
>        android:layout_width="wrap_content"
>        android:layout_height="wrap_content"
>        android:layout_toRightOf="@id/text"
>        android:layout_alignParentRight="true"
>        android:layout_alignParentTop="true"
>        android:src="@drawable/icon" />
>
> </RelativeLayout>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to