Lines Matching defs:Toast
55 * everything you need and returns a new Toast object.
59 * <p>For information about creating Toast notifications, read the
60 * <a href="{@docRoot}guide/topics/ui/notifiers/toasts.html">Toast Notifications</a> developer
64 public class Toast {
65 static final String TAG = "Toast";
93 * Construct an empty Toast object. You must call {@link #setView} before you
99 public Toast(Context context) {
242 * Gets the LayoutParams for the Toast window.
259 public static Toast makeText(Context context, CharSequence text, @Duration int duration) {
260 Toast result = new Toast(context);
285 public static Toast makeText(Context context, @StringRes int resId, @Duration int duration)
291 * Update the text in a Toast that was previously created using one of the makeText() methods.
292 * @param resId The new text for the Toast.
299 * Update the text in a Toast that was previously created using one of the makeText() methods.
300 * @param s The new text for the Toast.
304 throw new RuntimeException("This Toast was not created with Toast.makeText()");
308 throw new RuntimeException("This Toast was not created with Toast.makeText()");
364 // XXX This should be changed to use a Dialog, with a Theme.Toast
372 params.setTitle("Toast");
426 Toast.LENGTH_LONG ? LONG_DURATION_TIMEOUT : SHORT_DURATION_TIMEOUT;