Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch isn't working properly. #81

Open
borjaruiz opened this issue Dec 15, 2014 · 2 comments
Open

Switch isn't working properly. #81

borjaruiz opened this issue Dec 15, 2014 · 2 comments

Comments

@borjaruiz
Copy link

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.

@emileb
Copy link

emileb commented Dec 29, 2014

I am also getting this intermittent problem, it's possible to change the switch state without onCheck being called.

@jdzuri
Copy link

jdzuri commented Feb 27, 2015

I have the same error, check to uncheck work event listener work fine but uncheck to check no work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants