Search in sources :

Example 1 with SimpleShowcaseEventListener

use of com.github.amlcurran.showcaseview.SimpleShowcaseEventListener in project ShowcaseView by amlcurran.

the class MemoryManagementTesting method showcase.

private void showcase() {
    new ShowcaseView.Builder(this).withMaterialShowcase().setContentText(String.format("Showing %1$d", currentShowcase)).setTarget(new ViewTarget(R.id.buttonBlocked, this)).setShowcaseEventListener(new SimpleShowcaseEventListener() {

        @Override
        public void onShowcaseViewDidHide(ShowcaseView showcaseView) {
            currentShowcase++;
            showcase();
        }
    }).build();
}
Also used : SimpleShowcaseEventListener(com.github.amlcurran.showcaseview.SimpleShowcaseEventListener) ViewTarget(com.github.amlcurran.showcaseview.targets.ViewTarget) ShowcaseView(com.github.amlcurran.showcaseview.ShowcaseView)

Aggregations

ShowcaseView (com.github.amlcurran.showcaseview.ShowcaseView)1 SimpleShowcaseEventListener (com.github.amlcurran.showcaseview.SimpleShowcaseEventListener)1 ViewTarget (com.github.amlcurran.showcaseview.targets.ViewTarget)1