AdapterSingle

open class AdapterSingle : RecyclerView.Adapter<LeanbackListPreferenceDialogFragment.ViewHolder!>, LeanbackListPreferenceDialogFragment.ViewHolder.OnItemClickListener
kotlin.Any
   ↳ androidx.recyclerview.widget.RecyclerView.Adapter<androidx.leanback.preference.LeanbackListPreferenceDialogFragment.ViewHolder>
   ↳ androidx.leanback.preference.LeanbackListPreferenceDialogFragment.AdapterSingle

Adapter for single choice.

Summary

Public constructors
<init>(entries: Array<CharSequence!>!, entryValues: Array<CharSequence!>!, selectedValue: CharSequence!)

Public methods
open Int

open Unit

open LeanbackListPreferenceDialogFragment.ViewHolder
onCreateViewHolder(parent: ViewGroup, viewType: Int)

open Unit

Inherited functions

Public constructors

<init>

AdapterSingle(entries: Array<CharSequence!>!, entryValues: Array<CharSequence!>!, selectedValue: CharSequence!)

Public methods

getItemCount

open fun getItemCount(): Int

onBindViewHolder

open fun onBindViewHolder(holder: LeanbackListPreferenceDialogFragment.ViewHolder, position: Int): Unit

onCreateViewHolder

open fun onCreateViewHolder(parent: ViewGroup, viewType: Int): LeanbackListPreferenceDialogFragment.ViewHolder

onItemClick

open fun onItemClick(viewHolder: LeanbackListPreferenceDialogFragment.ViewHolder!): Unit