From bdb308a059b64ed7fec1fb46a379d2fce9974c8d Mon Sep 17 00:00:00 2001 From: Kevin Hufnagle Date: Fri, 23 Sep 2016 15:54:42 -0700 Subject: [PATCH] docs: Added min/max values and descriptions for alpha getter/setter in ImageView Bug: 12644483 Change-Id: I269d63b50412ecea5269acb99fc09c8110e404b4 --- core/java/android/widget/ImageView.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java index 222a040d2b3c..ddebaead67a8 100644 --- a/core/java/android/widget/ImageView.java +++ b/core/java/android/widget/ImageView.java @@ -1419,7 +1419,9 @@ public class ImageView extends View { /** * Returns the alpha that will be applied to the drawable of this ImageView. * - * @return the alpha that will be applied to the drawable of this ImageView + * @return the alpha value that will be applied to the drawable of this + * ImageView (between 0 and 255 inclusive, with 0 being transparent and + * 255 being opaque) * * @see #setImageAlpha(int) */ @@ -1430,7 +1432,8 @@ public class ImageView extends View { /** * Sets the alpha value that should be applied to the image. * - * @param alpha the alpha value that should be applied to the image + * @param alpha the alpha value that should be applied to the image (between + * 0 and 255 inclusive, with 0 being transparent and 255 being opaque) * * @see #getImageAlpha() */ -- 2.11.0