diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java index 222a040d2b3ca..184544d87aba8 100644 --- a/core/java/android/widget/ImageView.java +++ b/core/java/android/widget/ImageView.java @@ -545,6 +545,13 @@ public class ImageView extends View { * Subsequent calls to {@link #setImageDrawable(Drawable)} will automatically * mutate the drawable and apply the specified tint and tint mode using * {@link Drawable#setTintList(ColorStateList)}. + *

+ * Note: The default tint mode used by this setter is NOT + * consistent with the default tint mode used by the + * {@link android.R.styleable#ImageView_tint android:tint} + * attribute. If the {@code android:tint} attribute is specified, the + * default tint mode will be set to {@link PorterDuff.Mode#SRC_ATOP} to + * ensure consistency with earlier versions of the platform. * * @param tint the tint to apply, may be {@code null} to clear tint * diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index a70c4fd1f97f5..3f889f976d64b 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -3790,7 +3790,10 @@ i - +