Constructors

Link copied to clipboard

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface Listener

Functions

Link copied to clipboard
fun bindViewHolder(holder: VH, position: Int)
Link copied to clipboard
Explicitly collapse a group.
Link copied to clipboard
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 getChildViewType(position: Int, group: ExpandableGroup, childIndex: Int): Int
Used to allow subclasses to have multiple view types for children
Link copied to clipboard
open fun getGroups(): List<out ExpandableGroup>
The full list of ExpandableGroup backing this RecyclerView
Link copied to clipboard
open fun getGroupViewType(position: Int, group: ExpandableGroup): Int
Used to allow subclasses to have multiple view types for groups
Link copied to clipboard
abstract fun getItemCount(): Int
open fun getItemCount(): Int
Link copied to clipboard
open fun getItemId(position: Int): Long
Link copied to clipboard
open fun getItemViewType(position: Int): Int

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
Link copied to clipboard
open fun isChild(viewType: Int): Boolean
Link copied to clipboard
open fun isGroup(viewType: Int): Boolean
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
open fun onBindChildViewHolder(holder: SearchablesListAdapter.ChildViewHolder, 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
open fun onBindGroupViewHolder(holder: GroupViewHolder, flatPosition: Int, group: ExpandableGroup)
Called from onBindViewHolder(RecyclerView.
Link copied to clipboard
abstract fun onBindViewHolder(p: VH, p1: Int)

open fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int)
Implementation of Adapter.onBindViewHolder(RecyclerView.
Link copied to clipboard
Called from onCreateViewHolder when the list item created is a child
Link copied to clipboard
Called from onCreateViewHolder when the list item created is a group
Link copied to clipboard
abstract fun onCreateViewHolder(p: ViewGroup, p1: Int): VH

Implementation of RecyclerView.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