Code example for RadioButton

Methods: setOnCheckedChangeListener

0
            if (parent == DeepRadioGroup.this) {
                new TreeScanner (new OnRadioButtonFoundListener() { 
                     
                    @Override 
                    public void onRadioButtonFound(RadioButton radioButton) {
                        radioButton.setOnCheckedChangeListener(null);
                         
                    } 
                }).scan(child);
            } 
        } 
    } 
     
 
    private class TreeScanner { 
        OnRadioButtonFoundListener listener;
        public TreeScanner(OnRadioButtonFoundListener listener) {
            this.listener = listener;
        } 
        // Scan Recursively 
        public void scan(View child) {