Implement Slideshow of videos and images

Venkat Ramarao Potlapalli picture Venkat Ramarao Potlapalli · Mar 18, 2015 · Viewed 8.7k times · Source

I want to implement slideshow of videos and images. When app is opened it should start with slideshow of images and in between some videos to play, when a video is playing, the slideshow should stops sliding and when video has finished the slideshow starts sliding again.Are there any ways to do it? I am new to android, please help me out

Answer

Vinay Gaba picture Vinay Gaba · Mar 18, 2015

There is a very useful library that lets you do this - https://github.com/marvinlabs/android-slideshow-widget

You can also see a working demo of this library - https://play.google.com/store/apps/details?id=com.marvinlabs.widget.slideshow.demo

If you want to implement the logic yourself, you can make the use of a timer and change the image references in the image view.