Register now for Android Dev Summit 2019!

ViewHolder

open class ViewHolder : Presenter.ViewHolder
kotlin.Any
   ↳ androidx.leanback.widget.Presenter.ViewHolder
   ↳ androidx.leanback.widget.DetailsOverviewLogoPresenter.ViewHolder

ViewHolder for Logo view of DetailsOverviewRow.

Summary

Public constructors

<init>(view: View!)

Public methods

open FullWidthDetailsOverviewRowPresenter!

open FullWidthDetailsOverviewRowPresenter.ViewHolder!

open Boolean

open Unit
setSizeFromDrawableIntrinsic(sizeFromDrawableIntrinsic: Boolean)

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

Inherited functions

Properties

FullWidthDetailsOverviewRowPresenter!

FullWidthDetailsOverviewRowPresenter.ViewHolder!

Inherited properties

Public constructors

<init>

ViewHolder(view: View!)

Public methods

getParentPresenter

open fun getParentPresenter(): FullWidthDetailsOverviewRowPresenter!

getParentViewHolder

open fun getParentViewHolder(): FullWidthDetailsOverviewRowPresenter.ViewHolder!

isSizeFromDrawableIntrinsic

open fun isSizeFromDrawableIntrinsic(): Boolean
Return
Boolean: True if layout size of ImageView should be changed to intrinsic size of Drawable, false otherwise. Used by DetailsOverviewLogoPresenter#onBindViewHolder(Presenter.ViewHolder, Object) .

setSizeFromDrawableIntrinsic

open fun setSizeFromDrawableIntrinsic(sizeFromDrawableIntrinsic: Boolean): Unit

Change if the ImageView layout size should be synchronized to Drawable intrinsic size. Used by DetailsOverviewLogoPresenter#onBindViewHolder(Presenter.ViewHolder, Object).

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

Properties

mParentPresenter

protected var mParentPresenter: FullWidthDetailsOverviewRowPresenter!

mParentViewHolder

protected var mParentViewHolder: FullWidthDetailsOverviewRowPresenter.ViewHolder!