Skip to content

Instantly share code, notes, and snippets.

@mozerian
Created November 1, 2020 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mozerian/e0f79ef247d132620df58c6c04cddd01 to your computer and use it in GitHub Desktop.
Save mozerian/e0f79ef247d132620df58c6c04cddd01 to your computer and use it in GitHub Desktop.
public static MaterialTapTargetPrompt.Builder showPrompt (Activity activity, int id, String title, String subtitle)
{
MaterialTapTargetPrompt.Builder mttp = new MaterialTapTargetPrompt.Builder(activity);
mttp.setTarget(id)
.setPrimaryText(title)
.setSecondaryText(subtitle)
.setBackButtonDismissEnabled(true)
.show();
return mttp;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment