summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Brad Fitzpatrick <bradfitz@android.com> 2010-08-27 16:18:24 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2010-08-27 16:18:24 -0700
commita222510af8e4da1548747d4367985298efe5198f (patch)
tree692f651f4cad8449d823a6107af8cdea157a8da9
parent54c4bf27437b8d7f8d2a494acd9de53d55696dea (diff)
parent2479097ecb899f1e193063e3ce126c721e13c455 (diff)
am 2479097e: am b94493fe: Merge "Document blocking behavior of ImageView setImageURI and setImageResource" into gingerbread
Merge commit '2479097ecb899f1e193063e3ce126c721e13c455' * commit '2479097ecb899f1e193063e3ce126c721e13c455': Document blocking behavior of ImageView setImageURI and setImageResource
-rw-r--r--core/java/android/widget/ImageView.java18
1 files changed, 15 insertions, 3 deletions
diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java
index c77416b34ba1..46f7db484b45 100644
--- a/core/java/android/widget/ImageView.java
+++ b/core/java/android/widget/ImageView.java
@@ -260,9 +260,15 @@ public class ImageView extends View {
/**
* Sets a drawable as the content of this ImageView.
- *
+ *
+ * <p class="note">This does Bitmap reading and decoding on the UI
+ * thread, which can cause a latency hiccup. If that's a concern,
+ * consider using {@link #setImageDrawable} or
+ * {@link #setImageBitmap} and
+ * {@link android.graphics.BitmapFactory} instead.</p>
+ *
* @param resId the resource identifier of the the drawable
- *
+ *
* @attr ref android.R.styleable#ImageView_src
*/
@android.view.RemotableViewMethod
@@ -279,7 +285,13 @@ public class ImageView extends View {
/**
* Sets the content of this ImageView to the specified Uri.
- *
+ *
+ * <p class="note">This does Bitmap reading and decoding on the UI
+ * thread, which can cause a latency hiccup. If that's a concern,
+ * consider using {@link #setImageDrawable} or
+ * {@link #setImageBitmap} and
+ * {@link android.graphics.BitmapFactory} instead.</p>
+ *
* @param uri The Uri of an image
*/
@android.view.RemotableViewMethod