DetailsOverviewLogoPresenter.ViewHolder


public class DetailsOverviewLogoPresenter.ViewHolder extends Presenter.ViewHolder


ViewHolder for Logo view of DetailsOverviewRow.

Summary

Public constructors

Public methods

@Nullable FullWidthDetailsOverviewRowPresenter
@Nullable FullWidthDetailsOverviewRowPresenter.ViewHolder
boolean
void
setSizeFromDrawableIntrinsic(boolean sizeFromDrawableIntrinsic)

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

Inherited methods

From androidx.leanback.widget.FacetProvider
abstract @Nullable Object
getFacet(@NonNull Class<Object> facetClass)

Queries optional implemented facet.

From androidx.leanback.widget.Presenter.ViewHolder
final Object
getFacet(Class<Object> facetClass)

Queries optional implemented facet.

final void
setFacet(Class<Object> facetClass, Object facetImpl)

Sets dynamic implemented facet in addition to basic ViewHolder functions.

Protected fields

mParentPresenter

Added in 1.1.0
protected @Nullable FullWidthDetailsOverviewRowPresenter mParentPresenter

Public constructors

ViewHolder

Added in 1.2.0-alpha04
public ViewHolder(@NonNull View view)

Public methods

getParentPresenter

Added in 1.1.0
public @Nullable FullWidthDetailsOverviewRowPresenter getParentPresenter()

isSizeFromDrawableIntrinsic

Added in 1.1.0
public boolean isSizeFromDrawableIntrinsic()
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
public void setSizeFromDrawableIntrinsic(boolean sizeFromDrawableIntrinsic)

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

Parameters
boolean sizeFromDrawableIntrinsic

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