deano2390 / MaterialShowcaseView

A Material Design themed ShowcaseView for Android
Apache License 2.0
2.72k stars 526 forks source link

How to use rectangle shape for one target and circle shape for another target in sequence.addSequenceItem(); #75

Open swapc opened 8 years ago

borjar commented 7 years ago

You need to set create two different MaterialShowcaseSequence and use method .withRectangleShape()

MaterialShowcaseSequence sequence = new MaterialShowcaseSequence(this);

MaterialShowcaseView.Builder roundBuilder = new MaterialShowcaseView.Builder(this)
        .setTarget(target);

sequence.addSequenceItem(roundBuilder.build());

MaterialShowcaseView.Builder rectangleBuilder = new MaterialShowcaseView.Builder(this)
        .setTarget(target)
        .withRectangleShape();

sequence.addSequenceItem(rectangleBuilder.build());

sequence.start();