Open langhoangal opened 8 years ago
Hello, bro
I am not able to add it in the project. i always gets failed to resolve.
did you call notifyDataSetChanged or notifyItem* method? You need to do it every time you update your data in the adapter.
Sure, i did, but it still return wrong value. I think that it related to the scroll animation (when remove item). If i try to call getCurrentPosition after (delay) 100ms then it work.
@vishuhm911 i think that you can open an new issues for that :)
i have same issue. after removeitem(position) getcurrentpoision is weird
i solved ...manager.findFirstVisibleItemPosition()
@BongJaeChoi I am trying to get the current item position in my activity from layout manager like this, position = layoutManager.findFirstVisibleItemPosition(); if i scroll right it gives the correct position but it gives wrong position when scroll left. Please let me know how to fix this.
After deleting/removing item from recycler view, call getCurrentPosition() it still return the old position.