Constructors

Link copied to clipboard
constructor(groups: List<out ExpandableGroup>)

Functions

Link copied to clipboard
fun bindViewHolder(holder: VH, position: Int)
Link copied to clipboard
Explicitly collapse a group.
Link copied to clipboard
fun createViewHolder(parent: ViewGroup, viewType: Int): VH
Link copied to clipboard
open fun expandGroup(group: ExpandableGroup)
Explicitly expand a group.
Link copied to clipboard
Link copied to clipboard
open fun getGroups(): List<out ExpandableGroup>
The full list of ExpandableGroup backing this RecyclerView
Link copied to clipboard
open fun getItemCount(): Int
Link copied to clipboard
open fun getItemId(position: Int): Long
Link copied to clipboard
open fun getItemViewType(position: Int): Int
Gets the view type of the item at the given position.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isGroupExpanded(flatPos: Int): Boolean
Link copied to clipboard
Link copied to clipboard
fun notifyItemChanged(position: Int)
Link copied to clipboard
fun notifyItemInserted(position: Int)
Link copied to clipboard
fun notifyItemMoved(fromPosition: Int, toPosition: Int)
Link copied to clipboard
fun notifyItemRangeChanged(positionStart: Int, itemCount: Int)
Link copied to clipboard
fun notifyItemRangeInserted(positionStart: Int, itemCount: Int)
Link copied to clipboard
fun notifyItemRangeRemoved(positionStart: Int, itemCount: Int)
Link copied to clipboard
fun notifyItemRemoved(position: Int)
Link copied to clipboard
open fun onAttachedToRecyclerView(recyclerView: RecyclerView)
Link copied to clipboard
abstract fun onBindChildViewHolder(holder: CVH, flatPosition: Int, group: ExpandableGroup, childIndex: Int)
Called from onBindViewHolder(RecyclerView.ViewHolder, int) when the list item bound to is a child.
Link copied to clipboard
abstract fun onBindGroupViewHolder(holder: GVH, flatPosition: Int, group: ExpandableGroup)
Called from onBindViewHolder(RecyclerView.
Link copied to clipboard
open fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int)
Implementation of Adapter.onBindViewHolder(RecyclerView.
Link copied to clipboard
abstract fun onCreateChildViewHolder(parent: ViewGroup, viewType: Int): CVH
Called from onCreateViewHolder when the list item created is a child
Link copied to clipboard
abstract fun onCreateGroupViewHolder(parent: ViewGroup, viewType: Int): GVH
Called from onCreateViewHolder when the list item created is a group
Link copied to clipboard
Implementation of Adapter.
Link copied to clipboard
Link copied to clipboard
open fun onFailedToRecycleView(holder: VH): Boolean
Link copied to clipboard
open fun onGroupClick(flatPos: Int): Boolean
Triggered by a click on a GroupViewHolder
Link copied to clipboard
open fun onGroupCollapsed(positionStart: Int, itemCount: Int)
Called when a group is collapsed
Link copied to clipboard
open fun onGroupExpanded(positionStart: Int, itemCount: Int)
Called when a group is expanded
Link copied to clipboard
open fun onRestoreInstanceState(savedInstanceState: Bundle)
Fetches the expandable state map from the saved instance state Bundle and restores the expanded states of all of the list items.
Link copied to clipboard
open fun onSaveInstanceState(savedInstanceState: Bundle)
Stores the expanded state map across state loss.
Link copied to clipboard
open fun onViewAttachedToWindow(holder: VH)
Link copied to clipboard
open fun onViewDetachedFromWindow(holder: VH)
Link copied to clipboard
open fun onViewRecycled(holder: VH)
Link copied to clipboard
open fun setHasStableIds(hasStableIds: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun toggleGroup(flatPos: Int): Boolean