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

getAdapterPosition() wrong index, outOfBounds exception #51

Open
engineers-bojan opened this issue Jun 12, 2016 · 2 comments
Open

getAdapterPosition() wrong index, outOfBounds exception #51

engineers-bojan opened this issue Jun 12, 2016 · 2 comments

Comments

@engineers-bojan
Copy link

RecyclerView method getAdapterPosition() needs to be Overriden, since it doesnt take the parallax view into calculations.

No need to emphasize that this method is extremely important when working with recycler view and its viewholders since on click methods should be implemented in view holders using getAdapterPosition and not using final positions returned by bindViewHolder method.

@kanytu
Copy link
Owner

kanytu commented Aug 31, 2016

You're right about that.
I will implement that once I have time.

Please notice that the adapter has a OnClickEvent that respects that position. Consider using it for the time

@toidv
Copy link

toidv commented Jul 5, 2017

Do you have any update on this problem? I faced with this issue too.

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