List of usage examples for android.widget Toast LENGTH_LONG
int LENGTH_LONG
To view the source code for android.widget Toast LENGTH_LONG.
Click Source Link
From source file:Main.java
public static void showLongToast(Context context, String message) { showToast(context, message, Toast.LENGTH_LONG); }
From source file:Main.java
public static void toastMsg(String msg, Context con) { Toast toast = Toast.makeText(con.getApplicationContext(), msg, Toast.LENGTH_LONG); toast.setGravity(Gravity.TOP, 0, 80); toast.show();//from ww w . java 2 s.c o m }
From source file:Main.java
public static void createToast(Context ctx, String value) { Toast toast = Toast.makeText(ctx, value, Toast.LENGTH_LONG); toast.show(); }
From source file:Main.java
public static void showLongToast(Context context, String string) { Toast toast = Toast.makeText(context, string, Toast.LENGTH_LONG); toast.setGravity(Gravity.CENTER, 0, 0); toast.show();// w w w.ja v a 2s .co m }
From source file:Main.java
public static void centerToast(Context context, String message) { Toast toast = Toast.makeText(context, message, Toast.LENGTH_LONG); toast.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL, 0, 0); toast.show();// w w w .j a v a 2 s. co m }
From source file:Main.java
public static void mMakeTextToast(Activity activity, String str, boolean isLong) { if (isLong == true) { Toast.makeText(activity, str, Toast.LENGTH_LONG).show(); } else {// w w w. j a v a2s . c om Toast.makeText(activity, str, Toast.LENGTH_SHORT).show(); } }
From source file:Main.java
public static void showMessage(Context context, int messageId) { Toast.makeText(context, messageId, Toast.LENGTH_LONG).show(); }
From source file:Main.java
public static void Toast_make(Context context, String showcontent) { Toast.makeText(context, showcontent, Toast.LENGTH_LONG).show(); }
From source file:Main.java
/** * Show a long toast message.//from ww w. ja v a2 s . c o m */ public static void showLongToast(Context context, String message) { showToast(context, message, Toast.LENGTH_LONG); }
From source file:Main.java
public static void showToastLong(Context context, String message) { if (message != null && context != null) { Toast.makeText(context, message, Toast.LENGTH_LONG).show(); }/*from ww w . j a v a 2 s. c om*/ }