added in version 22.1.0
belongs to Maven artifact


public static class Presenter.ViewHolder
extends Object implements FacetProvider

Known Direct Subclasses
Known Indirect Subclasses

ViewHolder can be subclassed and used to cache any view accessors needed to improve binding performance (for example, results of findViewById) without needing to subclass a View.



public final View view

Public constructors

Presenter.ViewHolder(View view)

Public methods

final Object getFacet(Class<?> facetClass)

Queries optional implemented facet.

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

Sets dynamic implemented facet in addition to basic ViewHolder functions.

Inherited methods

From class java.lang.Object