@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_quiz);
Dbb db=new Dbb(this);
quesll=db.getAllQuestions();
currentQ=quesList.get(qid);
txtresult=(TextView)findViewById(R.id.textView2);
txtQuestion=(TextView)findViewById(R.id.textView1);
radiobuttona=(RadioButton)findViewById(R.id.radio0);
radiobuttonb=(RadioButton)findViewById(R.id.radio1);
buttonnext=(Button)findViewById(R.id.button1);
buttonnext.setEnabled(false);
setQuestionView();
buttonnext.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
RadioGroup group = (RadioGroup) findViewById(radioGroup);
RadioButton answer = (RadioButton) findViewById(grp.getCheckedRadioButtonId());
if (group .isSelected()){
butNext.setEnabled(true);
}
ラジオグループが選択されている場合、ボタンが有効になっていない理由を教えてください。ラジオグループが選択されているときにボタンが有効にならない
あなたの投稿は主にコードであるようです。詳細を追加してください。 あなたの投稿は主にコードであるようです。詳細を追加してください。 あなたの投稿は主にコードであるようです。詳細をいくつか追加してください。あなたの投稿は主にコードです。詳細を追加してください。
ありがとう、その本当の仕事^^ – Peter
**ウェルカムピーター!** – HsRaja