Answers for "android switch on change"

1

android switch on change

mySwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
    public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
        // do something, the isChecked will be
        // true if the switch is in the On position
    }
});
Posted by: Guest on June-08-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language