added in version 24.1.0
belongs to Maven artifact


public class DetailsOverviewLogoPresenter
extends Presenter


Presenter that responsible to create a ImageView and bind to DetailsOverviewRow. The default implementation uses getImageDrawable() and binds to ImageView.

Default implementation assumes no scaleType on ImageView and uses intrinsic width and height of getImageDrawable() to initialize ImageView's layout params. To specify a fixed size and/or specify a scapeType, subclass should change ImageView's layout params and scaleType in onCreateView(ViewGroup).

Subclass may override and has its own image view. Subclass may also download image from URL instead of using getImageDrawable(). It's subclass's responsibility to call notifyOnBindLogo(FullWidthDetailsOverviewRowPresenter.ViewHolder) whenever isBoundToImage(ViewHolder, DetailsOverviewRow) turned to true so that activity transition can be started.


Nested classes

class DetailsOverviewLogoPresenter.ViewHolder

ViewHolder for Logo view of DetailsOverviewRow. 

Public constructors


Public methods

boolean isBoundToImage(DetailsOverviewLogoPresenter.ViewHolder viewHolder, DetailsOverviewRow row)

Returns true if the logo view is bound to image.

void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item)

Bind logo View to drawable of DetailsOverviewRow and call notifyOnBindLogo().

View onCreateView(ViewGroup parent)

Create a View for the Logo, default implementation loads from lb_fullwidth_details_overview_logo.

Presenter.ViewHolder onCreateViewHolder(ViewGroup parent)

Creates a new View.

void onUnbindViewHolder(Presenter.ViewHolder viewHolder)

Unbinds a View from an item.

void setContext(DetailsOverviewLogoPresenter.ViewHolder viewHolder, FullWidthDetailsOverviewRowPresenter.ViewHolder parentViewHolder, FullWidthDetailsOverviewRowPresenter parentPresenter)

Called from FullWidthDetailsOverviewRowPresenter to setup FullWidthDetailsOverviewRowPresenter and FullWidthDetailsOverviewRowPresenter.ViewHolder that hosts the logo.

Inherited methods

From class