Android组件之Radio与CheckBox

2014-11-24 14:16:46 · 作者: · 浏览: 2

RadioButton选项按钮可用于多选一的应用中,如果想在选中莫一个选项按钮后,其它的选项按钮都被设未选中状态,需将RadioButton标签放在RadioGroup标签中。


例如:









在代码中监听单选框状态,