RecyclerView: wrong position in filtered List

前端 未结 1 1941
我在风中等你
我在风中等你 2021-01-27 12:23

I have a RecyclerView list of CardView items. I then use a simple filter method with a SearchView widget to filter the list. When I then click on a filtered CardView to launch

相关标签:
1条回答
  • 2021-01-27 12:46

    After applying filter the sql DB (getAllDBItems ) data remain same. You are passing only position to CardViewDetail. And the sql data is of original list.

    You should pass your ListItem as parcelable to CardViewDetails instead of position. your problem will be solved.

    0 讨论(0)
提交回复
热议问题