Hello all, I am facing a small issue. In the picture below
http://www.flickr.com/photos/34403...@n02/5098102704/ I have this icon on the right, the problem is I would like for it to be completely on the right side but after having played with the width and alignment it just wont go to the right. If I try to change the width it just disappears if I increase more than 10 px and the alignment wont make a difference neither does padding. Can anyone help me identify the problem. Here is the xml file <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <CheckBox android:text="" android:id="@+id/list_checkbox" android:layout_width="wrap_content" android:layout_height="wrap_content" android:checked="true" android:layout_weight="1.0" android:paddingLeft="2px" android:paddingRight="2px" android:paddingTop="2px" ></CheckBox> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:id="@+id/label1" android:layout_width="105px" android:layout_height="wrap_content" android:textSize="15sp" android:layout_weight="1.0" /> <TextView android:id="@+id/label3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="40px" android:textSize="15sp" android:text="hello3" android:layout_weight="1.0" /> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:id="@+id/label2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" android:textSize="15sp" android:layout_weight="1.0" /> <TextView android:id="@+id/label3" android:layout_width="wrap_content" android:layout_marginLeft="40px" android:paddingLeft="2px" android:paddingRight="2px" android:layout_height="wrap_content" android:text="hello" android:layout_weight="1.0" /> </LinearLayout> </LinearLayout> <!-- Moved here. Add android:paddingTop="2px" as the first icon --> <ImageView android:id="@+id/icon" android:layout_width="22px" android:layout_height="wrap_content" android:paddingLeft="2px" android:paddingTop="2px" android:src="@drawable/icon" android:layout_weight="1.0" android:layout_gravity="right"/> </LinearLayout> -- 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