Tabnine Logo
com.github.amlcurran.showcaseview
Code IndexAdd Tabnine to your IDE (free)

How to use com.github.amlcurran.showcaseview

Best Java code snippets using com.github.amlcurran.showcaseview (Showing top 20 results out of 315)

origin: k9mail/k-9

  private void hideShowcaseView() {
    if (showcaseView != null && showcaseView.isShowing()) {
      showcaseView.hide();
    }
    showcaseView = null;
  }
}
origin: k9mail/k-9

protected void highlightViewInBackground() {
  if (!getArguments().containsKey(ARG_HIGHLIGHT_VIEW)) {
    return;
  }
  Activity activity = getActivity();
  if (activity == null) {
    throw new IllegalStateException("fragment must be attached to set highlight!");
  }
  boolean alreadyShowing = showcaseView != null && showcaseView.isShowing();
  if (alreadyShowing) {
    return;
  }
  int highlightedView = getArguments().getInt(ARG_HIGHLIGHT_VIEW);
  showcaseView = new Builder(activity)
      .setTarget(new ViewTarget(highlightedView, activity))
      .hideOnTouchOutside()
      .blockAllTouches()
      .withMaterialShowcase()
      .setStyle(R.style.ShowcaseTheme)
      .build();
  showcaseView.hideButton();
}
origin: seven332/EhViewer

private void guideCollections() {
  Activity activity = getActivity2();
  if (null == activity || !Settings.getGuideCollections()) {
    return;
  }
  Display display = activity.getWindowManager().getDefaultDisplay();
  Point point = new Point();
  display.getSize(point);
  mShowcaseView = new ShowcaseView.Builder(activity)
      .withMaterialShowcase()
      .setStyle(R.style.Guide)
      .setTarget(new PointTarget(point.x, point.y / 3))
      .blockAllTouches()
      .setContentTitle(R.string.guide_collections_title)
      .setContentText(R.string.guide_collections_text)
      .replaceEndButton(R.layout.button_guide)
      .setShowcaseEventListener(new SimpleShowcaseEventListener() {
        @Override
        public void onShowcaseViewDidHide(ShowcaseView showcaseView) {
          mShowcaseView = null;
          ViewUtils.removeFromParent(showcaseView);
          Settings.putGuideCollections(false);
          openDrawer(Gravity.RIGHT);
        }
      }).build();
}
origin: NightscoutFoundation/xDrip

  @Override
  public void run() {
    final ShowcaseView myShowcase = new ShowcaseView.Builder(activity)
        .setTarget(target)
        .setStyle(R.style.CustomShowcaseTheme2)
        .setContentTitle(title)
        .setContentText("\n" + message)
        .setShowcaseDrawer(new JamorhamShowcaseDrawer(getResources(), getTheme(), size1, size2, 255))
        .singleShot(oneshot ? option : -1)
        .build();
    myShowcase.setBackgroundColor(Color.TRANSPARENT);
    myShowcase.show();
  }
}
origin: DaxiaK/MyDiary

      case 1:
        sv.setButtonPosition(leftParams);
        sv.setShowcase(new ViewTarget(EDT_main_topic_search), true);
        sv.setContentTitle(getString(R.string.oobe_main_search_title));
        sv.setContentText(getString(R.string.oobe_main_search_content));
      case 2:
        sv.setButtonPosition(centerParams);
        sv.setShowcase(new ViewTarget(IV_main_setting), true);
        sv.setContentTitle(getString(R.string.oobe_main_adv_setting_title));
        sv.setContentText(getString(R.string.oobe_main_adv_setting_content));
Target viewTarget = new ViewTarget(IV_main_profile_picture);
sv = new ShowcaseView.Builder(this)
    .withMaterialShowcase()
    .setTarget(viewTarget)
    .setContentTitle(getString(R.string.oobe_main_your_name_title))
    .setContentText(getString(R.string.oobe_main_your_name_content))
    .setStyle(R.style.OOBEShowcaseTheme)
    .singleShot(OOBE.MAIN_PAGE)
    .replaceEndButton(new MyDiaryButton(this))
    .setOnClickListener(showcaseViewOnClickListener)
    .build();
