私はこのようなリストアイテムを作成しようとしています:-
| date | src | type | value |
| description | .. |
以下に示す相対レイアウトを使用します:-
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true">
</TextView>
<TextView
android:id="@+id/src"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/date"
android:layout_alignParentTop="true">
</TextView>
<TextView
android:id="@+id/type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/src"
android:layout_alignParentTop="true">
</TextView>
<TextView
android:id="@+id/value"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:gravity="right"
android:layout_toRightOf="@id/type"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:textAppearance="?android:attr/textAppearanceLarge"/>
<TextView
android:id="@+id/description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/date"
android:layout_toLeftOf="@id/value"
android:layout_alignRight="@id/type"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true">
</TextView>
</RelativeLayout>
しかし、私が得るものはもっとこのようなものです:-
| date | src | type |
| description | value |
右端のセルスパンを2行取得できません。私はそれを間違った方法で使用していますか、それともこれに別の正しいレイアウトタイプがありますか?
ありがとう