我想创建以下布局,它应该 100% 以横向形式显示为纵向形式。
替代文字 http://www.freeimagehosting.net/uploads/b12bb68569.png
这是我尝试但不工作的代码
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:stretchColumns="0">
<TableRow>
<TableLayout android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow>
<TableLayout android:layout_width="wrap_content"
android:layout_height="wrap_content" android:orientation="horizontal">
<TableRow>
<TextView android:id="@+id/reviewItemEntityName"
android:layout_height="wrap_content" android:text="12345"
android:textColor="@color/maroon" />
<ImageView android:id="@+id/reviewItemStarRating"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/title_1_star" />
</TableRow>
</TableLayout>
</TableRow>
<TableRow>
<TextView android:id="@+id/reviewItemDescription"
android:layout_width="0dip" android:layout_height="wrap_content"
android:text="Description comes here" android:textSize="12sp" />
</TableRow>
</TableLayout>
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/arrow_nxt"
android:layout_gravity="center_vertical"
android:layout_alignParentRight="true" />
</TableRow>
</TableLayout>