use of com.github.amlcurran.showcaseview.ShowcaseView.Builder in project k-9 by k9mail.
the class HighlightDialogFragment method highlightViewInBackground.
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();
}
Aggregations