.setContentText(getString(R.string.oobe_main_your_name_content)) .setStyle(R.style.OOBEShowcaseTheme) .singleShot(OOBE.MAIN_PAGE) .replaceEndButton(new MyDiaryButton(this)) .setOnClickListener(showcaseViewOnClickListener)
.setContentText("\n" + "You can Undo a single change by Long-pressing the Undo button.") // always in english .setShowcaseDrawer(new JamorhamShowcaseDrawer(context.getResources(), context.getTheme(), 90, 14)) .singleShot(LanguageEditor.oneshot ? LanguageEditor.SHOWCASE_LANGUAGE_ELEMENT_UNDO : -1) .build(); .setContentText("\n" + "Symbols like ^ are used internally for advancing to a new line.\n\nPlease be careful to preserve these exactly and also respect other symbols you find like : which may affect the user interface if removed.") // always in english .setShowcaseDrawer(new JamorhamShowcaseDrawer(context.getResources(), context.getTheme(), 90, 50)) .singleShot(LanguageEditor.oneshot ? LanguageEditor.SHOWCASE_LANGUAGE_ELEMENT_NEWLINE : -1) .build();
.setContentText("\n" + "You can Undo a single change by Long-pressing the Undo button.") // always in english .setShowcaseDrawer(new JamorhamShowcaseDrawer(context.getResources(), context.getTheme(), 90, 14)) .singleShot(LanguageEditor.oneshot ? LanguageEditor.SHOWCASE_LANGUAGE_ELEMENT_UNDO : -1) .build(); .setContentText("\n" + "Symbols like ^ are used internally for advancing to a new line.\n\nPlease be careful to preserve these exactly and also respect other symbols you find like : which may affect the user interface if removed.") // always in english .setShowcaseDrawer(new JamorhamShowcaseDrawer(context.getResources(), context.getTheme(), 90, 50)) .singleShot(LanguageEditor.oneshot ? LanguageEditor.SHOWCASE_LANGUAGE_ELEMENT_NEWLINE : -1) .build();
.setContentText("\n" + message) .setShowcaseDrawer(new JamorhamShowcaseDrawer(getResources(), getTheme(), size1, size2)) .singleShot(oneshot ? option : -1) .build();
.setContentText("\n" + message) .setShowcaseDrawer(new JamorhamShowcaseDrawer(getResources(), getTheme(), size1, size2)) .singleShot(oneshot ? option : -1) .build();
.setContentText("\n" + message) .setShowcaseDrawer(new JamorhamShowcaseDrawer(activity.getResources(), activity.getTheme(), f_size1, f_size2, 255)) .singleShot(oneshot ? option : -1) .build(); .setContentText("\n" + message) .setShowcaseDrawer(new JamorhamShowcaseDrawer(activity.getResources(), activity.getTheme(), f_size1, f_size2, 255)) .singleShot(oneshot ? option : -1) .build();
.setContentText("\n" + message) .setShowcaseDrawer(new JamorhamShowcaseDrawer(activity.getResources(), activity.getTheme(), f_size1, f_size2, 255)) .singleShot(oneshot ? option : -1) .build(); .setContentText("\n" + message) .setShowcaseDrawer(new JamorhamShowcaseDrawer(activity.getResources(), activity.getTheme(), f_size1, f_size2, 255)) .singleShot(oneshot ? option : -1) .build();
private synchronized void showcasemenu(int option) { if ((myShowcase != null) && (myShowcase.isShowing())) return; if (ShotStateStore.hasShot(option)) return; try { ProfileViewTarget target = null; String title = ""; String message = ""; switch (option) { case SHOWCASE_PROFILE_SPLIT: target = new ProfileViewTarget(R.id.profile_recycler_view, this, 40, 40); title = getString(R.string.long_press_to_split_or_delete); message = getString(R.string.press_and_hold_on_the_background_to_split_or_delete); break; } if (target != null) { myShowcase = new ShowcaseView.Builder(this) .setTarget(target) .setStyle(R.style.CustomShowcaseTheme2) .setContentTitle(title) .setContentText("\n" + message) .setShowcaseDrawer(new JamorhamShowcaseDrawer(getResources(), getTheme(), 90, 14)) .singleShot(oneshot ? option : -1) .build(); myShowcase.setBackgroundColor(Color.TRANSPARENT); myShowcase.show(); } } catch (Exception e) { Log.e(TAG, "Exception in showcase: " + e.toString()); } }
private synchronized void showcasemenu(int option) { if ((myShowcase != null) && (myShowcase.isShowing())) return; if (ShotStateStore.hasShot(option)) return; try { ProfileViewTarget target = null; String title = ""; String message = ""; switch (option) { case SHOWCASE_PROFILE_SPLIT: target = new ProfileViewTarget(R.id.profile_recycler_view, this, 40, 40); title = getString(R.string.long_press_to_split_or_delete); message = getString(R.string.press_and_hold_on_the_background_to_split_or_delete); break; } if (target != null) { myShowcase = new ShowcaseView.Builder(this) .setTarget(target) .setStyle(R.style.CustomShowcaseTheme2) .setContentTitle(title) .setContentText("\n" + message) .setShowcaseDrawer(new JamorhamShowcaseDrawer(getResources(), getTheme(), 90, 14)) .singleShot(oneshot ? option : -1) .build(); myShowcase.setBackgroundColor(Color.TRANSPARENT); myShowcase.show(); } } catch (Exception e) { Log.e(TAG, "Exception in showcase: " + e.toString()); } }
@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);
@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(activity.getResources(), activity.getTheme(), size1, size2, 255)) .singleShot(oneshot ? option : -1) .build(); myShowcase.setBackgroundColor(Color.TRANSPARENT); myShowcase.setShouldCentreText(false); myShowcase.setBlocksTouches(true); myShowcase.show(); } }
@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(activity.getResources(), activity.getTheme(), size1, size2, 255)) .singleShot(oneshot ? option : -1) .build(); myShowcase.setBackgroundColor(Color.TRANSPARENT); myShowcase.setShouldCentreText(false); myShowcase.setBlocksTouches(true); myShowcase.show(); } }
@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);
private void descriptionHint() { Button button = new Button(this); button.setBackgroundColor(0); // transparent new ShowcaseView.Builder(this) .withNewStyleShowcase() .setStyle(R.style.ShowcaseViewStyle) .setTarget(new ViewTarget(R.id.description_glyphGame, this)) .setContentText(R.string.description_showView) .replaceEndButton(button) .hideOnTouchOutside() .singleShot(4242) // don't care about an ID, because this is the only ShowcaseView .build(); } }
@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(); } }
@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(); } }
@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(); } }
@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(); } }