You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible that this adapter "breaks" the RecyclerView.LayoutManager.getPosition(View view) ? It is always returning -1. Maybe I'm not doing it correctly but I think I am.
The text was updated successfully, but these errors were encountered:
So I must be doing something wrong somewhere else cause both method are returning me -1. By the way, is there a way to get the LayoutManager from inside a viewholder?
Thank you so much for the answer and for the library!
Sorry to hear that, I hope you will find the issue. If you want, you can test with my sample available on this repo and let me know.
I think you can get the LayoutManager from a ViewHolder, by calling the parent of "getView()" (it's your RecyclerView), then call getLayoutManager on it.
Is it possible that this adapter "breaks" the RecyclerView.LayoutManager.getPosition(View view) ? It is always returning -1. Maybe I'm not doing it correctly but I think I am.
The text was updated successfully, but these errors were encountered: