AppIntro 0,8,3,0,9,3,10,0

Make a cool intro for your Android app.

2 years after Apache-2.0

Maven Central Android Arsenal Android Gems

Sample App:

Get it on Google Play


AppIntro is an Android Library that helps you make a cool intro for your app, like the ones in Google apps.

Watch the demo video on YouTube

Intro demo video


Basic usage

Add this to your build.gradle:

repositories {

dependencies {
    compile 'com.github.paolorotolo:appintro:4.1.0'

Create a new Activity that extends AppIntro:

public class IntroActivity extends AppIntro {
    protected void onCreate(@Nullable Bundle savedInstanceState) {

        // Note here that we DO NOT use setContentView();

        // Add your slide fragments here.
        // AppIntro will automatically generate the dots indicator and buttons.

        // Instead of fragments, you can also use our default slide
        // Just set a title, description, background and image. AppIntro will do the rest.
        addSlide(AppIntroFragment.newInstance(title, description, image, backgroundColor));

        // Override bar/separator color.

        // Hide Skip/Done button.

        // Turn vibration on and set intensity.
        // NOTE: you will probably need to ask VIBRATE permission in Manifest.

    public void onSkipPressed(Fragment currentFragment) {
        // Do something when users tap on Skip button.

    public void onDonePressed(Fragment currentFragment) {
        // Do something when users tap on Done button.

    public void onSlideChanged(@Nullable Fragment oldFragment, @Nullable Fragment newFragment) {
        super.onSlideChanged(oldFragment, newFragment);
        // Do something when the slide changes.

Note above that we DID NOT use setContentView();

Finally, declare the activity in your Manifest like so:

<activity android:name="com.example.example.intro"
    android:label="@string/app_intro" />

Do not declare the intro as your main app launcher unless you want the intro to launch every time your app starts. Refer to the wiki for an example of how to launch the intro once from your main activity.

Alternative layout

If you want to try an alternative layout (as seen in Google's Photo app), just extend AppIntro2 in your Activity. That's all :)

public class IntroActivity extends AppIntro2 {
    // ...


Basic slides

AppIntro provides two simple classes, AppIntroFragment and AppIntro2Fragment which one can use to build simple slides.

protected void onCreate(@Nullable Bundle savedInstanceState) {
    // ...

    addSlide(AppIntroFragment.newInstance(title, description, image, backgroundColor));
Custom slides example

One may also define custom slides as seen in the example project:

  • Copy the class SampleSlide from my example project.
  • Add a new slide with addSlide(SampleSlide.newInstance(R.layout.your_slide_here));

There's no need to create one class for fragment anymore. :)

Extended usage


AppIntro comes with some pager animations. Choose the one you like and then activate it with:

protected void onCreate(@Nullable Bundle savedInstanceState) {
    // ...


Available animations:


If you want to create nice parallax effect or your own custom animation, create your own PageTransformer and call:

protected void onCreate(@Nullable Bundle savedInstanceState) {
    // ...


Click here to see how I did it in the example app.

Background color transitions

AppIntro supports background color transitions:

In order to setup the transitions, simply implement ISlideBackgroundColorHolder:

public final class MySlide extends Fragment implements ISlideBackgroundColorHolder {
    public int getDefaultBackgroundColor() {
        // Return the default background color of the slide.
        return Color.parseColor("#000000");

    public void setBackgroundColor(@ColorInt int backgroundColor) {
        // Set the background color of the view within your slide to which the transition should be applied.
        if (layoutContainer != null) {

The API is quite low-level, therefore highly customizable. The interface contains two methods:

  • getDefaultBackgroundColor: Return the default background color (i.e. the background color the slide has in non-sliding state) of the slide here.
  • setBackgroundColor(int): This method will be called while swiping between two slides. Update the background color of the view to which the transition should be applied. This is normally the root view of your Fragment's layout. But one may also apply the color transition to some other view only (i.e. a Button).

Runtime Permissions (Android 6.0+)

Android 6.0 introduced a new permissions model for developers. Now all your apps have to request permissions which can be a tedious thing to implement.

However, AppIntro simplifies this down to one single line of code!

protected void onCreate(@Nullable Bundle savedInstanceState) {
    // ...

    // Ask for CAMERA permission on the second slide
    askForPermissions(new String[]{Manifest.permission.CAMERA}, 2); // OR

    // This will ask for the camera permission AND the contacts permission on the same slide.
    // Ensure your slide talks about both so as not to confuse the user.
    askForPermissions(new String[]{Manifest.permission.CAMERA, Manifest.permission.READ_CONTACTS}, 2);

NOTE: It is advised that you only put one permission in the String array unless you want the app to ask for multiple permissions on the same slide.

NOTE 2: Requesting permissions automatically disables sliding, and users will have to result to pressing the buttons. Please do not open any issues regarding this, as they will be immmediately closed. Thanks!

Slide Policies

If you want to restrict navigation between your slides (i.e. the user has to toggle a checkbox in order to continue), our Slide Policy feature might help you.

All you have to do is implement ISlidePolicy in your slides:

public final class MySlide extends Fragment implements ISlidePolicy {
    public boolean isPolicyRespected() {
        return // If user should be allowed to leave this slide

    public void onUserIllegallyRequestedNextPage() {
        // User illegally requested next slide

The interface contains two methods:

  • isPolicyRespected: The return value of this method defines if the user can leave this slide, i.e. navigate to another one
  • onUserIllegallyRequestedNextPage: This method gets called if the user tries to leave the slide although isPolicyRespected returned false. One may show some error message here.

Example App

See example code here on GitHub. You can also see it live by downloading our example on Google Play.

Real life examples

Do you need inspiration? A lot of apps are using AppIntro out there:


Hermes - Material IRC Client

Apps using AppIntro

If you are using AppIntro in your app and would like to be listed here, please let us know by commenting in this issue!

Related Repositories



react-native-app-intro is a react native component implementing a parallax effec ...



An Android library to show an intro to your users. ...



A Github Client App with MVP architecture use Dagger2, RxJava, Retrofit, Okhttp ...



Show your apps key features in a cool way. ...

Top Contributors

PaoloRotolo Andrew-Quebe maxee friederbluemle avluis porokoro danluong MhzDev cr5315 tasomaniac SandroMachado BugsBunnyBR timobaehr rohitshampur Fleker RafaG marbat87 LLin233 salimkayabasi K0bin girish3 kayvannj championswimmer fanky10 liaohuqiu MacroYau NiharG15 ofirmiron voghDev ameykshirsagar


-   v4.1.0 zip tar
-   v4.0.0 zip tar
-   v3.3.0 zip tar
-   v3.2.0 zip tar