2 つのテキスト ビュー (TV_1、TV_2) があります。TV_2 を TV_1 のすぐ右に設定したいと思います。その意味は
- TV1 が画面内の 1 行全体を占めると仮定すると、TV2 は TV1 の下に設定されます。
- Tv1 が 1.5 ラインを占有し、tv2 が残りのスペースを占有するとします。これを実装する方法は?試しましたが、取得できません。1つの段落に似ています。
<RelativeLayout
android:id="@+id/xrays_dicom_alert_TnC"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_marginTop="20dp">
<CheckBox
android:id="@+id/xrays_dicom_alert_cb"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"/>
<TextView
android:id="@+id/xrays_dicom_alert_TnC_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/xrays_dicom_alert_cb"
android:text="I have read I agree to the following"
android:textColor="@color/black"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/xrays_dicom_alert_statement"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/xrays_dicom_alert_cb"
android:layout_below="@id/xrays_dicom_alert_TnC_text"
android:layout_alignRight="@id/xrays_dicom_alert_TnC_text"
android:text="Statement"
android:textColor="@color/black"
android:layout_weight="1"
android:textAppearance="?android:attr/textAppearanceMedium" />
</RelativeLayout>