summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-08-27 12:23:39 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-08-27 12:23:39 -0700
commit2479097ecb899f1e193063e3ce126c721e13c455 (patch)
tree6db0e4efab2651fe8914d9ddecf78931960a7da4 /core/java/android/widget
parentd322d16323176ddd5fef3383798176f64d0078c8 (diff)
parentb94493feaf8b7a620a25c23c1f131a999ed61293 (diff)
downloadframeworks_base-2479097ecb899f1e193063e3ce126c721e13c455.zip
frameworks_base-2479097ecb899f1e193063e3ce126c721e13c455.tar.gz
frameworks_base-2479097ecb899f1e193063e3ce126c721e13c455.tar.bz2
am b94493fe: Merge "Document blocking behavior of ImageView setImageURI and setImageResource" into gingerbread
Merge commit 'b94493feaf8b7a620a25c23c1f131a999ed61293' into gingerbread-plus-aosp * commit 'b94493feaf8b7a620a25c23c1f131a999ed61293': Document blocking behavior of ImageView setImageURI and setImageResource
Diffstat (limited to 'core/java/android/widget')
-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 c77416b..46f7db4 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