RadioGroup&RadioButton

RadioGroup提供多选一机制:属性orientation:“vertlcal” or “horizontal”

@Override
public void onCheckedChanged(RadioGroup group, int checkedid) {
// TODO Auto-generated method stub
switch(checkedid){
case R.id.radio0:
Log.i("tag","nan");
break;
case R.id.radio1:
Log.i("tag","nv");
break;
default: break;
}
}

上一篇:UITableView中Cell和section的插入与删除


下一篇:android音乐播放器开发教程