AppIntro

介绍:

轻松建立一个漂亮的引导界面,功能很完善。

运行效果:

使用说明:

build.gradle:

repositories {
    mavenCentral()
}
dependencies {
  compile 'com.github.paolorotolo:appintro:1.1.0'
}

创建一个继承自AppIntro的Activity

public class MyIntro extends AppIntro {
    // Please DO NOT override onCreate. Use init.
    @Override
    public void init(Bundle savedInstanceState) {
        // Add your slide's fragments here.
        // AppIntro will automatically generate the dots indicator and buttons.
        addSlide(new FirstSlide(), getApplicationContext());
        addSlide(new SecondSlide(), getApplicationContext());
        addSlide(new ThirdSlide(), getApplicationContext());
        addSlide(new FourthSlide(), getApplicationContext());
        // You can override bar/separator color if you want.
        setBarColor(Color.parseColor("#3F51B5"));
        setSeparatorColor(Color.parseColor("#2196F3"));
        // You can also hide Skip button
        showSkipButton(false);
    }
    @Override
    public void onSkipPressed() {
    // Do something when users tap on Skip button.
    }
    @Override
    public void onDonePressed() {
    // Do something when users tap on Done button.
    }
}

注意 不要重写onCreate,只用 init 方法就可以了。

使用了AppIntro的app

实际应用

需要点灵感来源吗?下面这几张图可以帮助你思考如何使用这个库:

Screenshot_2015-06-03-12-41-59.pngScreenshot_2015-06-03-12-42-02.pngScreenshot_2015-06-03-12-42-07.pngScreenshot_2015-06-03-12-42-10.png

已下载
0