Android 关于RecyclerView点击item子控件

首先得明确一点,RecyclerView要想实现点击item或者item子控件,都是必须要自己去写点击事件。

Github地址:implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.35'

这个是我使用的RecyclerView适配器的地址,感觉使用起来比较简单

1.RecyclerView的基本使用

list用于存放要展示的数据,adBluetoothConnect表示适配器

2.构造适配器

 

  

 3.实现效果

 PS:BBluetoothConnect

 按照上面的步骤就可以实现点击子控件效果了。

就写这么多了,day day day up!


版权声明:本文为wulileaf原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。