O Google tem o compromisso de promover a igualdade racial para as comunidades negras. Saiba como.

VerticalGridPresenter

open class VerticalGridPresenter : Presenter
kotlin.Any
   ↳ androidx.leanback.widget.Presenter
   ↳ androidx.leanback.widget.VerticalGridPresenter

A presenter that renders objects in a VerticalGridView.

Summary

Nested classes
open

ViewHolder for the VerticalGridPresenter.

Public constructors

Constructs a VerticalGridPresenter with defaults.

<init>(focusZoomFactor: Int)

Constructs a VerticalGridPresenter with the given parameters.

<init>(focusZoomFactor: Int, useFocusDimmer: Boolean)

Constructs a VerticalGridPresenter with the given parameters.

Public methods
Boolean

Returns true if rounded corners are enabled for children of this row.

Unit

Enables or disabled rounded corners on children of this row.

Int

Returns the zoom factor used for focus highlighting.

Boolean

Returns true if keeps foreground of child of this grid, the foreground will not be used for overlay color.

open Int

Returns the number of columns in the vertical grid.

OnItemViewClickedListener!

Returns the item clicked listener.

OnItemViewSelectedListener!

Returns the item selected listener.

Boolean

Returns true if child shadow is enabled.

Boolean

Returns true if the focus dimmer is used for focus highlighting; false otherwise.

open Boolean

Default implementation returns true if SDK version >= 21, shadow (either static or z-order based) will be applied to each individual child of VerticalGridView.

open Boolean

Returns true if SDK >= L, where Z shadow is enabled so that Z order is enabled on each child of vertical grid.

open Unit
onBindViewHolder(viewHolder: Presenter.ViewHolder!, item: Any!)

VerticalGridPresenter.ViewHolder!

open Unit

open Unit

Changes the visibility of views.

Unit

Set if keeps foreground of child of this grid, the foreground will not be used for overlay color.

open Unit
setNumberOfColumns(numColumns: Int)

Sets the number of columns in the vertical grid.

Unit

Sets the item clicked listener.

Unit

Sets the item selected listener.

Unit

Enable or disable child shadow.

Protected methods
open VerticalGridPresenter.ViewHolder!

Subclass may override this to inflate a different layout.

open ShadowOverlayHelper.Options!

Create ShadowOverlayHelper Options.

open Unit

Called after a VerticalGridPresenter.ViewHolder is created.

Inherited functions