Skip to content

Switch isn't working properly. #81

@borjaruiz

Description

@borjaruiz

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions