我已经在我的应用程序上安装了一个带有三个单选按钮的无线电组,但是我希望文本在它上方,就像复选框一样。我可以像这样引用strings.xml文件吗?
<RadioGroup
android:id="@+id/set_radiogroup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/between_games_timer"
android:orientation="vertical"
android:text="@string/sets_radio_group" >
<RadioButton
android:id="@+id/one_set"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</RadioButton>
<RadioButton
android:id="@+id/two_sets"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</RadioButton>
<RadioButton
android:id="@+id/three_sets"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</RadioButton>
</RadioGroup>
因为当我运行应用程序时,三个单选按钮显示没有任何文本。或者有更简单的方法吗?