android 分组adapter,可分组的 RecyclerView 适配器 ExpandableAdapter

软件介绍

ExpandableAdapter,继承自 RecyclerView.Adapter,支持header,child, group, groupchild, footer 分组,并且支持group悬浮效果(Sticky效果)。

运行截图:

85fddd5a038083581a94bae29e898c8e.gif

示例代码:

1.需要Group悬浮,将RecyclerView包裹在’StickyLayout’里面,并且调用’stickylayout’的init函数传入参数true(true,表示group悬浮,false表示不悬浮)

android:id=”@+id/stickylayout”

android:layout_width=”match_parent”

android:layout_height=”match_parent”>

android:id=”@+id/recyclerview”

android:layout_width=”match_parent”

android:layout_height=”match_parent” />

2.不需要Group悬浮,可直接使用’RecyclerView’

android:id=”@+id/recyclerview”

android:layout_width=”match_parent”

android:layout_height=”match_parent” />

下载:

Gradle:compile ‘com.qbw.recyclerview:expandableadapter:2.4.0’

相关资源:丝柏人像美肤处理软件CPAC Imaging Pro 3绿化汉化破解版

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2021年4月23日
下一篇 2021年4月23日

相关推荐