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 Unit
setSizeFromDrawableIntrinsic(sizeFromDrawableIntrinsic: Boolean)

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

open FullWidthDetailsOverviewRowPresenter.ViewHolder!

open FullWidthDetailsOverviewRowPresenter!

open Boolean

Inherited functions
Properties
FullWidthDetailsOverviewRowPresenter!

FullWidthDetailsOverviewRowPresenter.ViewHolder!

Inherited properties

Public constructors

<init>

ViewHolder(view: View!)

Public methods

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.

getParentViewHolder

open fun getParentViewHolder(): FullWidthDetailsOverviewRowPresenter.ViewHolder!

getParentPresenter

open fun getParentPresenter(): FullWidthDetailsOverviewRowPresenter!

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) .

Properties

mParentPresenter

protected var mParentPresenter: FullWidthDetailsOverviewRowPresenter!

mParentViewHolder

protected var mParentViewHolder: FullWidthDetailsOverviewRowPresenter.ViewHolder!