belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
DetailsOverviewLogoPresenter
public
class
DetailsOverviewLogoPresenter
extends Presenter
java.lang.Object | ||
↳ | android.support.v17.leanback.widget.Presenter | |
↳ | android.support.v17.leanback.widget.DetailsOverviewLogoPresenter |
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.