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.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-04-11 UTC.",
"state": ""
}