次の RelativeLayout があります。
<RelativeLayout 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"
android:orientation="horizontal" >
<RadioGroup
<!--stuff-->
</RadioGroup>
<Spinner
android:id="@+id/colour_spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/radioGroup1" />
<TextView
android:id="@+id/colourLabel"
android:text="@string/label_colour"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/radioGroup1"
android:layout_toLeftOf="@+id/colour_spinner"/>
<Spinner
android:id="@+id/country_spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/colour_spinner" />
<TextView
android:id="@+id/countryLabel"
android:text="@string/label_country"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/colour_spinner"
android:layout_toLeftOf="@+id/country_spinner"/>
<Spinner
android:id="@+id/stadium_spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/country_spinner" />
<TextView
android:id="@+id/stadiumLabel"
android:text="@string/label_stadium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/country_spinner"
android:layout_toLeftOf="@+id/stadium_spinner"/>
うまくいけば、私がここでやろうとしていることは明らかです。3 つのスピナーがそれぞれ前のスピナーの下にあり、それぞれの左側にラベルがあり、理想的にはすべてがきちんと並んでいます。
私が現時点で得ている結果は、スピナーのみが画面に表示され、テキスト ラベルがまったく表示されないことです。ここで何が間違っていますか?レイアウトの幅/高さの設定に関係していると思われますか?