可以取消选中状态的radioButton
@Override
public void toggle() {
// we override to prevent toggle when the radio is checked
super.toggle();
}

#####主要改变原来RadioButton中toggle()方法,其他都不变.在类CheckRadioButton.class中查看
public class CheckRadioButton extends CompoundButton {
public CheckRadioButton(Context context) {
this(context,null);
}
public CheckRadioButton(Context context, AttributeSet attrs) {
this(context, attrs,android.R.attr.radioButtonStyle);
}
public CheckRadioButton(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
@Override
public void toggle() {
// we override to prevent toggle when the radio is checked
super.toggle();
}
}