Round corners
VakhrushevVS opened this issue · 1 comments
VakhrushevVS commented
How can i round corners in corusel view?
Ajdadoc commented
I do it, but I have a problem. Space behind round corder paint to black color.
` apartImageSlider.run {
setViewListener { position ->
val sliderImage = ShapeableImageView(
ContextThemeWrapper(
requireContext(),
R.style.ImageBottomShape
)
)
sliderImage.scaleType = ImageView.ScaleType.CENTER_CROP
sliderImage.loadImage(photos[position].originalUrl)
sliderImage
}
pageCount = photos.size
}`