Hi friends, In the attached snapshot i have 3 buttons which are vertically aligned,and an imageview to the left of it. I want the imageview to fill the width and have 3 buttons at the right side.How to accomplish that?
I have used the below code <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="#fff" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:layout_width="fill_parent" android:orientation="horizontal" android:layout_height="wrap_content" > <ImageView android:id="@+id/thumbImage" android:layout_width="wrap_content" android:src="@drawable/index1" android:layout_gravity="fill_horizontal" android:layout_height="wrap_content" /> <RelativeLayout android:orientation="vertical" android:layout_alignParentRight="true" android:layout_toRightOf="@id/thumbImage" android:paddingRight="10dip" android:id="@+id/main" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:layout_width="wrap_content" android:layout_height="wrap_content" > <ImageView android:id="@+id/check" android:layout_width="wrap_content" android:src="@drawable/check" android:layout_gravity="center_horizontal|center" android:layout_height="wrap_content" android:layout_alignParentRight="true" /> <ImageView android:id="@+id/bookmark" android:layout_width="wrap_content" android:layout_marginTop="5dip" android:layout_below="@id/check" android:src="@drawable/bookmark" android:layout_gravity="center_horizontal|center" android:layout_height="wrap_content" android:layout_alignParentRight="true" /> <ImageView android:id="@+id/delete" android:layout_width="wrap_content" android:src="@drawable/close" android:layout_below="@id/bookmark" android:layout_gravity="center_horizontal|center" android:layout_marginTop="5dip" android:layout_height="wrap_content" android:layout_alignParentRight="true" /> </RelativeLayout> </LinearLayout> </RelativeLayout> -- Regards, Vani Reddy -- 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
<<attachment: device.png>>