sv.setButtonText(getString(R.string.oobe_next_button));
sv.setButtonPosition(leftParams);
origin: DaxiaK/MyDiary

switch (oobeCount) {
  case 0:
    sv.setButtonPosition(centerParams);
    sv.setShowcase(new CustomViewTarget(RecyclerView_topic, 4, 4), true);
    sv.setContentTitle(getString(R.string.oobe_main_topic_list_title));
    sv.setContentText(getString(R.string.oobe_main_topic_list_content));
    break;
  case 1:
    sv.setButtonPosition(leftParams);
    sv.setShowcase(new ViewTarget(EDT_main_topic_search), true);
    sv.setContentTitle(getString(R.string.oobe_main_search_title));
    sv.setContentText(getString(R.string.oobe_main_search_content));
    break;
  case 2:
    sv.setButtonPosition(centerParams);
    sv.setShowcase(new ViewTarget(IV_main_setting), true);
    sv.setContentTitle(getString(R.string.oobe_main_adv_setting_title));
    sv.setContentText(getString(R.string.oobe_main_adv_setting_content));
    break;
  case 3:
    sv.setButtonPosition(centerParams);
    sv.setTarget(Target.NONE);
    sv.setContentTitle(getString(R.string.oobe_main_mydiary_title));
    sv.setContentText(getString(R.string.oobe_main_mydiary_content));
    sv.setButtonText(getString(R.string.dialog_button_ok));
    break;
  case 4:
    sv.hide();
    break;
origin: powerpoint45/Lucid-Browser

boolean isShowcasing(){
  return showcase.isShowing();
}
origin: openmrs/openmrs-contrib-android-client

@Override
public void onShowcaseViewHide(ShowcaseView showcaseView) {
  showOverlayTutorialFour();
  showcaseView.setVisibility(View.GONE);
}
origin: powerpoint45/Lucid-Browser

@Override
public void onShowcaseViewShow(ShowcaseView showcaseView) {
  showcaseView.postDelayed(new Runnable() {
    @Override
    public void run() {
      colorBars();
    }
  },10);
}
origin: seven332/EhViewer

private void guideQuickSearch() {
  Activity activity = getActivity2();
  if (null == activity || !Settings.getGuideQuickSearch()) {
    return;
  }
  Display display = activity.getWindowManager().getDefaultDisplay();
  Point point = new Point();
  display.getSize(point);
  mShowcaseView = new ShowcaseView.Builder(activity)
      .withMaterialShowcase()
      .setStyle(R.style.Guide)
      .setTarget(new PointTarget(point.x, point.y / 3))
      .blockAllTouches()
      .setContentTitle(R.string.guide_quick_search_title)
      .setContentText(R.string.guide_quick_search_text)
      .replaceEndButton(R.layout.button_guide)
      .setShowcaseEventListener(new SimpleShowcaseEventListener() {
        @Override
        public void onShowcaseViewDidHide(ShowcaseView showcaseView) {
          mShowcaseView = null;
          ViewUtils.removeFromParent(showcaseView);
          Settings.putGuideQuickSearch(false);
          openDrawer(Gravity.RIGHT);
        }
      }).build();
}
origin: jamorham/xDrip-plus

  @Override
  public void run() {
    final ShowcaseView myShowcase = new ShowcaseView.Builder(activity)
        .setTarget(target)
        .setStyle(R.style.CustomShowcaseTheme2)
        .setContentTitle(title)
        .setContentText("\n" + message)
        .setShowcaseDrawer(new JamorhamShowcaseDrawer(getResources(), getTheme(), size1, size2))
        .singleShot(oneshot ? option : -1)
        .build();
    myShowcase.setBackgroundColor(Color.TRANSPARENT);
    myShowcase.show();
  }
}
origin: GrapeCity/DebugRank

  private void hideShowcase()
  {
    if (compileShowcaseView != null && compileShowcaseView.isShowing())
    {
      compileShowcaseView.hide();
    }
  }
}
origin: openmrs/openmrs-contrib-android-client

@Override
public void onShowcaseViewHide(ShowcaseView showcaseView) {
  showOverlayTutorialTwo();
  showcaseView.setVisibility(View.GONE);
}
origin: seven332/EhViewer

