Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0-rc01

DetailsOverviewLogoPresenter.ViewHolder

public static class DetailsOverviewLogoPresenter.ViewHolder
extends Presenter.ViewHolder

java.lang.Object
   ↳ androidx.leanback.widget.Presenter.ViewHolder
     ↳ androidx.leanback.widget.DetailsOverviewLogoPresenter.ViewHolder


ViewHolder for Logo view of DetailsOverviewRow.

Summary

Fields

protected FullWidthDetailsOverviewRowPresenter mParentPresenter

protected FullWidthDetailsOverviewRowPresenter.ViewHolder mParentViewHolder

Inherited fields

Public constructors

DetailsOverviewLogoPresenter.ViewHolder(View view)

Public methods

FullWidthDetailsOverviewRowPresenter getParentPresenter()
FullWidthDetailsOverviewRowPresenter.ViewHolder getParentViewHolder()
boolean isSizeFromDrawableIntrinsic()
void setSizeFromDrawableIntrinsic(boolean sizeFromDrawableIntrinsic)

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

Inherited methods

Fields

mParentPresenter

added in version 1.0.0
protected FullWidthDetailsOverviewRowPresenter mParentPresenter

mParentViewHolder

added in version 1.0.0
protected FullWidthDetailsOverviewRowPresenter.ViewHolder mParentViewHolder

Public constructors

DetailsOverviewLogoPresenter.ViewHolder

added in version 1.0.0
public DetailsOverviewLogoPresenter.ViewHolder (View view)

Parameters
view View

Public methods

getParentPresenter

added in version 1.0.0
public FullWidthDetailsOverviewRowPresenter getParentPresenter ()

Returns
FullWidthDetailsOverviewRowPresenter

isSizeFromDrawableIntrinsic

added in version 1.0.0
public boolean isSizeFromDrawableIntrinsic ()

Returns
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

added in version 1.0.0
public void setSizeFromDrawableIntrinsic (boolean sizeFromDrawableIntrinsic)

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.