public class ToastUtils
extends java.lang.Object
ToastUtils.quickToast
(this, "Toast message");
Constructor and Description |
---|
ToastUtils() |
Modifier and Type | Method and Description |
---|---|
static android.widget.Toast |
quickToast(android.content.Context context,
java.lang.String message)
Display a toast with the given message (Length will be Toast.LENGTH_SHORT -- approx 2 sec).
|
static android.widget.Toast |
quickToast(android.content.Context context,
java.lang.String message,
boolean longLength)
Display a toast with the given message.
|
public static android.widget.Toast quickToast(android.content.Context context, java.lang.String message)
context
- The current Context or Activity that this method is called frommessage
- Message to displaypublic static android.widget.Toast quickToast(android.content.Context context, java.lang.String message, boolean longLength)
context
- The current Context or Activity that this method is called frommessage
- Message to displaylongLength
- if true, will use Toast.LENGTH_LONG (approx 3.5 sec) instead of