1
Iはリニア(配向水平).Three部は
1であるように、全体のレイアウトを取る三つの部分にそれを分割image.Iに示すように、リストアイテムのレイアウトを作成する)イメージ
2)段落
3)線形レイアウトで3つの編集テキスト。
私は、次の部分を妨害する段落(テキストビュー)の長さとして2番目の部分に問題があります。また、相対レイアウトに重みを入れてみますが、動作しません。この問題の解決方法は何ですか?
How to do something like this.
コード:アンドロイドスタジオで段落を作成するにはどうすればいいですか?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/item_icon"
android:src="@drawable/hammer"
android:layout_weight="1"
android:layout_width="100dp"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/item_name"
android:layout_toRightOf="@id/item_icon"
android:layout_weight="1"
android:text="skvnksjdjbkjbkjb"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<LinearLayout
android:id="@+id/item_detail"
android:layout_toRightOf="@id/item_name"
android:layout_weight="1"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/detail1"
android:layout_weight="1"
android:text="fkvjbfvkjbv"
android:textSize="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/detail2"
android:layout_weight="1"
android:text="fkvjbfvkjbv"
android:textSize="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/detail3"
android:layout_weight="1"
android:text="fkvjbfvkjbv"
android:textSize="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
に設定する必要があり、それが正常に動作します。 –