Thanks. But I want android framework to align my ImageView with its
parent for me. Instead of adjust it myself pixel by pixel.


On Wed, Feb 10, 2010 at 6:24 AM, Narendra Bagade
<[email protected]> wrote:
> use android:layout_marginLeft  or
> android:paddingLeft
>
>
> Narendra
>
> On Wed, Feb 10, 2010 at 7:47 PM, n179911 <[email protected]> wrote:
>>
>> 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 <[email protected]> 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 [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
>
>
> --
> Regards,
>
> Narendra B
> 9632382960,
> Bangalore.
>
> --
> 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

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