Wondering how to make a slideshow on Android? If you’re building your own app, the quickest route is a ViewPager for screen slides, or a ready-made slideshow widget that handles playback and transitions for you.
For a wider view of the tools in this category, start with our guide to photo slideshow software.
| Item | Value |
|---|---|
| Built-in screen-slide component | ViewPager from the support library |
| Widget library dependency | com.marvinlabs:android-slideshow-widget:0.1.+@aar |
| Widget library first release | 0.1.0 (2014-05-31), beta |
| Widget library newest change-log entry | 0.2.0 (2014-06-01) |
| Slide play orders offered | SequentialPlayList and RandomPlayList |
These figures come from the Android Developers screen-slide lesson and the Android SlideShow Widget repository. They can change, so check the sources before you rely on them.
Two ways to build a slideshow inside an app
A slideshow in an app is a set of screens or images that advance one after another. The Android Developers lesson says screen slides are common in UIs like setup wizards or slideshows, which is exactly the pattern you want (source).
The sources behind this page point to two code-level routes:
- ViewPager: a component from the support library that animates screen slides for you.
- A slideshow widget library: a packaged view, adapters, transitions and playlists that you drop into a layout.
Those sources describe building a slideshow in code. They do not cover no-code slideshow apps, so none are reviewed or ranked here, and this page carries no affiliate links.
How a ViewPager slideshow works
The Android Developers lesson explains that a ViewPager can animate screen slides automatically (source). You supply the pages, and the component handles the movement between them.
The lesson walks through these steps in order:
- Create a layout file that you will later use for the content of a fragment.
- Create a Fragment class that returns that layout from its onCreateView() method.
- Add a ViewPager to the parent activity.
- Customize the animation with a PageTransformer.
- Try it out with the sample app.
The lesson’s example layout contains a text view to display some text. Treat that text view as a placeholder for whatever your own slides need to show.
If you would rather read finished code, the lesson offers a download. It says to run the sample app and select the Screen Slide example for a full working version (source).
Using a slideshow widget library
The Android SlideShow Widget describes itself as a set of widgets for smooth slideshows. Its components are fully customizable and are not limited to pictures, so you can slide text as well (source).
The repository’s README gives a short path from empty project to running slideshow:
- Add the Gradle dependency com.marvinlabs:android-slideshow-widget:0.1.+@aar to your dependencies block.
- Place a SlideShowView in your layout and find it in your fragment or activity.
- Create an adapter that binds your slide data to views, much as you would with a ListView.
- Call play() once your activity is ready, or from an event handler such as a button click.

For picture slideshows, the README says the library has base adapters that load images from your application resources or from the Internet. ResourceBitmapAdapter covers drawables, and RemoteBitmapAdapter covers online images (source).
Choosing transitions, order and timing
A good slideshow depends on how slides change and in what sequence. The widget library splits these jobs into separate pieces, so you can swap one without touching the others (source).
For transitions, the README lists these default implementations:
- FadeTransitionFactory fades slides out and in.
- SlideAndZoomTransitionFactory slides the current slide out to the left and then zooms the next one in.
- NoTransitionFactory shows each slide abruptly.
For order and duration, you implement a PlayList. SequentialPlayList plays slides in order with a common default duration, while RandomPlayList plays them in a random order with that same kind of default duration (source).
The change log shows how old this project is. Version 0.1.0 was a beta first release dated 2014-05-31, and version 0.2.0 on 2014-06-01 added RandomPlayList, slide show event listeners and a slide click listener (source).
Because the newest change-log entry is from 2014, test the library against your current project setup before committing to it.
Which route fits your project?
Pick the ViewPager if you want the platform’s own screen-slide pattern and are happy to write the fragments yourself. Pick the widget library if you want playlists, ready-made transitions and image adapters without building them from scratch.
If you are preparing photos on a computer first, our guide to a photo slideshow maker for Windows covers that side of the job.
If you would rather end with a shareable file than an app, read our walkthrough on how to make a video slideshow from photos.
Frequently asked questions
Do I need to write code to make a slideshow on Android?
Show answer
The sources used for this page only describe code-based methods, using a ViewPager or a widget library. They say nothing about no-code apps, so this page cannot recommend one.
Can the slides be something other than photos?
Show answer
Yes, with the widget library. Its README states that the components are not limited to pictures and can slide whatever you want, such as text (source).
How do I change the animation between slides?
Show answer
With a ViewPager, the lesson has a section on customizing the animation with a PageTransformer. With the widget library, you implement the SlideTransitionFactory interface or choose one of its default implementations (lesson, README).
How do I start playback in the widget library?
Show answer
Once the adapter is set up, call play() on the SlideShowView. The README suggests doing this when your activity is ready or inside a button-click handler (source).



