私はAlertDialogBoxを持っていて、それにラジオボタンを置きましたが、問題があります。それらをクリックすると、両方が選択されます..必要なのは、1つのラジオボタンをクリックするたびに選択され、別のラジオボタンをクリックすると、もう一方の選択を解除します..どうすればそれを行うことができますか? ここに私のコードがあります..
AlertDialog.Builder alert = new AlertDialog.Builder(this);
alert.setTitle("Standard Deviation");
alert.setIcon(R.drawable.droid);
RadioButton one = new RadioButton(this);
one.setText("one set");
RadioButton two = new RadioButton(this);
two.setText("two sets");
LinearLayout ll=new LinearLayout(Treatment.this);
ll.setOrientation(LinearLayout.VERTICAL);
ll.addView(one);
ll.addView(two);
alert.setView(ll);
AlertDialog alertDialog = alert.create();
alertDialog.show();