setImage

Set image to the carouse image view.

Parameters

item

The carousel item.


fun ImageView.setImage(item: CarouselItem, @DrawableRes placeholderDrawableResourceId: Int)

Set image to the carouse image view.

Parameters

item

The carousel item.

placeholderDrawableResourceId

The id of the resource to use as a placeholder.


fun ImageView.setImage(item: CarouselItem, placeholderDrawable: Drawable? = null)

Set image to the carouse image view.

Parameters

item

The carousel item.

placeholderDrawable

The drawable to display as a placeholder.