Skip to content
Advertisement

I want to use denzcoskun/ImageSlideshow in fragment

I’m trying to use carousel in fragment.

I’m using the following library https://github.com/denzcoskun/ImageSlideshow for image slider. In Activity the image slider works, but in fragment it doesn’t work. And there was no particular error in Logcat and Log.

It also confirmed that both versions 0.0.6 and 0.1.0 can be done in activity and not in fragment. How can I use this slide in fragment?

In activity code (this is working)

JavaScript

In fragment (it doesn’t work)

JavaScript

Advertisement

Answer

Use this code in your fragment.java file.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement