samedi 13 août 2016

Android checkbox checked in one activity and then button appears in another activity

The question says it all. Imagine there are 2 activity's, 'Activity A' and 'Activity B'.'Activity A' holds a checkbox when its checked a button should show on 'Activity B' when its unchecked the button should hide on 'Activity B'

CheckBox checkBox = (CheckBox)findViewById(R.id.chkbox1);
        checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {


            }
        });
    }




Aucun commentaire:

Enregistrer un commentaire