Skip to content

Repository files navigation

AndroidWizard

Simple to use welcome screen for your Android app.

Demo

Here is the library running in my Intruder Selfie app:

Features:

  • Simple to use
  • Attractive design
  • Request runtime permissions in an elegant way
  • Example classes
  • Enable/disable next/previous buttons

Installation

Using JitPack, an awesome build service, you can just copy the below few lines into your project.

Add jitpack.io in your root build.gradle at the end of repositories:

allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}

In your app's build.gradle, add the dependency:

dependencies {
compile 'com.github.twinone:AndroidWizard:b4546bd712'
}

Usage

Just extend WizardActivity

publicclassMyWizardActivityextendsWizardActivity {
@OverrideprotectedvoidonCreate(@NullableBundlestate) {
super.onCreate(state);
// The WelcomeWizardScreen shows a line, your icon and// another line. This should be the first screen in most appsWelcomeWizardFragment.newInstance(
"Android Wizard",
"Welcome to Android Wizard Demo application",
"Tap next to continue",
R.mipmap.ic_launcher
).addTo(this);
// A TextWizardFragment is a very simple information screenTextWizardFragment.newInstance(
"Another screen", "This is a very useful string"
).addTo(this);
TextWizardFragment.newInstance(
"Almost done", "Yet another screen"
).addTo(this);
}
}

... and launch it from your MainActivity:

@OverrideprotectedvoidonCreate(BundlesavedInstanceState) {
...
// show the welcome screen only onceWizardActivity.show(this, MyWizardActivity.class);
findViewById(R.id.button).setOnClickListener((v) -> {
// force to show it always, useful for a "Tutorial" buttonWizardActivity.show(this, MyWizardActivity.class, true);
});
}

This will show you the following welcome screen:

Requesting permissions

TODO

About

Easy, beautiful Android app intro screen library

Resources

Stars

12 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages