Home | History | Annotate | Download | only in widget

Lines Matching defs:Toast

37  * A toast is a view containing a quick little message for the user.  The toast class
50 * everything you need and returns a new Toast object.
54 * <p>For information about creating Toast notifications, read the
55 * <a href="{@docRoot}guide/topics/ui/notifiers/toasts.html">Toast Notifications</a> developer
59 public class Toast {
60 static final String TAG = "Toast";
83 * Construct an empty Toast object. You must call {@link #setView} before you
89 public Toast(Context context) {
228 * Make a standard toast that just contains a text view.
237 public static Toast makeText(Context context, CharSequence text, int duration) {
238 Toast result = new Toast(context);
253 * Make a standard toast that just contains a text view with the text from a resource.
263 public static Toast makeText(Context context, int resId, int duration)
269 * Update the text in a Toast that was previously created using one of the makeText() methods.
270 * @param resId The new text for the Toast.
277 * Update the text in a Toast that was previously created using one of the makeText() methods.
278 * @param s The new text for the Toast.
282 throw new RuntimeException("This Toast was not created with Toast.makeText()");
286 throw new RuntimeException("This Toast was not created with Toast.makeText()");
338 // XXX This should be changed to use a Dialog, with a Theme.Toast
349 params.setTitle("Toast");