DingMouRen / LayoutManagerGroup

:point_right: Customize the LayoutManager of RecyclerView(自定义LayoutManager)
4.98k stars 680 forks source link

How to get position of item in onSlided in SlideLayoutManager? #52

Open Smarpit-Singh opened 5 years ago

Smarpit-Singh commented 5 years ago

viewHolder.getAdapterPosition() keeps return -1. How can i get postion of item that were slidded?

int position = viewHolder.getAdapterPosition(); Log.e(TAG, "onSlided--position:" + position);