<RadioGroup>
<TableRow>
<RadioButton
android:id="@+id/a"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="lolo"
/>
<RadioButton
android:id="@+id/b"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="sh"
/>
</TableRow>
<TableRow>
<RadioButton
android:id="@+id/c"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="s"
/>
<RadioButton
android:id="@+id/d"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="cannot be determined"
/>
</TableRow>
</RadioGroup>
我想选择四个中的一个rdio按钮,它像4个单独的单选按钮? ,得到选择的所有R,我在Android的开发利用策略新非常和善引导我感谢名单wny单选按钮组在代码中不能正常工作
创建一个选中的复选框和另一个未选中的两个图像,它可以帮助你摆脱这个问题。 – AkashG 2012-07-25 10:10:02
错误:错误:找不到与给定名称匹配的资源(在'drawable'处,值为'@ drawable/selected1')。 – dashh 2012-07-25 10:42:50
@ dreams13你必须在你的可绘制文件夹中放入两个名为selected1和unselected1的图像。 – AkashG 2012-07-25 10:46:11