ExpandableRecyclerView
ExpandableRecyclerView with smoothly animation.
Install / Use
/learn @Xigong93/ExpandableRecyclerViewREADME
ExpandableRecyclerView 
Design Sketch

Features:
- Expand and close animations smoothly
- Supports expanding only one Group
- Support to expand and close all
- Supports multiple types of items
- Supports LinearLayoutManager and GridLayoutManager
- Support sticky header
- Expanded state saving and recovery (when switching between portrait and horizontal screens)
- Support for Java project integration (>= v0.6.0)
Take a look
Download Url https://github.com/pokercc/ExpandableRecyclerView/releases
How to use:
- include dependence
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
implementation("com.github.pokercc:ExpandableRecyclerView:${last_version}")
- Write code
- Use
ExpandableRecyclerViewin your layout xml. - Inheriting
ExpandableAdapterto realize your adapter.
More detail please refer demo
Attention:
- Using StickyHeader,GroupViewHolder.itemView please set an opaque background, otherwise penetration will occur
- ExpandableRecyclerView's height must set to match_parent or fixed size, Otherwise, the RecyclerView height may change during expansion and closure, causing problems for the execution of the animation
Design from: https://dribbble.com/shots/3253927-Accordion
Welcome to star or create issue.
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
