List of usage examples for android.widget Toast makeText
public static Toast makeText(Context context, @StringRes int resId, @Duration int duration) throws Resources.NotFoundException
From source file:Main.java
public static void showToast(String str) { Toast.makeText(contexts, str, Toast.LENGTH_SHORT).show(); }
From source file:Main.java
public static void ToalsMessage(Context context, String message, int type) { Toast.makeText(context, message, type); }
From source file:Main.java
public static void showAlertMeg(Context context, String title, String msg) { Toast.makeText(context, msg, Toast.LENGTH_SHORT).show(); }
From source file:Main.java
public static void makeLongToast(Context context, CharSequence text) { Toast.makeText(context, text, Toast.LENGTH_LONG).show(); }
From source file:Main.java
public static void makeTextAndShow(Context context, String text) { Toast.makeText(context, text, Toast.LENGTH_SHORT).show(); }
From source file:Main.java
public static void toastShort(Activity activity, String message) { Toast toast = Toast.makeText(activity, message, Toast.LENGTH_SHORT); toast.show(); }
From source file:Main.java
public static Toast getPublicToast(String string, Context context) { return Toast.makeText(context, string, Toast.LENGTH_SHORT); }
From source file:Main.java
public static void showToast(Context context, String msg) { Toast toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT); //toast.setGravity(Gravity.TOP|Gravity.LEFT, 0, 10); toast.show();/* w w w. j a va 2 s .c om*/ }
From source file:Main.java
public static void mostrarMensagemRapida(Context context, String mensagem) { Toast.makeText(context, mensagem, Toast.LENGTH_SHORT).show(); }
From source file:Main.java
public static void showToast(Context context, String message, int duration) { Toast.makeText(context, message, duration).show(); ; }