DetailsOverviewLogoPresenter.ViewHolder


class DetailsOverviewLogoPresenter.ViewHolder : Presenter.ViewHolder


ViewHolder for Logo view of DetailsOverviewRow.

Summary

Public constructors

Public functions

FullWidthDetailsOverviewRowPresenter?
FullWidthDetailsOverviewRowPresenter.ViewHolder?
Boolean
Unit
setSizeFromDrawableIntrinsic(sizeFromDrawableIntrinsic: Boolean)

Change if the ImageView layout size should be synchronized to Drawable intrinsic size.

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.

Public constructors

ViewHolder

Added in 1.2.0-alpha04
ViewHolder(view: View)

Public functions

getParentPresenter

Added in 1.1.0
fun getParentPresenter(): FullWidthDetailsOverviewRowPresenter?

isSizeFromDrawableIntrinsic

Added in 1.1.0
fun isSizeFromDrawableIntrinsic(): Boolean
Returns
Boolean

True if layout size of ImageView should be changed to intrinsic size of Drawable, false otherwise. Used by onBindViewHolder .

setSizeFromDrawableIntrinsic

Added in 1.1.0
fun setSizeFromDrawableIntrinsic(sizeFromDrawableIntrinsic: Boolean): Unit

Change if the ImageView layout size should be synchronized to Drawable intrinsic size. Used by onBindViewHolder.

Parameters
sizeFromDrawableIntrinsic: Boolean

True if layout size of ImageView should be changed to intrinsic size of Drawable, false otherwise.

Protected properties

mParentPresenter

Added in 1.1.0
protected val mParentPresenterFullWidthDetailsOverviewRowPresenter?

mParentViewHolder

Added in 1.1.0
protected val mParentViewHolderFullWidthDetailsOverviewRowPresenter.ViewHolder?