ExpandableList

constructor(items: List<T>, minimumVisibleItems: Int = items.size, isCollapsed: Boolean = true)

Parameters

T

the type of elements contained in the list.

items

the full list of items to wrap.

minimumVisibleItems

the minimum number of items to show when collapsed. Defaults to the full list size (no collapsing by default).

isCollapsed

whether the list is currently collapsed (hiding excess items).