AdapterChips

inner class AdapterChips(val context: Context) : RecyclerView.Adapter<NuguChipsView.AdapterChips.ChipsViewHolder>

Provides adapter for ChipTray

Parameters

context

is Context

Constructors

Link copied to clipboard
fun AdapterChips(context: Context)

Types

Link copied to clipboard
inner class ChipsViewHolder(itemView: View) : RecyclerView.ViewHolder

view holder

Functions

Link copied to clipboard
fun bindViewHolder(@NonNull p0: NuguChipsView.AdapterChips.ChipsViewHolder, p1: Int)
Link copied to clipboard
fun clear()
Link copied to clipboard
Link copied to clipboard
open override fun getItemCount(): Int

count of item

Link copied to clipboard
open fun getItemId(p0: Int): Long
Link copied to clipboard
open override fun getItemViewType(position: Int): Int
Link copied to clipboard
fun hasObservers(): Boolean
Link copied to clipboard
fun hasStableIds(): Boolean
Link copied to clipboard
fun notifyDataSetChanged()
Link copied to clipboard
fun notifyItemChanged(p0: Int)
fun notifyItemChanged(p0: Int, @Nullable p1: Any?)
Link copied to clipboard
fun notifyItemInserted(p0: Int)
Link copied to clipboard
fun notifyItemMoved(p0: Int, p1: Int)
Link copied to clipboard
fun notifyItemRangeChanged(p0: Int, p1: Int)
fun notifyItemRangeChanged(    p0: Int,     p1: Int,     @Nullable p2: Any?)
Link copied to clipboard
fun notifyItemRangeInserted(p0: Int, p1: Int)
Link copied to clipboard
fun notifyItemRangeRemoved(p0: Int, p1: Int)
Link copied to clipboard
fun notifyItemRemoved(p0: Int)
Link copied to clipboard
open fun onAttachedToRecyclerView(@NonNull p0: RecyclerView)
Link copied to clipboard
open override fun onBindViewHolder(holder: NuguChipsView.AdapterChips.ChipsViewHolder, position: Int)

Called by RecyclerView to display the data at the specified position. This method should update the contents of the itemView to reflect the item at the given position.

open fun onBindViewHolder(    @NonNull p0: NuguChipsView.AdapterChips.ChipsViewHolder,     p1: Int,     @NonNull p2: MutableList<Any>)
Link copied to clipboard
open override fun onCreateViewHolder(viewGroup: ViewGroup, viewType: Int): NuguChipsView.AdapterChips.ChipsViewHolder

Called when RecyclerView needs a new RecyclerView.ViewHolder of the given type to represent an item.

Link copied to clipboard
open fun onDetachedFromRecyclerView(@NonNull p0: RecyclerView)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onViewRecycled(@NonNull p0: NuguChipsView.AdapterChips.ChipsViewHolder)
Link copied to clipboard
open fun registerAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)
Link copied to clipboard
open fun setHasStableIds(p0: Boolean)
Link copied to clipboard
fun startNudgeAnimationIfNeeded()
Link copied to clipboard
fun stopNudgeAnimationIfNeeded()
Link copied to clipboard

Properties

Link copied to clipboard
val context: Context
Link copied to clipboard
val items: MutableList<NuguChipsView.Item>

items