-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
The switch view doesn't work correctly:
switch.setOncheckListener(new OnCheckListener() {
@Override
public void onCheck(boolean isChecked) {
System.out.println("isChecked = "+ switch.isChecked());
Toast.makeText(getActivity(), "Switch status = "+isChecked, 0).show();
}
});
1- When you drag with the finger to check or uncheck, it works ok. (it shows a toast)
2- When you click the circular part of the switch, the animation starts and it seems that the switch has changed its state, but the toast is not shown. (Error?)
3- When you click the No circular part of the switch, the animation starts and the toast is shown.
Metadata
Metadata
Assignees
Labels
No labels