Skip to content

Instantly share code, notes, and snippets.

View geoff-powell's full-sized avatar
😀
Developing somewhere...

Geoff Powell geoff-powell

😀
Developing somewhere...
View GitHub Profile
@geoff-powell
geoff-powell / ExpandableGroup.kt
Last active April 6, 2019 18:37
Expandable group for groupie that takes a size of elements to show for the collapsed state
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListUpdateCallback
import com.xwray.groupie.Group
import com.xwray.groupie.Item
import com.xwray.groupie.NestedGroup
import com.xwray.groupie.ViewHolder
// Inspired from ExpandableGroup
// https://github.com/lisawray/groupie/blob/master/library/src/main/java/com/xwray/groupie/ExpandableGroup.java