Code example for CompoundButton

Methods: getId

0
            if (mCheckedId != -1) {
                setCheckedStateForView(mCheckedId, false);
            } 
            mProtectFromCheckedChange = false;
 
            int id = buttonView.getId();
            setCheckedId(id);
        } 
    } 
 
    private class PassThroughHierarchyChangeListener implements 
            ViewGroup.OnHierarchyChangeListener {
        private ViewGroup.OnHierarchyChangeListener mOnHierarchyChangeListener;
 
        public void onChildViewAdded(final View parent, View child) {
            if (parent == DeepRadioGroup.this) {
                new TreeScanner(new OnRadioButtonFoundListener() { 
                    @Override 
                    public void onRadioButtonFound(RadioButton radioButton) {
                        int id = radioButton.getId();
                        if (id == View.NO_ID) {