私はAndroid開発ではかなり新しいです。私がやりたいことは、TextView-CheckBox のいくつかのペアを配置して、それぞれが 1 つの別々の行になるようにすることです。
<TextView> ................ <CheckBox>
<TextView> ................ <CheckBox>
<TextView> ................ <CheckBox>
TextView
左側とCheckBox
右側にある必要があります。また、「About」メニュー項目を一番下に配置したいと思います。したがって、それは見え、これが私が望むものです:
<TextView> ................ <CheckBox>
<TextView> ................ <CheckBox>
<TextView> ................ <CheckBox>
<About>
私がこれまで持っていたのは、CheckBox と TextView の 1 つのペアでした。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
/>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
/>
</RelativeLayout>
CheckBox
明らかに、とのペアをもう 1 つ追加しようとしたときTextView
、失敗しました。それらは表示されませんでした。残念ながら、メニュー項目を必要な場所に追加する方法はまだわかりません。