I'm trying to make a screen where the user would have to choose between the options in <RadioButton
and if he chooses the right accounts to the right and otherwise to the wrong, having finished, after clicking "Reply" is equal in the print and in the piece of code below:
publicvoidonClickView(Viewrdio){intqnt_certo=0,qnt_errado=0;RadioGrouprd_group=(RadioGroup)findViewById(R.id.perguntas);switch(rd_group.getCheckedRadioButtonId()){caseR.id.rd_btn1:qnt_errado=qnt_errado+1;break;caseR.id.rd_btn2:qnt_errado=qnt_errado+1;break;caseR.id.rd_btn3:qnt_certo=qnt_certo+1;break;caseR.id.rd_btn4:qnt_errado=qnt_errado+1;break;}}
ButthepartwhereIfounddifficultywastomanipulatetheinformation,Iwillexplain:
IwantthataftertheuserchoosesandclicksReplythat<RadioGroup
wouldbeblocked,sohecouldnotchangehischoiceandhis"vote" posted.
My difficulties:
1- Know when and what the user chose.
2 - Block <RadioGroup
when it Reply
3- Send the information to another activity
so it has a percentage of hits and errors
4 - After choosing% change color (if right or wrong)