summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kevin Hufnagle <khufnagle@google.com> 2019-08-26 16:06:10 -0700
committer android-build-merger <android-build-merger@google.com> 2019-08-26 16:06:10 -0700
commit37f493ca26146b87c21143a40585efc428dc6131 (patch)
treeee8597f2b36045311209d02cb5222d10360294db
parent2443995723ab6af58370120a8c5e0c9c813343cc (diff)
parentf1e24288bbc37c8e1a23170a6ad1725b2f0cad5d (diff)
Merge "docs: Added content desc in ImageView example." into qt-dev am: eba5156095
am: f1e24288bb Change-Id: I8f43342b0114655a9a4467d8247ae238261ef9e0
-rw-r--r--core/java/android/widget/ImageView.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java
index be5d2211c670..d62b979a2ed3 100644
--- a/core/java/android/widget/ImageView.java
+++ b/core/java/android/widget/ImageView.java
@@ -62,8 +62,9 @@ import java.io.IOException;
/**
* Displays image resources, for example {@link android.graphics.Bitmap}
* or {@link android.graphics.drawable.Drawable} resources.
- * ImageView is also commonly used to {@link #setImageTintMode(PorterDuff.Mode)
- * apply tints to an image} and handle {@link #setScaleType(ScaleType) image scaling}.
+ * ImageView is also commonly used to
+ * <a href="#setImageTintMode(android.graphics.PorterDuff.Mode)">apply tints to an image</a> and
+ * handle <a href="#setScaleType(android.widget.ImageView.ScaleType)">image scaling</a>.
*
* <p>
* The following XML snippet is a common example of using an ImageView to display an image resource:
@@ -76,7 +77,8 @@ import java.io.IOException;
* &lt;ImageView
* android:layout_width="wrap_content"
* android:layout_height="wrap_content"
- * android:src="@mipmap/ic_launcher"
+ * android:src="@drawable/my_image"
+ * android:contentDescription="@string/my_image_description"
* /&gt;
* &lt;/LinearLayout&gt;
* </pre>