Skip to content

Instantly share code, notes, and snippets.

@sunwicked
Created August 11, 2013 11:53
Show Gist options
  • Save sunwicked/6204527 to your computer and use it in GitHub Desktop.
Save sunwicked/6204527 to your computer and use it in GitHub Desktop.
Re-position the location of a Toast on-screen
Toast t = Toast.makeText(this, "Top left!", Toast.LENGTH_SHORT);
t.setGravity(Gravity.TOP | Gravity.LEFT, 0, 0);
t.show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment