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

Index position returning +1 value on click #365

Open
amankumarjain opened this issue Sep 4, 2018 · 2 comments
Open

Index position returning +1 value on click #365

amankumarjain opened this issue Sep 4, 2018 · 2 comments

Comments

@amankumarjain
Copy link

on clicking item on recycler view position index is coming as n+1, 0 index position item click return position = 1, how to solve this?

@af913337456
Copy link
Member

which function you use when you get the pos

@huutho-dev
Copy link

on clicking item on recycler view position index is coming as n+1, 0 index position item click return position = 1, how to solve this?

Don't use getApdapterPOsition
You can use position of Viewholder, it return exactly position of item click

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

No branches or pull requests

3 participants