Back to project page Wizard.
The source code is released under:
Apache License
If you think the Android project Wizard listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package me.panavtec.wizardsample; //from w w w .j a v a 2 s.co m import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.widget.Toast; import me.panavtec.wizard.Wizard; import me.panavtec.wizard.WizardListener; import me.panavtec.wizard.WizardPage; import me.panavtec.wizard.WizardPageListener; public class MainActivity extends ActionBarActivity implements WizardPageListener, WizardListener { private Wizard wizard; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); wizard = new Wizard.Builder(this, new WizardPage1(), new WizardPage2(), new WizardPage3()) .containerId(android.R.id.content) .enterAnimation(R.anim.card_slide_right_in) .exitAnimation(R.anim.card_slide_left_out) .popEnterAnimation(R.anim.card_slide_left_in) .popExitAnimation(R.anim.card_slide_right_out) .pageListener(this) .wizardListener(this) .build(); wizard.init(); } public Wizard getWizard() { return wizard; } @Override public void onPageChanged(int currentPageIndex, WizardPage page) { Toast.makeText(this, "Page selected: " + currentPageIndex, Toast.LENGTH_SHORT).show(); } @Override public void onWizardFinished() { Toast.makeText(this, "Wizard finished", Toast.LENGTH_SHORT).show(); } }