Skip to content

Most visited

Recently visited

navigation

LeanbackPreferenceDialogFragment

public class LeanbackPreferenceDialogFragment
extends Fragment

java.lang.Object
   ↳ android.app.Fragment
     ↳ android.support.v17.preference.LeanbackPreferenceDialogFragment
Known Direct Subclasses


Summary

Inherited XML attributes

From class android.app.Fragment

Constants

String ARG_KEY

Inherited constants

From interface android.content.ComponentCallbacks2

Public constructors

LeanbackPreferenceDialogFragment()

Public methods

DialogPreference getPreference()
void onCreate(Bundle savedInstanceState)

Called to do initial creation of a fragment.

Inherited methods

From class android.app.Fragment
From class java.lang.Object
From interface android.content.ComponentCallbacks2
From interface android.view.View.OnCreateContextMenuListener
From interface android.content.ComponentCallbacks

Constants

ARG_KEY

added in version 23.0.0
String ARG_KEY

Constant Value: "key"

Public constructors

LeanbackPreferenceDialogFragment

added in version 23.0.0
LeanbackPreferenceDialogFragment ()

Public methods

getPreference

added in version 23.0.0
DialogPreference getPreference ()

Returns
DialogPreference

onCreate

void onCreate (Bundle savedInstanceState)

Called to do initial creation of a fragment. This is called after onAttach(Activity) and before onCreateView(LayoutInflater, ViewGroup, Bundle), but is not called if the fragment instance is retained across Activity re-creation (see setRetainInstance(boolean)).

Note that this can be called while the fragment's activity is still in the process of being created. As such, you can not rely on things like the activity's content view hierarchy being initialized at this point. If you want to do work once the activity itself is created, see onActivityCreated(Bundle).

If your app's targetSdkVersion is M or lower, child fragments being restored from the savedInstanceState are restored after onCreate returns. When targeting N or above and running on an N or newer platform version they are restored by Fragment.onCreate.

Parameters
savedInstanceState Bundle: If the fragment is being re-created from a previous saved state, this is the state.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.