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

How to know when user changes cardview #32

Open
ihebfehri opened this issue Feb 8, 2018 · 1 comment
Open

How to know when user changes cardview #32

ihebfehri opened this issue Feb 8, 2018 · 1 comment

Comments

@ihebfehri
Copy link

Hello,

I want to know if theres a way i could know when the user swipes, or moves from one cardview to another.
I tried an setPageItemClickListener(), but that only shows me when the user clicks a card, not when he swipes, or uses the Left and Right button. Is there a way i can catch any user movement?

Your help would be greatly appreciated!! You have my thanks

@srdrslmn
Copy link

srdrslmn commented Apr 5, 2018

viewPager.addOnPageChangeListener(this);
and implement methods

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

2 participants