This should be a very simple one but i can never feel comfortable
after tried so many options.

I've defined a text view in left and a image view in right in a
TableRow, no matter what i tried, the image always aligns to the right
side. I found out that it's because the text view occupies most of the
width in the line that leaves no more space for the image, but just
don't know how to correct it.

<TableRow>
                <LinearLayout android:orientation="horizontal"
                        android:layout_width="fill_parent">
                        <TextView android:textSize="20sp" 
android:textStyle="bold"
                                android:id="@+id/my_title" android:text="abc"
                                android:layout_height="wrap_content"
android:layout_width="fill_parent"
                                android:layout_weight="1">
                        </TextView>

                        <ImageView android:id="@+id/phone_mode_icon" 
android:src="@drawable/
ic_airplane"
                                android:layout_width="wrap_content"
android:layout_height="wrap_content"
                                android:layout_gravity="center_vertical" />
                </LinearLayout>
        </TableRow>

Please help me out, thanks.

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