Skip to content

Instantly share code, notes, and snippets.

@shannah
Created February 19, 2016 22:58
Show Gist options
  • Save shannah/76ac6e3e136fb19124f2 to your computer and use it in GitHub Desktop.
Save shannah/76ac6e3e136fb19124f2 to your computer and use it in GitHub Desktop.
Status status = StatusBar.getInstance().createStatus();
status.setMessage("Hello world");
status.show();
//... Some time later you must clear the status
status.clear();
Status status = StatusBar.getInstance().createStatus();
status.setMessage("Hello world");
status.setShowProgressIndicator(true);
status.show();
// ... Some time later you must clear it
status.clear();
Status status = StatusBar.getInstance().createStatus();
status.setMessage("Hello world");
status.setExpires(3000); // only show the status for 3 seconds, then have it automatically clear
status.show();
Status status = StatusBar.getInstance().createStatus();
status.setMessage("Hello world");
status.showDelayed(300); // Wait 300 ms to show the status
// ... Some time later, clear the status... this may be before it shows at all
status.clear();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment