List of usage examples for android.widget Toast LENGTH_SHORT
int LENGTH_SHORT
To view the source code for android.widget Toast LENGTH_SHORT.
Click Source Link
From source file:Main.java
public static void showShortMessage(Context mContext, CharSequence text) { if (text != null && text.length() > 0) { Toast.makeText(mContext, text, Toast.LENGTH_SHORT).show(); }//from w w w .ja v a 2 s . c o m }
From source file:Main.java
public static void toast(Context context, String msg) { if (isShow) { Toast.makeText(context, msg, Toast.LENGTH_SHORT).show(); } }
From source file:Main.java
public static void showToast(Context context, String message) { if (null == context) { return;// w w w . j a va 2 s . com } Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); }
From source file:Main.java
public static void initToast(Context context) { mToast = Toast.makeText(context, "", Toast.LENGTH_SHORT); }
From source file:Main.java
/** * Displays the message as a Toast on the UI *///w w w . j ava 2 s .c o m public static void displayToast(Context context, String msg) { Toast.makeText(context, msg, Toast.LENGTH_SHORT).show(); }
From source file:Main.java
public static void httpSendSuccessReturn3(Context context, String messageForUser) { if (null != messageForUser) { Toast.makeText(context, messageForUser, Toast.LENGTH_SHORT).show(); }/* w w w.ja va 2 s. co m*/ }
From source file:Main.java
public static void showToast(String message, Context context) { CharSequence text = message;/*from w w w.j av a2 s . co m*/ int duration = Toast.LENGTH_SHORT; Toast toast = Toast.makeText(context, text, duration); toast.show(); }
From source file:Main.java
public static void showToast(Context context, String str) { if (toast == null) { toast = Toast.makeText(context, str, Toast.LENGTH_SHORT); }/*from w ww.java2s. com*/ toast.setText(str); toast.show(); }
From source file:Main.java
public static void toastMessage(Context context, int res) { Toast.makeText(context, res, Toast.LENGTH_SHORT).show(); }
From source file:Main.java
public static void showToast(Context context, String text) { if (mToast == null) { mToast = Toast.makeText(context, "", Toast.LENGTH_SHORT); }/* w w w .ja va2 s .c o m*/ mToast.setText(text); mToast.show(); }