Created
February 19, 2016 22:58
-
-
Save shannah/76ac6e3e136fb19124f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Status status = StatusBar.getInstance().createStatus(); | |
status.setMessage("Hello world"); | |
status.show(); | |
//... Some time later you must clear the status | |
status.clear(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Status status = StatusBar.getInstance().createStatus(); | |
status.setMessage("Hello world"); | |
status.setShowProgressIndicator(true); | |
status.show(); | |
// ... Some time later you must clear it | |
status.clear(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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