How to apply setItemChecked(position,true) with RecyclerView in Android?

后端 未结 1 1408
醉酒成梦
醉酒成梦 2021-01-05 06:26

I am developing a Material Design Navigation Drawer. I\'ve created a new class RecyclerItemClickListener implements RecyclerView.OnItemTouchListener in it to ha

相关标签:
1条回答
  • 2021-01-05 06:59

    I think, I've found the best tutorial on how to use the RecyclerView with all functions we need and with no libraries (single+multiselection, hightlight, ripple, click and remove in multiselection, etc...). From a first look it seems well explained.

    Here it is --> http://enoent.fr/blog/2015/01/18/recyclerview-basics/

    [EDIT] I finally found the time to try it out and I even created my own more flexible, everybody can benefit my improvements: https://github.com/davideas/FlexibleAdapter. In this link I also explain how it works. Please have a look and feel free to add it to your project.

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