summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2016-10-12 01:24:53 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-10-12 01:24:55 +0000
commitd35d3c98e4553d1c43a8c14dfcd0438ad483ebc4 (patch)
tree961e0a4a57fd544cc2d954fcb3aecdcdd8f13dcd
parent6c816c6707a5539a7a951617a8b621887c36eb38 (diff)
parentac21e56f634295ef28ad84002f0aff1517fd5e7f (diff)
Merge "Add note about density scaling behavior to setImageURI" into nyc-mr1-dev
-rw-r--r--core/java/android/widget/ImageView.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java
index d9cb269d8e6f..4d405c5a8627 100644
--- a/core/java/android/widget/ImageView.java
+++ b/core/java/android/widget/ImageView.java
@@ -467,6 +467,14 @@ public class ImageView extends View {
* {@link #setImageBitmap(android.graphics.Bitmap)} and
* {@link android.graphics.BitmapFactory} instead.</p>
*
+ * <p class="note">On devices running SDK < 24, this method will fail to
+ * apply correct density scaling to images loaded from
+ * {@link ContentResolver#SCHEME_CONTENT content} and
+ * {@link ContentResolver#SCHEME_FILE file} schemes. Applications running
+ * on devices with SDK >= 24 <strong>MUST</strong> specify the
+ * {@code targetSdkVersion} in their manifest as 24 or above for density
+ * scaling to be applied to images loaded from these schemes.</p>
+ *
* @param uri the Uri of an image, or {@code null} to clear the content
*/
@android.view.RemotableViewMethod(asyncImpl="setImageURIAsync")