java.lang.Object | |||
↳ | android.support.v4.app.Fragment | ||
↳ | android.support.v17.leanback.app.DetailsSupportFragment | ||
↳ | android.support.v17.leanback.app.PlaybackOverlaySupportFragment |
A fragment for displaying playback controls and related content.
The PlaybackControlsRow
is expected to be
at position 0 in the adapter.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PlaybackOverlaySupportFragment.InputEventHandler | |||||||||||
PlaybackOverlaySupportFragment.OnFadeCompleteListener |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | BG_DARK | A dark translucent background. | |||||||||
int | BG_LIGHT | A light translucent background. | |||||||||
int | BG_NONE | No background. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the background type.
| |||||||||||
Returns the listener to be called when fade in or out has completed.
| |||||||||||
Returns the input event handler.
| |||||||||||
Returns true if view fading is enabled.
| |||||||||||
Called to do initial creation of a fragment.
| |||||||||||
Called to have the fragment instantiate its user interface view.
| |||||||||||
Called when the view previously created by
onCreateView(LayoutInflater, ViewGroup, Bundle) has
been detached from the fragment.
| |||||||||||
Called when the fragment is visible to the user and actively running.
| |||||||||||
Sets the list of rows for the fragment.
| |||||||||||
Sets the background type.
| |||||||||||
Sets the listener to be called when fade in or out has completed.
| |||||||||||
Enables or disables view fading.
| |||||||||||
Sets the input event handler.
| |||||||||||
Tickles the playback controls.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.app.DetailsSupportFragment
| |||||||||||
From class
android.support.v4.app.Fragment
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.content.ComponentCallbacks
| |||||||||||
From interface
android.view.View.OnCreateContextMenuListener
|
A dark translucent background.
A light translucent background.
No background.
Returns the background type.
Returns the listener to be called when fade in or out has completed.
Returns the input event handler.
Returns true if view fading is enabled.
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)
.
savedInstanceState | If the fragment is being re-created from a previous saved state, this is the state. |
---|
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.
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. |
Called when the view previously created by onCreateView(LayoutInflater, ViewGroup, Bundle)
has
been detached from the fragment. The next time the fragment needs
to be displayed, a new view will be created. This is called
after onStop()
and before onDestroy()
. It is called
regardless of whether onCreateView(LayoutInflater, ViewGroup, Bundle)
returned a
non-null view. Internally it is called after the view's state has
been saved but before it has been removed from its parent.
Called when the fragment is visible to the user and actively running.
This is generally
tied to Activity.onResume
of the containing
Activity's lifecycle.
Sets the background type.
type | One of BG_LIGHT, BG_DARK, or BG_NONE. |
---|
Sets the listener to be called when fade in or out has completed.
Enables or disables view fading. If enabled,
the view will be faded in when the fragment starts,
and will fade out after a time period. The timeout
period is reset each time tickle()
is called.
Sets the input event handler.
Tickles the playback controls. Fades in the view if it was faded out, otherwise resets the fade out timer. Tickling on input events is handled by the fragment.