android-parallax-recyclerview icon indicating copy to clipboard operation
android-parallax-recyclerview copied to clipboard

getAdapterPosition() wrong index, outOfBounds exception

Open engineers-bojan opened this issue 9 years ago • 2 comments
trafficstars

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.

engineers-bojan avatar Jun 12 '16 12:06 engineers-bojan

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

kanytu avatar Aug 31 '16 09:08 kanytu

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

toidv avatar Jul 05 '17 18:07 toidv