以下のようなレイアウトを作りたいです。
そのために、コードを使用しています。テキストが小さい場合は問題ありtextWoundTypeDetails
ませんが、テキストが大きい場合は、画像が画面から押し出され、テキストが全幅を埋めます。
<TextView
android:id="@+id/textWoundType"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:padding="5dp"
android:text="@string/wound_screener" />
<ImageView
android:id="@+id/closebtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:layout_alignParentRight="true"
android:src="@drawable/buttonclose" />
<ImageView
android:id="@+id/imgWoundType"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/textWoundTypeDetails"
android:layout_below="@id/textWoundType"
android:src="@drawable/article_noimg" />
<TextView
android:id="@+id/textWoundTypeDetails"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@id/textWoundType"
android:padding="5dp"
android:text="A wound caused by superficial damage to the skin, no deeper than the epidermis. It is less severe than a laceration, and bleeding, if present, is minimal." />
この問題を解決するには?