Most visited

Recently visited

LeanbackListPreferenceDialogFragment

public class LeanbackListPreferenceDialogFragment
extends LeanbackPreferenceDialogFragment

java.lang.Object
   ↳ android.app.Fragment
     ↳ android.support.v17.preference.LeanbackPreferenceDialogFragment
       ↳ android.support.v17.preference.LeanbackListPreferenceDialogFragment


Summary

Nested classes

class LeanbackListPreferenceDialogFragment.AdapterMulti

 

class LeanbackListPreferenceDialogFragment.AdapterSingle

 

class LeanbackListPreferenceDialogFragment.ViewHolder

 

Inherited XML attributes

From class android.app.Fragment

Inherited constants

From class android.support.v17.preference.LeanbackPreferenceDialogFragment
From interface android.content.ComponentCallbacks2

Public constructors

LeanbackListPreferenceDialogFragment()

Public methods

static LeanbackListPreferenceDialogFragment newInstanceMulti(String key)
static LeanbackListPreferenceDialogFragment newInstanceSingle(String key)
void onCreate(Bundle savedInstanceState)

Called to do initial creation of a fragment.

Adapter onCreateAdapter()
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

Called to have the fragment instantiate its user interface view.

Inherited methods

From class android.support.v17.preference.LeanbackPreferenceDialogFragment
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

Public constructors

LeanbackListPreferenceDialogFragment

LeanbackListPreferenceDialogFragment ()

Public methods

newInstanceMulti

LeanbackListPreferenceDialogFragment newInstanceMulti (String key)

Parameters
key String
Returns
LeanbackListPreferenceDialogFragment

newInstanceSingle

LeanbackListPreferenceDialogFragment newInstanceSingle (String key)

Parameters
key String
Returns
LeanbackListPreferenceDialogFragment

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 23 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.

onCreateAdapter

Adapter onCreateAdapter ()

Returns
Adapter

onCreateView

View onCreateView (LayoutInflater inflater, 
                ViewGroup container, 
                Bundle savedInstanceState)

Called to have the fragment instantiate its user interface view. This is optional, and non-graphical fragments can return null (which is the default implementation). This will be called between onCreate(Bundle) and onActivityCreated(Bundle).

If you return a View from here, you will later be called in onDestroyView() when the view is being released.

Parameters
inflater LayoutInflater: The LayoutInflater object that can be used to inflate any views in the fragment,
container ViewGroup: If non-null, this is the parent view that the fragment's UI should be attached to. The fragment should not add the view itself, but this can be used to generate the LayoutParams of the view.
savedInstanceState Bundle: If non-null, this fragment is being re-constructed from a previous saved state as given here.
Returns
View Return the View for the fragment's UI, or null.

Hooray!