diff --git a/api/current.txt b/api/current.txt index 6f957523e3e14..1c03c23a0e01e 100644 --- a/api/current.txt +++ b/api/current.txt @@ -59839,7 +59839,7 @@ package android.widget { method public int getGravity(); method public float getHorizontalMargin(); method public float getVerticalMargin(); - method public android.view.View getView(); + method @Deprecated public android.view.View getView(); method public int getXOffset(); method public int getYOffset(); method public static android.widget.Toast makeText(android.content.Context, CharSequence, int); @@ -59850,7 +59850,7 @@ package android.widget { method public void setMargin(float, float); method public void setText(@StringRes int); method public void setText(CharSequence); - method public void setView(android.view.View); + method @Deprecated public void setView(android.view.View); method public void show(); field public static final int LENGTH_LONG = 1; // 0x1 field public static final int LENGTH_SHORT = 0; // 0x0 diff --git a/core/java/android/widget/Toast.java b/core/java/android/widget/Toast.java index d119b2e1992bb..4e705db06809c 100644 --- a/core/java/android/widget/Toast.java +++ b/core/java/android/widget/Toast.java @@ -66,6 +66,10 @@ import java.util.List; *
* The easiest way to use this class is to call one of the static methods that constructs * everything you need and returns a new Toast object. + *
+ * Note that + * Snackbars are + * preferred for brief messages while the app is in the foreground. * *