Android APIs
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  
[Expand]
Inherited XML Attributes
From class android.app.Fragment
[Expand]
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.
[Expand]
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

public LeanbackListPreferenceDialogFragment ()

Public Methods

public static LeanbackListPreferenceDialogFragment newInstanceMulti (String key)

public static LeanbackListPreferenceDialogFragment newInstanceSingle (String key)

public void onCreate (Bundle savedInstanceState)

Called to do initial creation of a fragment. This is called after onAttach(Activity) and before onCreateView(LayoutInflater, ViewGroup, Bundle).

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

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

public Adapter onCreateAdapter ()

public 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 The LayoutInflater object that can be used to inflate any views in the fragment,
container 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 If non-null, this fragment is being re-constructed from a previous saved state as given here.
Returns
  • Return the View for the fragment's UI, or null.