LeanbackListPreferenceDialogFragment.AdapterSingle

public class LeanbackListPreferenceDialogFragment.AdapterSingle
extends Adapter<LeanbackListPreferenceDialogFragment.ViewHolder> implements LeanbackListPreferenceDialogFragment.ViewHolder.OnItemClickListener

java.lang.Object
   ↳ androidx.recyclerview.widget.RecyclerView.Adapter<androidx.leanback.preference.LeanbackListPreferenceDialogFragment.ViewHolder>
     ↳ androidx.leanback.preference.LeanbackListPreferenceDialogFragment.AdapterSingle


This class is deprecated.
Use LeanbackListPreferenceDialogFragmentCompat.

Adapter for single choice.

Summary

Public constructors

AdapterSingle(CharSequence[] entries, CharSequence[] entryValues, CharSequence selectedValue)

Public methods

int getItemCount()

Returns the total number of items in the data set held by the adapter.

void onBindViewHolder(LeanbackListPreferenceDialogFragment.ViewHolder holder, int position)

Called by RecyclerView to display the data at the specified position.

LeanbackListPreferenceDialogFragment.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)

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

void onItemClick(LeanbackListPreferenceDialogFragment.ViewHolder viewHolder)

Inherited methods