Image detail widget is a component that displays an image fetched from a given url.
To make the component work correctly, you need to perform the following steps.
<com.strv.chat.core.core.ui.chat.imageDetail.ImageDetailView
android:id="@+id/iv_photo"
android:layout_width="match_parent"
android:layout_height="match_parent" />
Call type-safe init()
builder function in onCreate()
method that
allows creating Kotlin-based domain-specific language (DSL) suitable for
configuring the component.
Optional properties:
url: String
- Url of the displayed image that a user wants to display.
imageLoader: ImageLoader
- Defines how to upload a picture's url to
ImageView
s.
- Defines how to upload a picture's url to
imageDetail.init {
imageUrl = imageDetailViewModel.imageUrl
imageLoader = loader
}