次のコードをご覧ください
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Form" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TextView
android:id="@+id/gender"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Text To Be Displayed"
android:layout_below="@+id/hipsTxt"
/>
<RadioGroup
android:id="@+id/genderRadio"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_toRightOf="@+id/gender"
android:layout_alignBaseline="@+id/gender"
>
<RadioButton
android:id="@+id/male"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Male" />
<RadioButton
android:id="@+id/female"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Female" />
</RadioGroup>
</RelativeLayout>
</ScrollView>
ここでは、のすぐ隣にラジオボタンを表示する必要がありますTextView
。しかし、代わりに、テキストビューの下に表示されます!! ここで何が問題になっていますか?助けてください!
PS:Androidバージョン2.3.3