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

How can I make indicators go at the bottom of the image #71

Closed shahwaiz90 closed 2 years ago

shahwaiz90 commented 2 years ago

Screenshot 2022-01-02 at 7 14 48 PM

Not sure if library is supporting something like this. But in readme instructions there was a sample related to this.

nowjordanhappy commented 2 years ago

How at the image ends? Can you explain?

shahwaiz90 commented 2 years ago

Screenshot 2022-01-03 at 10 51 04 AM Some thing like this. But without the caption. The indicators should be below the image.

nowjordanhappy commented 2 years ago

You have to use app:showIndicator="false" and then:

https://github.com/ongakuer/CircleIndicator

Use this and put CircleIndicator2 where you want in xml. Captura de Pantalla 2022-01-03 a la(s) 01 44 57

and then pass the indicator id in code: setIndicator(indicator)

https://github.com/ImaginativeShohag/Why-Not-Image-Carousel/blob/master/sample/src/main/res/layout/fragment_sample.xml this is the example xml.

shahwaiz90 commented 2 years ago

Thanks for your reply. I tried this, but indicators are not visible.

Screenshot 2022-01-03 at 12 33 22 PM Screenshot 2022-01-03 at 12 44 18 PM Screenshot 2022-01-03 at 12 46 42 PM
ImaginativeShohag commented 2 years ago

Just move last 2 line code (val customeIndicator and setIndicator) before setData function. This should solve your problem.