FullWidthDetailsOverviewRowPresenter.ViewHolder

class FullWidthDetailsOverviewRowPresenter.ViewHolder : RowPresenter.ViewHolder


A ViewHolder for the DetailsOverviewRow.

Summary

Public constructors

ViewHolder(
    rootView: View!,
    detailsPresenter: Presenter!,
    logoPresenter: DetailsOverviewLogoPresenter!
)

Constructor for the ViewHolder.

Public functions

ViewGroup!

Returns the view of actions row.

ViewGroup!

Returns the root view for inserting details description.

Presenter.ViewHolder!

Returns the ViewHolder for DetailsDescription.

DetailsOverviewLogoPresenter.ViewHolder!

Returns the ViewHolder for logo.

ViewGroup!

Returns the rectangle area with a color background.

Int

Returns current state of the ViewHolder set by setState.

Inherited functions

From androidx.leanback.widget.FacetProvider
abstract Any?
getFacet(facetClass: Class<Any!>)

Queries optional implemented facet.

From androidx.leanback.widget.Presenter.ViewHolder
Any!
getFacet(facetClass: Class<Any!>!)

Queries optional implemented facet.

Unit
setFacet(facetClass: Class<Any!>!, facetImpl: Any!)

Sets dynamic implemented facet in addition to basic ViewHolder functions.

From androidx.leanback.widget.RowPresenter.ViewHolder
RowHeaderPresenter.ViewHolder!

Returns the view holder for the Row header for this Row.

BaseOnItemViewClickedListener!

Returns the listener for item click event.

BaseOnItemViewSelectedListener!

Returns the listener for item or row selection.

View.OnKeyListener!

Returns the key listener.

Row!

Returns the row bound to this ViewHolder.

Any!

Returns the Row object bound to this ViewHolder.

Float

Returns the current selection level of the Row.

Any?

Return currently selected item inside a row ViewHolder.

Presenter.ViewHolder?

Return ViewHolder of currently selected item inside a row ViewHolder.

Boolean

Returns whether the Row is in its expanded state.

Boolean

Returns whether the Row is selected.

Unit
setActivated(activated: Boolean)

Sets the row view's activated status.

Unit

Sets the listener for item click event.

Unit

Sets the listener for item or row selection.

Unit

Sets a key listener.

Unit

Synchronizes the activated status of view to the last value passed through setActivated.

Public constructors

ViewHolder

Added in 1.1.0
ViewHolder(
    rootView: View!,
    detailsPresenter: Presenter!,
    logoPresenter: DetailsOverviewLogoPresenter!
)

Constructor for the ViewHolder.

Parameters
rootView: View!

The root View that this view holder will be attached to.

Public functions

getActionsRow

Added in 1.1.0
fun getActionsRow(): ViewGroup!

Returns the view of actions row.

getDetailsDescriptionFrame

Added in 1.1.0
fun getDetailsDescriptionFrame(): ViewGroup!

Returns the root view for inserting details description.

getDetailsDescriptionViewHolder

Added in 1.1.0
fun getDetailsDescriptionViewHolder(): Presenter.ViewHolder!

Returns the ViewHolder for DetailsDescription.

getLogoViewHolder

Added in 1.1.0
fun getLogoViewHolder(): DetailsOverviewLogoPresenter.ViewHolder!

Returns the ViewHolder for logo.

getOverviewView

Added in 1.1.0
fun getOverviewView(): ViewGroup!

Returns the rectangle area with a color background.

getState

Added in 1.1.0
fun getState(): Int

Returns current state of the ViewHolder set by setState.

Protected functions

createRowListener

Added in 1.1.0
protected fun createRowListener(): DetailsOverviewRow.Listener!

Protected properties

mRowListener

Added in 1.1.0
protected val mRowListenerDetailsOverviewRow.Listener!