OSDN Git Service

docs: Added min/max values and descriptions for alpha getter/setter
authorKevin Hufnagle <khufnagle@google.com>
Fri, 23 Sep 2016 22:54:42 +0000 (15:54 -0700)
committerKevin Hufnagle <khufnagle@google.com>
Fri, 23 Sep 2016 22:54:42 +0000 (15:54 -0700)
in ImageView

Bug: 12644483
Change-Id: I269d63b50412ecea5269acb99fc09c8110e404b4

core/java/android/widget/ImageView.java

index 222a040..ddebaea 100644 (file)
@@ -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()
      */