Error in Android's clearCheck() for RadioGroup?

后端 未结 3 558
盖世英雄少女心
盖世英雄少女心 2021-01-02 03:04

I\'m having an issue with RadioGroup\'s clearChecked(). I\'m displaying a multiple choice question to the user and after the user selects an answer I check the answer, give

3条回答
  •  星月不相逢
    2021-01-02 03:22

    I had similar problem. My solution:

    in procedure:

    public void onCheckedChanged(RadioGroup rGroup, int checkedId)
    

    I check checkedId. It equals to -1 if you use clearCheck() else it equals to selected radiogroup child

提交回复
热议问题