Skip to content Skip to sidebar Skip to footer

SwitchCompat Button Is Not Working In Android?

I have a listview which contain SwitchCompat button when i enable button on index 1 in listview and again when i enable button at position 2 it is disabling button at position 1. P

Solution 1:

boolean isCheck = false; use This thing by an array and make checked and unchecked at that particular position.

Like below;-

boolean isChecked[]; isChecked[position]=true;


Post a Comment for "SwitchCompat Button Is Not Working In Android?"