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 showToast(Context context, String msg) { showToast(context, msg, Toast.LENGTH_LONG); }
From source file:Main.java
public static void showToastlong(Context applicationContext, String string) { Toast toast = Toast.makeText(applicationContext, string, Toast.LENGTH_LONG); toast.show();/*from ww w . j a v a2 s . c o m*/ }
From source file:Main.java
public static void showToastLong(String message) { Toast toast = Toast.makeText(context, message, Toast.LENGTH_LONG); toast.show(); }
From source file:Main.java
public static void toast(String message, Context context) { Toast msg = Toast.makeText(context, message, Toast.LENGTH_LONG); msg.setGravity(Gravity.CENTER, msg.getXOffset() / 2, msg.getYOffset() / 2); msg.show();//from w ww .j a v a 2 s . c o m }
From source file:Main.java
public static void showMessage(Context context, int messageID) { if (context != null) { Toast.makeText(context, messageID, Toast.LENGTH_LONG).show(); }/*from w w w. j ava 2 s.co m*/ }
From source file:Main.java
public static void gerarToast(CharSequence message, Context applicarionContext) { int duration = Toast.LENGTH_LONG; Toast toast = Toast.makeText(applicarionContext, message, duration); toast.show();//from ww w . ja v a 2 s . c om }
From source file:Main.java
public static void showRetrytMsg(final Context context, String msg) { Toast.makeText(context, msg, Toast.LENGTH_LONG).show(); }
From source file:Main.java
public static void showToast(String message, Context context) { Toast.makeText(context, message, Toast.LENGTH_LONG).show(); }
From source file:Main.java
public static void longToast(Context context, String message) { Toast.makeText(context, message, Toast.LENGTH_LONG).show(); }
From source file:Main.java
public static void showLToast(Context context, String text) { Toast toast = Toast.makeText(context, text, Toast.LENGTH_LONG); toast.setGravity(Gravity.CENTER, 0, 0); toast.show();/* www . j a v a2 s. c om*/ }