# BaseLeanbackPreferenceFragment

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:preference-leanback-v17:28.0.0-alpha1  
Summary:[Inherited XML Attrs](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#inhattrs)\|[Inherited Constants](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#inhconstants)\|[Ctors](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#pubctors)\|[Methods](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)  

# BaseLeanbackPreferenceFragment

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


abstract
class
BaseLeanbackPreferenceFragment
`  
`


``


``

extends `[PreferenceFragment](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment)`


``


`

|---|---|---|---------------------------------------------------------------|
| java.lang.Object                                                       ||||
| ↳ | [android.app.Fragment](https://developer.android.com/reference/android/app/Fragment.html) |||
|   | ↳ | [android.support.v14.preference.PreferenceFragment](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment) ||
|   |   | ↳ | android.support.v17.preference.BaseLeanbackPreferenceFragment |

|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)Known Direct Subclasses [LeanbackPreferenceFragment](https://developer.android.com/reference/android/support/v17/preference/LeanbackPreferenceFragment) |---------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------| | [LeanbackPreferenceFragment](https://developer.android.com/reference/android/support/v17/preference/LeanbackPreferenceFragment) | This fragment provides a fully decorated leanback-style preference fragment, including a list background and header. | |

<br />

*** ** * ** ***

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

## Summary

| ### Inherited XML attributes |
|------------------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)From class` `[android.support.v14.preference.PreferenceFragment](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment)` ` |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---| | [`PreferenceFragment_android_divider`](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#attr_PreferenceFragment_android_divider)             |   | | [`PreferenceFragment_android_dividerHeight`](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#attr_PreferenceFragment_android_dividerHeight) |   | ||

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)From class` `[android.support.v14.preference.PreferenceFragment](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment)` ` |----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `String` | [ARG_PREFERENCE_ROOT](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#ARG_PREFERENCE_ROOT) Fragment argument used to specify the tag of the desired root[PreferenceScreen](https://developer.android.com/reference/android/support/v7/preference/PreferenceScreen)object. | |
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)From interface` android.content.ComponentCallbacks2 ` |-------|---------------------------------------| | `int` | `TRIM_MEMORY_BACKGROUND` <br />       | | `int` | `TRIM_MEMORY_COMPLETE` <br />         | | `int` | `TRIM_MEMORY_MODERATE` <br />         | | `int` | `TRIM_MEMORY_RUNNING_CRITICAL` <br /> | | `int` | `TRIM_MEMORY_RUNNING_LOW` <br />      | | `int` | `TRIM_MEMORY_RUNNING_MODERATE` <br /> | | `int` | `TRIM_MEMORY_UI_HIDDEN` <br />        |                                                                                                                                                                                                                                                                                                                                                                |

|                                                                               ### Public constructors                                                                               ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[BaseLeanbackPreferenceFragment](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#BaseLeanbackPreferenceFragment())`() ` |

|                                                                                                                                                                                                                                                                                                                                                                               ### Public methods                                                                                                                                                                                                                                                                                                                                                                               ||
|---------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView) | ` `[onCreateRecyclerView](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#onCreateRecyclerView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle))`(`[LayoutInflater](https://developer.android.com/reference/android/view/LayoutInflater.html)` inflater, `[ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html)` parent, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` savedInstanceState) ` Creates the[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView)used to display the preferences. |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)From class` `[android.support.v14.preference.PreferenceFragment](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment)` ` |-------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                                       | ` `[addPreferencesFromResource](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#addPreferencesFromResource(int))`(int preferencesResId) ` Inflates the given XML resource and adds the preference hierarchy to the current preference hierarchy.                                                                                                                                                                                                                                                                                                                                                                           | | ` `[Preference](https://developer.android.com/reference/android/support/v7/preference/Preference)                             | ` `[findPreference](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#findPreference(java.lang.CharSequence))`(CharSequence key) ` Finds a[Preference](https://developer.android.com/reference/android/support/v7/preference/Preference)based on its key.                                                                                                                                                                                                                                                                                                                                                                    | | ` final `[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView)                       | ` `[getListView](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#getListView())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[PreferenceManager](https://developer.android.com/reference/android/support/v7/preference/PreferenceManager)               | ` `[getPreferenceManager](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#getPreferenceManager())`() ` Returns the[PreferenceManager](https://developer.android.com/reference/android/support/v7/preference/PreferenceManager)used by this fragment.                                                                                                                                                                                                                                                                                                                                                                       | | ` `[PreferenceScreen](https://developer.android.com/reference/android/support/v7/preference/PreferenceScreen)                 | ` `[getPreferenceScreen](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#getPreferenceScreen())`() ` Gets the root of the preference hierarchy that this fragment is showing.                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` void`                                                                                                                       | ` `[onActivityCreated](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onActivityCreated(android.os.Bundle))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` savedInstanceState) `                                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                                       | ` `[onCreate](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onCreate(android.os.Bundle))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` savedInstanceState) `                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` `[Adapter](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter)                          | ` `[onCreateAdapter](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onCreateAdapter(android.support.v7.preference.PreferenceScreen))`(`[PreferenceScreen](https://developer.android.com/reference/android/support/v7/preference/PreferenceScreen)` preferenceScreen) ` Creates the root adapter.                                                                                                                                                                                                                                                                                                                          | | ` `[RecyclerView.LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager) | ` `[onCreateLayoutManager](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onCreateLayoutManager())`() ` Called from[onCreateRecyclerView(LayoutInflater, ViewGroup, Bundle)](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onCreateRecyclerView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle))to create the[RecyclerView.LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager)for the created[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView). | | ` abstract void`                                                                                                              | ` `[onCreatePreferences](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onCreatePreferences(android.os.Bundle, java.lang.String))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` savedInstanceState, String rootKey) ` Called during[onCreate(Bundle)](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onCreate(android.os.Bundle))to supply the preferences for this fragment.                                                                                                                                                                    | | ` `[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView)                             | ` `[onCreateRecyclerView](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onCreateRecyclerView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle))`(`[LayoutInflater](https://developer.android.com/reference/android/view/LayoutInflater.html)` inflater, `[ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html)` parent, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` savedInstanceState) ` Creates the[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView)used to display the preferences.      | | ` `[View](https://developer.android.com/reference/android/view/View.html)                                                     | ` `[onCreateView](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle))`(`[LayoutInflater](https://developer.android.com/reference/android/view/LayoutInflater.html)` inflater, `[ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html)` container, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` savedInstanceState) `                                                                                                                                                             | | ` void`                                                                                                                       | ` `[onDestroyView](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onDestroyView())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                                       | ` `[onDisplayPreferenceDialog](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onDisplayPreferenceDialog(android.support.v7.preference.Preference))`(`[Preference](https://developer.android.com/reference/android/support/v7/preference/Preference)` preference) ` Called when a preference in the tree requests to display a dialog.                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                                       | ` `[onNavigateToScreen](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onNavigateToScreen(android.support.v7.preference.PreferenceScreen))`(`[PreferenceScreen](https://developer.android.com/reference/android/support/v7/preference/PreferenceScreen)` preferenceScreen) ` Called by[onClick()](https://developer.android.com/reference/android/support/v7/preference/PreferenceScreen#onClick())in order to navigate to a new screen of preferences.                                                                                                                                                                   | | ` boolean`                                                                                                                    | ` `[onPreferenceTreeClick](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onPreferenceTreeClick(android.support.v7.preference.Preference))`(`[Preference](https://developer.android.com/reference/android/support/v7/preference/Preference)` preference) ` Called when a preference in the tree rooted at this[PreferenceScreen](https://developer.android.com/reference/android/support/v7/preference/PreferenceScreen)has been clicked.                                                                                                                                                                                 | | ` void`                                                                                                                       | ` `[onSaveInstanceState](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onSaveInstanceState(android.os.Bundle))`(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` outState) `                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                                       | ` `[onStart](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onStart())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                                       | ` `[onStop](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onStop())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                                                       | ` `[onViewCreated](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#onViewCreated(android.view.View, android.os.Bundle))`(`[View](https://developer.android.com/reference/android/view/View.html)` view, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` savedInstanceState) `                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                                       | ` `[scrollToPreference](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#scrollToPreference(android.support.v7.preference.Preference))`(`[Preference](https://developer.android.com/reference/android/support/v7/preference/Preference)` preference) `                                                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                                       | ` `[scrollToPreference](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#scrollToPreference(java.lang.String))`(String key) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                                       | ` `[setDivider](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#setDivider(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` divider) ` Sets the drawable that will be drawn between each item in the list.                                                                                                                                                                                                                                                                                                                              | | ` void`                                                                                                                       | ` `[setDividerHeight](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#setDividerHeight(int))`(int height) ` Sets the height of the divider that will be drawn between each item in the list.                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                                       | ` `[setPreferenceScreen](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#setPreferenceScreen(android.support.v7.preference.PreferenceScreen))`(`[PreferenceScreen](https://developer.android.com/reference/android/support/v7/preference/PreferenceScreen)` preferenceScreen) ` Sets the root of the preference hierarchy that this fragment is showing.                                                                                                                                                                                                                                                                   | | ` void`                                                                                                                       | ` `[setPreferencesFromResource](https://developer.android.com/reference/android/support/v14/preference/PreferenceFragment#setPreferencesFromResource(int, java.lang.String))`(int preferencesResId, String key) ` Inflates the given XML resource and replaces the current preference hierarchy (if any) with the preference hierarchy rooted at`key`.                                                                                                                                                                                                                                                                                                               | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)From class` `[android.app.Fragment](https://developer.android.com/reference/android/app/Fragment.html)` ` |------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                              | ` dump(String arg0, FileDescriptor arg1, PrintWriter arg2, String[] arg3) `                                                                                                                                                                                                                                                                     | | ` final boolean`                                                                                     | ` equals(Object arg0) `                                                                                                                                                                                                                                                                                                                         | | ` final `[Activity](https://developer.android.com/reference/android/app/Activity.html)               | ` getActivity() `                                                                                                                                                                                                                                                                                                                               | | ` boolean`                                                                                           | ` getAllowEnterTransitionOverlap() `                                                                                                                                                                                                                                                                                                            | | ` boolean`                                                                                           | ` getAllowReturnTransitionOverlap() `                                                                                                                                                                                                                                                                                                           | | ` final `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)                    | ` getArguments() `                                                                                                                                                                                                                                                                                                                              | | ` final `[FragmentManager](https://developer.android.com/reference/android/app/FragmentManager.html) | ` getChildFragmentManager() `                                                                                                                                                                                                                                                                                                                   | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                   | ` getContext() `                                                                                                                                                                                                                                                                                                                                | | ` `[Transition](https://developer.android.com/reference/android/transition/Transition.html)          | ` getEnterTransition() `                                                                                                                                                                                                                                                                                                                        | | ` `[Transition](https://developer.android.com/reference/android/transition/Transition.html)          | ` getExitTransition() `                                                                                                                                                                                                                                                                                                                         | | ` final `[FragmentManager](https://developer.android.com/reference/android/app/FragmentManager.html) | ` getFragmentManager() `                                                                                                                                                                                                                                                                                                                        | | ` final Object`                                                                                      | ` getHost() `                                                                                                                                                                                                                                                                                                                                   | | ` final int`                                                                                         | ` getId() `                                                                                                                                                                                                                                                                                                                                     | | ` final `[LayoutInflater](https://developer.android.com/reference/android/view/LayoutInflater.html)  | ` getLayoutInflater() `                                                                                                                                                                                                                                                                                                                         | | ` `[LoaderManager](https://developer.android.com/reference/android/app/LoaderManager.html)           | ` getLoaderManager() `                                                                                                                                                                                                                                                                                                                          | | ` final `[Fragment](https://developer.android.com/reference/android/app/Fragment.html)               | ` getParentFragment() `                                                                                                                                                                                                                                                                                                                         | | ` `[Transition](https://developer.android.com/reference/android/transition/Transition.html)          | ` getReenterTransition() `                                                                                                                                                                                                                                                                                                                      | | ` final `[Resources](https://developer.android.com/reference/android/content/res/Resources.html)     | ` getResources() `                                                                                                                                                                                                                                                                                                                              | | ` final boolean`                                                                                     | ` getRetainInstance() `                                                                                                                                                                                                                                                                                                                         | | ` `[Transition](https://developer.android.com/reference/android/transition/Transition.html)          | ` getReturnTransition() `                                                                                                                                                                                                                                                                                                                       | | ` `[Transition](https://developer.android.com/reference/android/transition/Transition.html)          | ` getSharedElementEnterTransition() `                                                                                                                                                                                                                                                                                                           | | ` `[Transition](https://developer.android.com/reference/android/transition/Transition.html)          | ` getSharedElementReturnTransition() `                                                                                                                                                                                                                                                                                                          | | ` final String`                                                                                      | ` getString(int arg0, Object... arg1) `                                                                                                                                                                                                                                                                                                         | | ` final String`                                                                                      | ` getString(int arg0) `                                                                                                                                                                                                                                                                                                                         | | ` final String`                                                                                      | ` getTag() `                                                                                                                                                                                                                                                                                                                                    | | ` final `[Fragment](https://developer.android.com/reference/android/app/Fragment.html)               | ` getTargetFragment() `                                                                                                                                                                                                                                                                                                                         | | ` final int`                                                                                         | ` getTargetRequestCode() `                                                                                                                                                                                                                                                                                                                      | | ` final CharSequence`                                                                                | ` getText(int arg0) `                                                                                                                                                                                                                                                                                                                           | | ` boolean`                                                                                           | ` getUserVisibleHint() `                                                                                                                                                                                                                                                                                                                        | | ` `[View](https://developer.android.com/reference/android/view/View.html)                            | ` getView() `                                                                                                                                                                                                                                                                                                                                   | | ` final int`                                                                                         | ` hashCode() `                                                                                                                                                                                                                                                                                                                                  | | ` static `[Fragment](https://developer.android.com/reference/android/app/Fragment.html)              | ` instantiate(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0, String arg1) `                                                                                                                                                                                                                            | | ` static `[Fragment](https://developer.android.com/reference/android/app/Fragment.html)              | ` instantiate(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0, String arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                                                                                                           | | ` final boolean`                                                                                     | ` isAdded() `                                                                                                                                                                                                                                                                                                                                   | | ` final boolean`                                                                                     | ` isDetached() `                                                                                                                                                                                                                                                                                                                                | | ` final boolean`                                                                                     | ` isHidden() `                                                                                                                                                                                                                                                                                                                                  | | ` final boolean`                                                                                     | ` isInLayout() `                                                                                                                                                                                                                                                                                                                                | | ` final boolean`                                                                                     | ` isRemoving() `                                                                                                                                                                                                                                                                                                                                | | ` final boolean`                                                                                     | ` isResumed() `                                                                                                                                                                                                                                                                                                                                 | | ` final boolean`                                                                                     | ` isStateSaved() `                                                                                                                                                                                                                                                                                                                              | | ` final boolean`                                                                                     | ` isVisible() `                                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                              | ` onActivityCreated(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0) `                                                                                                                                                                                                                                          | | ` void`                                                                                              | ` onActivityResult(int arg0, int arg1, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg2) `                                                                                                                                                                                                                  | | ` void`                                                                                              | ` onAttach(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` arg0) `                                                                                                                                                                                                                                              | | ` void`                                                                                              | ` onAttach(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0) `                                                                                                                                                                                                                                            | | ` void`                                                                                              | ` onAttachFragment(`[Fragment](https://developer.android.com/reference/android/app/Fragment.html)` arg0) `                                                                                                                                                                                                                                      | | ` void`                                                                                              | ` onConfigurationChanged(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) `                                                                                                                                                                                                              | | ` boolean`                                                                                           | ` onContextItemSelected(`[MenuItem](https://developer.android.com/reference/android/view/MenuItem.html)` arg0) `                                                                                                                                                                                                                                | | ` void`                                                                                              | ` onCreate(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0) `                                                                                                                                                                                                                                                   | | ` `[Animator](https://developer.android.com/reference/android/animation/Animator.html)               | ` onCreateAnimator(int arg0, boolean arg1, int arg2) `                                                                                                                                                                                                                                                                                          | | ` void`                                                                                              | ` onCreateContextMenu(`[ContextMenu](https://developer.android.com/reference/android/view/ContextMenu.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1, `[ContextMenu.ContextMenuInfo](https://developer.android.com/reference/android/view/ContextMenu.ContextMenuInfo.html)` arg2) `                | | ` void`                                                                                              | ` onCreateOptionsMenu(`[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg0, `[MenuInflater](https://developer.android.com/reference/android/view/MenuInflater.html)` arg1) `                                                                                                                                           | | ` `[View](https://developer.android.com/reference/android/view/View.html)                            | ` onCreateView(`[LayoutInflater](https://developer.android.com/reference/android/view/LayoutInflater.html)` arg0, `[ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html)` arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                   | | ` void`                                                                                              | ` onDestroy() `                                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                              | ` onDestroyOptionsMenu() `                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                              | ` onDestroyView() `                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                              | ` onDetach() `                                                                                                                                                                                                                                                                                                                                  | | ` `[LayoutInflater](https://developer.android.com/reference/android/view/LayoutInflater.html)        | ` onGetLayoutInflater(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0) `                                                                                                                                                                                                                                        | | ` void`                                                                                              | ` onHiddenChanged(boolean arg0) `                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                              | ` onInflate(`[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                   | | ` void`                                                                                              | ` onInflate(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` arg0, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                             | | ` void`                                                                                              | ` onInflate(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                           | | ` void`                                                                                              | ` onLowMemory() `                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                              | ` onMultiWindowModeChanged(boolean arg0) `                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                              | ` onMultiWindowModeChanged(boolean arg0, `[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg1) `                                                                                                                                                                                              | | ` boolean`                                                                                           | ` onOptionsItemSelected(`[MenuItem](https://developer.android.com/reference/android/view/MenuItem.html)` arg0) `                                                                                                                                                                                                                                | | ` void`                                                                                              | ` onOptionsMenuClosed(`[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg0) `                                                                                                                                                                                                                                          | | ` void`                                                                                              | ` onPause() `                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                              | ` onPictureInPictureModeChanged(boolean arg0, `[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg1) `                                                                                                                                                                                         | | ` void`                                                                                              | ` onPictureInPictureModeChanged(boolean arg0) `                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                              | ` onPrepareOptionsMenu(`[Menu](https://developer.android.com/reference/android/view/Menu.html)` arg0) `                                                                                                                                                                                                                                         | | ` void`                                                                                              | ` onRequestPermissionsResult(int arg0, String[] arg1, int[] arg2) `                                                                                                                                                                                                                                                                             | | ` void`                                                                                              | ` onResume() `                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                              | ` onSaveInstanceState(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0) `                                                                                                                                                                                                                                        | | ` void`                                                                                              | ` onStart() `                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                              | ` onStop() `                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                              | ` onTrimMemory(int arg0) `                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                              | ` onViewCreated(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                               | | ` void`                                                                                              | ` onViewStateRestored(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0) `                                                                                                                                                                                                                                        | | ` void`                                                                                              | ` postponeEnterTransition() `                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                              | ` registerForContextMenu(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                                                                                       | | ` final void`                                                                                        | ` requestPermissions(String[] arg0, int arg1) `                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                              | ` setAllowEnterTransitionOverlap(boolean arg0) `                                                                                                                                                                                                                                                                                                | | ` void`                                                                                              | ` setAllowReturnTransitionOverlap(boolean arg0) `                                                                                                                                                                                                                                                                                               | | ` void`                                                                                              | ` setArguments(`[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg0) `                                                                                                                                                                                                                                               | | ` void`                                                                                              | ` setEnterSharedElementCallback(`[SharedElementCallback](https://developer.android.com/reference/android/app/SharedElementCallback.html)` arg0) `                                                                                                                                                                                               | | ` void`                                                                                              | ` setEnterTransition(`[Transition](https://developer.android.com/reference/android/transition/Transition.html)` arg0) `                                                                                                                                                                                                                         | | ` void`                                                                                              | ` setExitSharedElementCallback(`[SharedElementCallback](https://developer.android.com/reference/android/app/SharedElementCallback.html)` arg0) `                                                                                                                                                                                                | | ` void`                                                                                              | ` setExitTransition(`[Transition](https://developer.android.com/reference/android/transition/Transition.html)` arg0) `                                                                                                                                                                                                                          | | ` void`                                                                                              | ` setHasOptionsMenu(boolean arg0) `                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                              | ` setInitialSavedState(`[Fragment.SavedState](https://developer.android.com/reference/android/app/Fragment.SavedState.html)` arg0) `                                                                                                                                                                                                            | | ` void`                                                                                              | ` setMenuVisibility(boolean arg0) `                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                              | ` setReenterTransition(`[Transition](https://developer.android.com/reference/android/transition/Transition.html)` arg0) `                                                                                                                                                                                                                       | | ` void`                                                                                              | ` setRetainInstance(boolean arg0) `                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                              | ` setReturnTransition(`[Transition](https://developer.android.com/reference/android/transition/Transition.html)` arg0) `                                                                                                                                                                                                                        | | ` void`                                                                                              | ` setSharedElementEnterTransition(`[Transition](https://developer.android.com/reference/android/transition/Transition.html)` arg0) `                                                                                                                                                                                                            | | ` void`                                                                                              | ` setSharedElementReturnTransition(`[Transition](https://developer.android.com/reference/android/transition/Transition.html)` arg0) `                                                                                                                                                                                                           | | ` void`                                                                                              | ` setTargetFragment(`[Fragment](https://developer.android.com/reference/android/app/Fragment.html)` arg0, int arg1) `                                                                                                                                                                                                                           | | ` void`                                                                                              | ` setUserVisibleHint(boolean arg0) `                                                                                                                                                                                                                                                                                                            | | ` boolean`                                                                                           | ` shouldShowRequestPermissionRationale(String arg0) `                                                                                                                                                                                                                                                                                           | | ` void`                                                                                              | ` startActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                         | | ` void`                                                                                              | ` startActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                        | | ` void`                                                                                              | ` startActivityForResult(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, int arg1) `                                                                                                                                                                                                                      | | ` void`                                                                                              | ` startActivityForResult(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, int arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                                                                                                     | | ` void`                                                                                              | ` startIntentSenderForResult(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg0, int arg1, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg2, int arg3, int arg4, int arg5, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg6) ` | | ` void`                                                                                              | ` startPostponedEnterTransition() `                                                                                                                                                                                                                                                                                                             | | ` String`                                                                                            | ` toString() `                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                              | ` unregisterForContextMenu(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                                                                                     | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)From interface` `[android.support.v7.preference.PreferenceManager.OnPreferenceTreeClickListener](https://developer.android.com/reference/android/support/v7/preference/PreferenceManager.OnPreferenceTreeClickListener)` ` |---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract boolean` | ` `[onPreferenceTreeClick](https://developer.android.com/reference/android/support/v7/preference/PreferenceManager.OnPreferenceTreeClickListener#onPreferenceTreeClick(android.support.v7.preference.Preference))`(`[Preference](https://developer.android.com/reference/android/support/v7/preference/Preference)` preference) ` Called when a preference in the tree rooted at this[PreferenceScreen](https://developer.android.com/reference/android/support/v7/preference/PreferenceScreen)has been clicked. | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)From interface` `[android.support.v7.preference.PreferenceManager.OnDisplayPreferenceDialogListener](https://developer.android.com/reference/android/support/v7/preference/PreferenceManager.OnDisplayPreferenceDialogListener)` ` |------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` `[onDisplayPreferenceDialog](https://developer.android.com/reference/android/support/v7/preference/PreferenceManager.OnDisplayPreferenceDialogListener#onDisplayPreferenceDialog(android.support.v7.preference.Preference))`(`[Preference](https://developer.android.com/reference/android/support/v7/preference/Preference)` preference) ` Called when a preference in the tree requests to display a dialog. | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)From interface` `[android.support.v7.preference.PreferenceManager.OnNavigateToScreenListener](https://developer.android.com/reference/android/support/v7/preference/PreferenceManager.OnNavigateToScreenListener)` ` |------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` `[onNavigateToScreen](https://developer.android.com/reference/android/support/v7/preference/PreferenceManager.OnNavigateToScreenListener#onNavigateToScreen(android.support.v7.preference.PreferenceScreen))`(`[PreferenceScreen](https://developer.android.com/reference/android/support/v7/preference/PreferenceScreen)` preferenceScreen) ` Called when a PreferenceScreen in the tree requests to navigate to its contents. | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)From interface` `[android.support.v7.preference.DialogPreference.TargetFragment](https://developer.android.com/reference/android/support/v7/preference/DialogPreference.TargetFragment)` ` |------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[Preference](https://developer.android.com/reference/android/support/v7/preference/Preference) | ` `[findPreference](https://developer.android.com/reference/android/support/v7/preference/DialogPreference.TargetFragment#findPreference(java.lang.CharSequence))`(CharSequence key) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)From interface` `[android.content.ComponentCallbacks2](https://developer.android.com/reference/android/content/ComponentCallbacks2.html)` ` |------------------|----------------------------| | ` abstract void` | ` onTrimMemory(int arg0) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)From interface` `[android.view.View.OnCreateContextMenuListener](https://developer.android.com/reference/android/view/View.OnCreateContextMenuListener.html)` ` |------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` onCreateContextMenu(`[ContextMenu](https://developer.android.com/reference/android/view/ContextMenu.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1, `[ContextMenu.ContextMenuInfo](https://developer.android.com/reference/android/view/ContextMenu.ContextMenuInfo.html)` arg2) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment#)From interface` `[android.content.ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks.html)` ` |------------------|------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` onConfigurationChanged(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) ` | | ` abstract void` | ` onLowMemory() `                                                                                                                  | ||

## Public constructors

### BaseLeanbackPreferenceFragment

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
BaseLeanbackPreferenceFragment ()
```

<br />

<br />

## Public methods

### onCreateRecyclerView

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

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

Creates the[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView)used to display the preferences. Subclasses may override this to return a customized[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView).

<br />

|                                                                                                                                   Parameters                                                                                                                                    ||
|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `inflater`           | `LayoutInflater`: The LayoutInflater object that can be used to inflate the[RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView). <br />                                                                         |
| `parent`             | `ViewGroup`: The parent[View](https://developer.android.com/reference/android/view/View.html)that the RecyclerView will be attached to. This method should not add the view itself, but this can be used to generate the LayoutParams of the view. <br /> |
| `savedInstanceState` | `Bundle`: If non-null, this view is being re-constructed from a previous saved state as given here <br />                                                                                                                                                 |

|                                                                                Returns                                                                                ||
|------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|
| [RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView) | A new RecyclerView object to be placed into the view hierarchy <br /> |

-

  ## Interfaces

  - [LeanbackListPreferenceDialogFragment.ViewHolder.OnItemClickListener](https://developer.android.com/reference/android/support/v17/preference/LeanbackListPreferenceDialogFragment.ViewHolder.OnItemClickListener)
-

  ## Classes

  - [BaseLeanbackPreferenceFragment](https://developer.android.com/reference/android/support/v17/preference/BaseLeanbackPreferenceFragment)
  - [LeanbackListPreferenceDialogFragment](https://developer.android.com/reference/android/support/v17/preference/LeanbackListPreferenceDialogFragment)
  - [LeanbackListPreferenceDialogFragment.AdapterMulti](https://developer.android.com/reference/android/support/v17/preference/LeanbackListPreferenceDialogFragment.AdapterMulti)
  - [LeanbackListPreferenceDialogFragment.AdapterSingle](https://developer.android.com/reference/android/support/v17/preference/LeanbackListPreferenceDialogFragment.AdapterSingle)
  - [LeanbackListPreferenceDialogFragment.ViewHolder](https://developer.android.com/reference/android/support/v17/preference/LeanbackListPreferenceDialogFragment.ViewHolder)
  - [LeanbackPreferenceDialogFragment](https://developer.android.com/reference/android/support/v17/preference/LeanbackPreferenceDialogFragment)
  - [LeanbackPreferenceFragment](https://developer.android.com/reference/android/support/v17/preference/LeanbackPreferenceFragment)
  - [LeanbackSettingsFragment](https://developer.android.com/reference/android/support/v17/preference/LeanbackSettingsFragment)
  - [R](https://developer.android.com/reference/android/support/v17/preference/R)
  - [R.anim](https://developer.android.com/reference/android/support/v17/preference/R.anim)
  - [R.animator](https://developer.android.com/reference/android/support/v17/preference/R.animator)
  - [R.attr](https://developer.android.com/reference/android/support/v17/preference/R.attr)
  - [R.bool](https://developer.android.com/reference/android/support/v17/preference/R.bool)
  - [R.color](https://developer.android.com/reference/android/support/v17/preference/R.color)
  - [R.dimen](https://developer.android.com/reference/android/support/v17/preference/R.dimen)
  - [R.drawable](https://developer.android.com/reference/android/support/v17/preference/R.drawable)
  - [R.fraction](https://developer.android.com/reference/android/support/v17/preference/R.fraction)
  - [R.id](https://developer.android.com/reference/android/support/v17/preference/R.id)
  - [R.integer](https://developer.android.com/reference/android/support/v17/preference/R.integer)
  - [R.layout](https://developer.android.com/reference/android/support/v17/preference/R.layout)
  - [R.raw](https://developer.android.com/reference/android/support/v17/preference/R.raw)
  - [R.string](https://developer.android.com/reference/android/support/v17/preference/R.string)
  - [R.style](https://developer.android.com/reference/android/support/v17/preference/R.style)
  - [R.styleable](https://developer.android.com/reference/android/support/v17/preference/R.styleable)
  - [R.transition](https://developer.android.com/reference/android/support/v17/preference/R.transition)