Code example for RadioGroup

Methods: clearCheckgetCheckedRadioButtonId

0
 
    } 
 
    View.OnClickListener radioClickListener = new View.OnClickListener() {
        public void onClick(View v) { 
            if (v.getId() == menuAlquran.getCheckedRadioButtonId() && hack) { 
                menuAlquran.clearCheck(); 
                refreshMenuBar(); 
            } else { 
                hack = true; 
            } 
        } 
    }; 
 
    CompoundButton.OnCheckedChangeListener radioCheckChangeListener = new CompoundButton.OnCheckedChangeListener() {
        @Override 
        public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { 
            hack = false; 
            if(buttonView == menuNavigasi && buttonView.isChecked()){ 
                refreshMenuBar(); 
                menubarNavigasi.setVisibility(View.VISIBLE);