BaseLeanbackPreferenceFragmentCompat

public abstract class BaseLeanbackPreferenceFragmentCompat
extends PreferenceFragmentCompat

java.lang.Object
   ↳ androidx.fragment.app.Fragment
     ↳ androidx.preference.PreferenceFragmentCompat
       ↳ androidx.leanback.preference.BaseLeanbackPreferenceFragmentCompat


This fragment provides a preference fragment with leanback-style behavior, suitable for embedding into broader UI elements.

Summary

Inherited constants

Public constructors

BaseLeanbackPreferenceFragmentCompat()

Public methods

RecyclerView onCreateRecyclerView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState)

Creates the RecyclerView used to display the preferences.

Inherited methods

Public constructors

BaseLeanbackPreferenceFragmentCompat

public BaseLeanbackPreferenceFragmentCompat ()

Public methods

onCreateRecyclerView

public RecyclerView onCreateRecyclerView (LayoutInflater inflater,
                ViewGroup parent,
                Bundle savedInstanceState)

Creates the RecyclerView used to display the preferences. Subclasses may override this to return a customized RecyclerView.

Parameters
inflater LayoutInflater: The LayoutInflater object that can be used to inflate the RecyclerView.

parent ViewGroup: The parent ViewGroup that the RecyclerView will be attached to. This method should not add the view itself, but this can be used to generate the layout params of the view.

savedInstanceState Bundle: If non-null, this view is being re-constructed from a previous saved state as given here.

Returns
RecyclerView A new RecyclerView object to be placed into the view hierarchy