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).
Called from FullWidthDetailsOverviewRowPresenter to setup FullWidthDetailsOverviewRowPresenter
and FullWidthDetailsOverviewRowPresenter.ViewHolder that hosts the logo.
Returns true if the logo view is bound to image. Subclass may override. The default
implementation returns true when getImageDrawable() is not null.
If subclass of DetailsOverviewLogoPresenter manages its own image drawable, it should
override this function to report status correctly and invoke
notifyOnBindLogo(FullWidthDetailsOverviewRowPresenter.ViewHolder)
when image view is bound to the drawable.
Bind logo View to drawable of DetailsOverviewRow and call notifyOnBindLogo(). The
default implementation assumes the Logo View is an ImageView and change layout size to
intrinsic size of ImageDrawable if isSizeFromDrawableIntrinsic() is true.
Create a View for the Logo, default implementation loads from
lb_fullwidth_details_overview_logo. Subclass may override this method to use
a fixed layout size and change ImageView scaleType. If the layout params is WRAP_CONTENT for
both width and size, the ViewHolder would be using intrinsic size of Drawable in
onBindViewHolder(Presenter.ViewHolder, Object).
Called from FullWidthDetailsOverviewRowPresenter to setup FullWidthDetailsOverviewRowPresenter
and FullWidthDetailsOverviewRowPresenter.ViewHolder that hosts the logo.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-11 UTC."],[],[]]