java.lang.Object | ||
↳ | android.support.v4.app.Fragment | |
↳ | android.support.v17.leanback.app.VerticalGridSupportFragment |
A fragment for creating leanback vertical grids.
Renders a vertical grid of objects given a VerticalGridPresenter
and
an ObjectAdapter
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the object adapter.
| |||||||||||
Returns the badge drawable used in the fragment title.
| |||||||||||
Returns the grid presenter.
| |||||||||||
Returns the item clicked listener.
| |||||||||||
Returns the color used to draw the search affordance.
| |||||||||||
Returns the
SearchOrbView.Colors
used to draw the search affordance.
| |||||||||||
Returns the title for the browse 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 no longer resumed.
| |||||||||||
Called when the fragment is visible to the user and actively running.
| |||||||||||
Called to ask the fragment to save its current dynamic state, so it
can later be reconstructed in a new instance of its process is
restarted.
| |||||||||||
Called when the Fragment is visible to the user.
| |||||||||||
Called immediately after
onCreateView(LayoutInflater, ViewGroup, Bundle)
has returned, but before any saved state has been restored in to the view.
| |||||||||||
Sets the object adapter for the fragment.
| |||||||||||
Sets the drawable displayed in the browse fragment title.
| |||||||||||
Sets the grid presenter.
| |||||||||||
Sets an item clicked listener.
| |||||||||||
Sets an item selection listener.
| |||||||||||
Sets a click listener for the search affordance.
| |||||||||||
Sets the color used to draw the search affordance.
| |||||||||||
Sets the
SearchOrbView.Colors used to draw the search affordance.
| |||||||||||
Sets the selected item position.
| |||||||||||
Sets a title for the browse fragment.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v4.app.Fragment
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.content.ComponentCallbacks
| |||||||||||
From interface
android.view.View.OnCreateContextMenuListener
|
Returns the color used to draw the search affordance.
Returns the SearchOrbView.Colors
used to draw the search affordance.
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 no longer resumed. This is generally
tied to Activity.onPause
of the containing
Activity's lifecycle.
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.
Called to ask the fragment to save its current dynamic state, so it
can later be reconstructed in a new instance of its process is
restarted. If a new instance of the fragment later needs to be
created, the data you place in the Bundle here will be available
in the Bundle given to onCreate(Bundle)
,
onCreateView(LayoutInflater, ViewGroup, Bundle)
, and
onActivityCreated(Bundle)
.
This corresponds to Activity.onSaveInstanceState(Bundle)
and most of the discussion there
applies here as well. Note however: this method may be called
at any time before onDestroy()
. There are many situations
where a fragment may be mostly torn down (such as when placed on the
back stack with no UI showing), but its state will not be saved until
its owning activity actually needs to save its state.
outState | Bundle in which to place your saved state. |
---|
Called when the Fragment is visible to the user. This is generally
tied to Activity.onStart
of the containing
Activity's lifecycle.
Called immediately after onCreateView(LayoutInflater, ViewGroup, Bundle)
has returned, but before any saved state has been restored in to the view.
This gives subclasses a chance to initialize themselves once
they know their view hierarchy has been completely created. The fragment's
view hierarchy is not however attached to its parent at this point.
view | The View returned by onCreateView(LayoutInflater, ViewGroup, Bundle) . |
---|---|
savedInstanceState | If non-null, this fragment is being re-constructed from a previous saved state as given here. |
Sets the drawable displayed in the browse fragment title.
drawable | The Drawable to display in the browse fragment title. |
---|
Sets an item clicked listener.
Sets an item selection listener.
Sets a click listener for the search affordance.
The presence of a listener will change the visibility of the search affordance in the fragment title. When set to non-null, the title will contain an element that a user may click to begin a search.
The listener's onClick
method
will be invoked when the user clicks on the search element.
listener | The listener to call when the search element is clicked. |
---|
Sets the color used to draw the search affordance. A default brighter color will be set by the framework.
color | The color to use for the search affordance. |
---|
Sets the SearchOrbView.Colors
used to draw the search affordance.
Sets the selected item position.
Sets a title for the browse fragment.
title | The title of the browse fragment. |
---|