public class ToastUtil
extends java.lang.Object
构造器和说明 |
---|
ToastUtil() |
限定符和类型 | 方法和说明 |
---|---|
static void |
hideToast()
Hide the toast, if any.
|
static void |
show(android.content.Context context,
java.lang.CharSequence message) |
static void |
show(android.content.Context context,
java.lang.CharSequence message,
int duration)
自定义显示Toast时间
|
static void |
show(android.content.Context context,
int message,
int duration)
自定义显示Toast时间
|
static void |
showLong(android.content.Context context,
java.lang.CharSequence message)
长时间显示Toast
|
static void |
showLong(android.content.Context context,
int message)
长时间显示Toast
|
static void |
showShort(android.content.Context context,
java.lang.CharSequence message)
短时间显示Toast
|
static void |
showShort(android.content.Context context,
int message)
短时间显示Toast
|
public static void showShort(android.content.Context context, java.lang.CharSequence message)
context
- message
- public static void showShort(android.content.Context context, int message)
context
- message
- public static void showLong(android.content.Context context, java.lang.CharSequence message)
context
- message
- public static void showLong(android.content.Context context, int message)
context
- message
- public static void show(android.content.Context context, java.lang.CharSequence message, int duration)
context
- message
- duration
- public static void show(android.content.Context context, java.lang.CharSequence message)
public static void show(android.content.Context context, int message, int duration)
context
- message
- duration
- public static void hideToast()