Answers for "how to change state of a Switch programmatically andoir dstudio"

0

how to change state of a Switch programmatically andoir dstudio

Switch a; // define your switch


a.setOnClickListener(
     new View.OnClickListener() {
         @Override
         public void onClick(View view) {
               b.setChecked(!b.isChecked);
         }
      });
Posted by: Guest on March-19-2021

Code answers related to "how to change state of a Switch programmatically andoir dstudio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language