I have a custom list view.
Each row needs to have a text on the left, and then an image on the extreme
right hand side.
My problem is that I'm not able to place the image on the extreme RHS.
My XML file for the row looks like this:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/aaa"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical|fill_horizontal"
android:padding="6dip"
android:textSize="15dip"
android:textStyle="bold"
android:textAppearance="?android:attr/small"
android:textColor="#FAFAFA" />
<ImageView
android:id="@+id/bbb"
android:layout_width="40dip"
android:layout_height="40dip"
android:scaleType="fitCenter"
android:paddingRight="15dip"
android:layout_gravity="right"
android:src="@drawable/off"
/>
</LinearLayout>
how can I fix this issue? How can I place the image to the extreme RHS of
the list view row.
--
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