I have some RadioButton in fragmentA,,,and also some RadioButton in fragmentB
i want that when one of these isChecked
(FragmentA),in FragmentB disable all radio button.
same activity host these fragment.
event click Radio Buttons in Fragment A:
RadioGroup radioGroup = view.findViewById(R.id.readingGroup);
radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(RadioGroup radioGroup, @IdRes int i) {
switch (i) {
case R.id.btnNormalD:
//code
break;
case R.id.btnAbsence:
//code
break;
case R.id.btnWithAnObstacle:
//code
break;
case R.id.btnHaunted:
//code
break;
case R.id.btnDestroyed:
//code
break;
case R.id.btnNoSubscribersFound:
//code
break;
case R.id.btnGround:
//code
break;
case R.id.btnInterrupted:
//code
break;
}
}
});