Skip to content

Commit

Permalink
Merge pull request #92 from madeinqc/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
deano2390 committed Jun 15, 2017
2 parents a5baa24 + e3d0185 commit ed3e93a
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions README.md
Expand Up @@ -47,34 +47,34 @@ This is the basic usage of a single showcase view, you should check out the samp

// single example
new MaterialShowcaseView.Builder(this)
.setTarget(mButtonShow)
.setDismissText("GOT IT")
.setContentText("This is some amazing feature you should know about")
.setDelay(withDelay) // optional but starting animations immediately in onCreate can make them choppy
.singleUse(SHOWCASE_ID) // provide a unique ID used to ensure it is only shown once
.show();
.setTarget(mButtonShow)
.setDismissText("GOT IT")
.setContentText("This is some amazing feature you should know about")
.setDelay(withDelay) // optional but starting animations immediately in onCreate can make them choppy
.singleUse(SHOWCASE_ID) // provide a unique ID used to ensure it is only shown once
.show();




// sequence example
ShowcaseConfig config = new ShowcaseConfig();
config.setDelay(500); // half second between each showcase view
// sequence example
ShowcaseConfig config = new ShowcaseConfig();
config.setDelay(500); // half second between each showcase view

MaterialShowcaseSequence sequence = new MaterialShowcaseSequence(this, SHOWCASE_ID);
MaterialShowcaseSequence sequence = new MaterialShowcaseSequence(this, SHOWCASE_ID);

sequence.setConfig(config);
sequence.setConfig(config);

sequence.addSequenceItem(mButtonOne,
"This is button one", "GOT IT");
sequence.addSequenceItem(mButtonOne,
"This is button one", "GOT IT");

sequence.addSequenceItem(mButtonTwo,
"This is button two", "GOT IT");
sequence.addSequenceItem(mButtonTwo,
"This is button two", "GOT IT");

sequence.addSequenceItem(mButtonThree,
"This is button three", "GOT IT");
sequence.addSequenceItem(mButtonThree,
"This is button three", "GOT IT");

sequence.start();
sequence.start();

```

Expand Down

0 comments on commit ed3e93a

Please sign in to comment.