Hi there! I'm new to android and I'm trying to create a simple layout, with a TextView aligned to the left and an ImageView aligned to the right, both in the same line. I've tried many approaches, but the Imageview never aligns to the right. Here is my latest attempt:
<?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TableRow> <TextView android:text="@string/label_dots" android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="left"/> <ImageView android:id="@+id/ImageView01" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/action_add" android:gravity="right"/> </TableRow> </TableLayout> It doesn't work on eclipse Layout preview and it doesn't work on my G1. Any ideas how to fix it? -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

