summaryrefslogtreecommitdiff
path: root/core/java/android/widget/ImageView.java
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2016-07-21 16:25:13 -0400
committerAlan Viverette <alanv@google.com>2016-07-21 16:25:13 -0400
commit2b4e14cfcc8882cb4e6d82b3c36f6b57aab4937e (patch)
treefcc4e718ffe3838117a4a13af7881f27e41d8eaa /core/java/android/widget/ImageView.java
parent761d89ef4eac16e0619e4e1bd5201b04caccafde (diff)
Better docs for ImageView legacy tint
Bug: 30283225 Change-Id: Ic748c2cc341edf44aed0202aa55a57584bd928c1
Diffstat (limited to 'core/java/android/widget/ImageView.java')
-rw-r--r--core/java/android/widget/ImageView.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java
index 222a040d2b3c..184544d87aba 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)}.
+ * <p>
+ * <em>Note:</em> 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
*