Exemplo n.º 1
0
 public void show() {
   if (mEventListener != null) {
     mEventListener.onShowcaseViewShow(this);
   }
   if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB
       && getConfigOptions().fadeInDuration > 0) {
     fadeInShowcase();
   } else {
     setVisibility(View.VISIBLE);
   }
 }
Exemplo n.º 2
0
  public void hide() {
    if (mEventListener != null) {
      mEventListener.onShowcaseViewHide(this);
    }

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB
        && getConfigOptions().fadeOutDuration > 0) {
      fadeOutShowcase();
    } else {
      setVisibility(View.GONE);
    }
  }