use of com.github.amlcurran.showcaseview.targets.ViewTarget in project ShowcaseView by amlcurran.
the class AnimationSampleActivity method onClick.
@Override
public void onClick(View v) {
switch(counter) {
case 0:
showcaseView.setShowcase(new ViewTarget(textView2), true);
break;
case 1:
showcaseView.setShowcase(new ViewTarget(textView3), true);
break;
case 2:
showcaseView.setTarget(Target.NONE);
showcaseView.setContentTitle("Check it out");
showcaseView.setContentText("You don't always need a target to showcase");
showcaseView.setButtonText(getString(R.string.close));
setAlpha(0.4f, textView1, textView2, textView3);
break;
case 3:
showcaseView.hide();
setAlpha(1.0f, textView1, textView2, textView3);
break;
}
counter++;
}
Aggregations