I have used setEnabled(false) to set it unable, but it doesn\'t work and after this method, the value of RadioGroup.isEnabled() is false. The value was
setEnabled(false)
RadioGroup.isEnabled()
use the following method:
for (int i = 0; i < testRadioGroup.getChildCount(); i++) { testRadioGroup.getChildAt(i).setEnabled(false); }