deano2390 / MaterialShowcaseView

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

Dismiss ShowCaseView with only click target #134

Open iman2420 opened 7 years ago

iman2420 commented 7 years ago

I couldn't find a way to allow the user to dismiss the showcase by clicking target and hide dismiss button.

sajadmaster commented 6 years ago

Same issue here.

mslalith commented 6 years ago
MaterialShowCaseView showCaseView = new MaterialShowcaseView.Builder(activity)
                .setTarget(targetView)
                .setContentText("Context text goes here")
                .setTargetTouchable(true)   // this is important
                .setDismissOnTargetTouch(true)   // this is important
                .build();

and remember to disable your button (targetView) because it calls onClick and you don't want that.

LutfiTekin commented 6 years ago

What about sequence? @mslalith