java.lang.Object | ||
↳ | android.support.v17.leanback.widget.Presenter | |
↳ | android.support.v17.leanback.widget.VerticalGridPresenter |
A presenter that renders objects in a vertical grid.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
VerticalGridPresenter.ViewHolder |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the number of columns in the vertical grid.
| |||||||||||
Returns the item clicked listener.
| |||||||||||
Returns the item selected listener.
| |||||||||||
Returns true if child shadow is enabled.
| |||||||||||
Returns true if opticalBounds is supported (SDK >= 18) so that default shadow
is applied to each individual child of
VerticalGridView . | |||||||||||
Binds a
View to an item. | |||||||||||
Creates a new
View . | |||||||||||
Unbinds a
View from an item. | |||||||||||
Sets the number of columns in the vertical grid.
| |||||||||||
Sets the item clicked listener.
| |||||||||||
Sets the item selected listener.
| |||||||||||
Enable or disable child shadow.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Subclass may override this to inflate a different layout.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.Presenter
| |||||||||||
From class
java.lang.Object
|
Returns the number of columns in the vertical grid.
Returns the item selected listener.
Returns true if child shadow is enabled. This is not only for enable/disable default shadow implementation but also subclass must respect this flag.
Returns true if opticalBounds is supported (SDK >= 18) so that default shadow
is applied to each individual child of VerticalGridView
.
Subclass may return false to disable.
Binds a View
to an item.
Creates a new View
.
Unbinds a View
from an item. Any expensive references may be
released here, and any fields that are not bound for every item should be
cleared here.
Sets the number of columns in the vertical grid.
Sets the item clicked listener.
OnItemClickedListener will override View.OnClickListener
that
item presenter sets during onCreateViewHolder(ViewGroup)
.
So in general, developer should choose one of the listeners but not both.
Sets the item selected listener. Since this is a grid the row parameter is always null.
Enable or disable child shadow. This is not only for enable/disable default shadow implementation but also subclass must respect this flag.
Subclass may override this to inflate a different layout.