private void guideDownloadLabels() {
  MainActivity activity = getActivity2();
  if (null == activity || !Settings.getGuideDownloadLabels()) {
    return;
  }
  Display display = activity.getWindowManager().getDefaultDisplay();
  Point point = new Point();
  display.getSize(point);
  mShowcaseView = new ShowcaseView.Builder(activity)
      .withMaterialShowcase()
      .setStyle(R.style.Guide)
      .setTarget(new PointTarget(point.x, point.y / 3))
      .blockAllTouches()
      .setContentTitle(R.string.guide_download_labels_title)
      .setContentText(R.string.guide_download_labels_text)
      .replaceEndButton(R.layout.button_guide)
      .setShowcaseEventListener(new SimpleShowcaseEventListener() {
        @Override
        public void onShowcaseViewDidHide(ShowcaseView showcaseView) {
          mShowcaseView = null;
          ViewUtils.removeFromParent(showcaseView);
          Settings.puttGuideDownloadLabels(false);
          openDrawer(Gravity.RIGHT);
        }
      }).build();
}
origin: jamorham/xDrip-plus

  @Override
  public void run() {
    final ShowcaseView myShowcase = new ShowcaseView.Builder(activity)
        .setTarget(target)
        .setStyle(R.style.CustomShowcaseTheme2)
        .setContentTitle(title)
        .setContentText("\n" + message)
        .setShowcaseDrawer(new JamorhamShowcaseDrawer(getResources(), getTheme(), size1, size2, 255))
        .singleShot(oneshot ? option : -1)
        .build();
    myShowcase.setBackgroundColor(Color.TRANSPARENT);
    myShowcase.show();
  }
}
origin: openmrs/openmrs-contrib-android-client

@Override
public void onShowcaseViewHide(ShowcaseView showcaseView) {
  showOverlayTutorialThree();
  showcaseView.setVisibility(View.GONE);
}
origin: seven332/EhViewer

mShowcaseView = new ShowcaseView.Builder(activity)
    .withMaterialShowcase()
    .setStyle(R.style.Guide)
    .setTarget(new ViewTarget(((DownloadHolder) holder).thumb))
    .blockAllTouches()
    .setContentTitle(R.string.guide_download_thumb_title)
    .setContentText(R.string.guide_download_thumb_text)
    .replaceEndButton(R.layout.button_guide)
    .setShowcaseEventListener(new SimpleShowcaseEventListener() {
      @Override
      public void onShowcaseViewDidHide(ShowcaseView showcaseView) {
        guideDownloadLabels();
    }).build();
origin: NightscoutFoundation/xDrip

  @Override
  public void run() {
    if ((finaltarget != null) || (finalviewtarget != null)) {
      myShowcase = new ShowcaseView.Builder(finalactivity)
          .setTarget((finaltarget != null) ? finaltarget : finalviewtarget)
          .setStyle(R.style.CustomShowcaseTheme2)
          .setContentTitle(finaltitle)
          .setContentText("\n" + finalmessage)
          .setShowcaseDrawer(new JamorhamShowcaseDrawer(getResources(), getTheme(), 90, 14))
          .singleShot(oneshot ? option : -1)
          .build();
      myShowcase.setBackgroundColor(Color.TRANSPARENT);
      myShowcase.show();
    }
  }
}, 100);
origin: openmrs/openmrs-contrib-android-client

@Override
public void onShowcaseViewHide(ShowcaseView showcaseView) {
  showcaseView.setVisibility(View.GONE);
}
origin: NightscoutFoundation/xDrip

  @Override
  public void run() {
    final ShowcaseView myShowcase = new ShowcaseView.Builder(activity)
        .setTarget(target)
        .setStyle(R.style.CustomShowcaseTheme2)
        .setContentTitle(title)
        .setContentText("\n" + message)
        .setShowcaseDrawer(new JamorhamShowcaseDrawer(getResources(), getTheme(), size1, size2))
        .singleShot(oneshot ? option : -1)
        .build();
    myShowcase.setBackgroundColor(Color.TRANSPARENT);
    myShowcase.show();
  }
}
com.github.amlcurran.showcaseview

Most used classes

  • ShowcaseView$Builder
  • ViewTarget
  • ShowcaseView
  • PointTarget
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now