java.lang.Object | |
↳ | com.neomades.app.Toast |
A toast is a view containing a quick little message for the user. The toast will appear as a floating view over the application. It cannot take the focus and it will disappear automatically after a few seconds.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static void |
showText(int textId, int duration)
Make a standard toast that just displays a text view with a text from the
resource file with a specific display time.
| ||||||||||
static void |
showText(String text, int duration)
Make a standard toast that just contains a text view with a specific display
time.
| ||||||||||
static void |
showText(int textId)
Make a standard toast that just displays a text view with a text from the
resource file.
| ||||||||||
static void |
showText(String text)
Make a standard toast that just contains a text view.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Make a standard toast that just displays a text view with a text from the resource file with a specific display time.
textId | the text resource id |
---|---|
duration | display time of the toast in milliseconds |
Make a standard toast that just contains a text view with a specific display time.
text | the text of the toast |
---|---|
duration | display time of the toast in milliseconds |
Make a standard toast that just displays a text view with a text from the resource file. The toast will be shown during 2 seconds.
textId | the text resource id |
---|
Make a standard toast that just contains a text view. The toast will be shown during 2 seconds.
text | the text of the toast |
---|