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 true if rounded corners are enabled for children of this row.
| |||||||||||
Enables or disabled rounded corners on children of this row.
| |||||||||||
Returns the number of columns in the vertical grid.
| |||||||||||
This method is deprecated.
Use
getOnItemViewClickedListener()
| |||||||||||
This method is deprecated.
Use
getOnItemViewSelectedListener()
| |||||||||||
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 .
| |||||||||||
Returns true if SDK >= L, where Z shadow is enabled so that Z order is enabled
on each child of vertical grid.
| |||||||||||
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.
| |||||||||||
This method is deprecated.
Use
setOnItemViewClickedListener(OnItemViewClickedListener)
| |||||||||||
This method is deprecated.
Use
setOnItemViewSelectedListener(OnItemViewSelectedListener)
| |||||||||||
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.
| |||||||||||
Called after a
VerticalGridPresenter.ViewHolder is created.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v17.leanback.widget.Presenter
| |||||||||||
From class
java.lang.Object
|
Returns true if rounded corners are enabled for children of this row.
Enables or disabled rounded corners on children of this row. Supported on Android SDK >= L.
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. 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.
Returns true if SDK >= L, where Z shadow is enabled so that Z order is enabled on each child of vertical grid. If subclass returns false in isUsingDefaultShadow() and does not use Z-shadow on SDK >= L, it should override isUsingZOrder() return false.
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.
This method is deprecated.
Use setOnItemViewClickedListener(OnItemViewClickedListener)
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.
This method is deprecated.
Use setOnItemViewSelectedListener(OnItemViewSelectedListener)
Sets the item selected listener. Since this is a grid the row parameter is always null.
Sets the item clicked listener.
OnItemViewClickedListener 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.
Called after a VerticalGridPresenter.ViewHolder
is created.
Subclasses may override this method and start by calling
super.initializeGridViewHolder(ViewHolder).
vh | The ViewHolder to initialize for the vertical grid. |
---|