class SymbolListAdapter : ListAdapter<Symbol, ViewHolder>
ListAdapter for Symbols.
DiffCallback |
DiffUtil.ItemCallback for Symbols. companion object DiffCallback : ItemCallback<Symbol> |
ViewHolder |
RecyclerView.ViewHolder for CardSymbolBindings. inner class ViewHolder : ViewHolder |
<init> |
ListAdapter for Symbols. SymbolListAdapter(onClickListener: OnClickListener<Symbol>) |
onBindViewHolder |
Binds a Symbol to a ViewHolder. fun onBindViewHolder(holder: ViewHolder, position: Int): Unit |
onCreateViewHolder |
Creates a ViewHolder by inflating a CardSymbolBinding. fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder |
areContentsTheSame |
Checks if two Symbols are equal. fun areContentsTheSame(oldItem: Symbol, newItem: Symbol): Boolean |
areItemsTheSame |
Checks if two Symbols have the same id. fun areItemsTheSame(oldItem: Symbol, newItem: Symbol): Boolean |