@Override
  public void onClick(View v) {

    if (v.getId() == R.id.btn_one || v.getId() == R.id.btn_two || v.getId() == R.id.btn_three) {

      presentShowcaseSequence();

    } else if (v.getId() == R.id.btn_reset) {

      MaterialShowcaseView.resetSingleUse(this, SHOWCASE_ID);
      Toast.makeText(this, "Showcase reset", Toast.LENGTH_SHORT).show();
    }
  }
Exemplo n.º 2
0
 @Override
 protected void onStop() {
   super.onStop();
   MaterialShowcaseView.resetSingleUse(this, SHOWCASE_ID);
 }