ImaginativeShohag / Why-Not-Image-Carousel

Why Not use Image Carousel if you have lots of images to show!
https://imaginativeshohag.github.io/Why-Not-Image-Carousel/
Apache License 2.0
472 stars 69 forks source link

add change color shadow bottom or top #86

Closed fajaranugrah closed 2 years ago

fajaranugrah commented 2 years ago

Hello sir, i use this library for image carousel can add color for shadow bottom or top?

thank you

ImaginativeShohag commented 2 years ago

You can change the top and bottom shadow like this:

val topShadow: View = binding.carousel1.rootView.findViewById(org.imaginativeworld.whynotimagecarousel.R.id.view_top_shadow)
topShadow.background.setTint(Color.parseColor("#FF0000"))

val bottomShadow: View = binding.carousel1.rootView.findViewById(org.imaginativeworld.whynotimagecarousel.R.id.view_bottom_shadow)
bottomShadow.background.setTint(Color.parseColor("#FF0000"))