summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2014-08-19 14:41:31 -0700
committerChris Craik <ccraik@google.com>2014-08-19 22:40:41 +0000
commitd1d7389880225f126abcc2a268ab62cce97a92a5 (patch)
tree3c380fb5bad4f1d4eb7ab37a0c31e2902da52702 /graphics
parent75d6bc1aee918da1512b41639d3f7d17ebdc9cb6 (diff)
downloadframeworks_base-d1d7389880225f126abcc2a268ab62cce97a92a5.zip
frameworks_base-d1d7389880225f126abcc2a268ab62cce97a92a5.tar.gz
frameworks_base-d1d7389880225f126abcc2a268ab62cce97a92a5.tar.bz2
Update setShadowLayer doc
bug:17134528 Change-Id: I436bb0163b18d0b88954bf9dac16e51d14a533eb
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/Paint.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/graphics/java/android/graphics/Paint.java b/graphics/java/android/graphics/Paint.java
index 1c76d9c..652fe64 100644
--- a/graphics/java/android/graphics/Paint.java
+++ b/graphics/java/android/graphics/Paint.java
@@ -1109,9 +1109,16 @@ public class Paint {
* This draws a shadow layer below the main layer, with the specified
* offset and color, and blur radius. If radius is 0, then the shadow
* layer is removed.
- */
- public void setShadowLayer(float radius, float dx, float dy, int color) {
- native_setShadowLayer(mNativePaint, radius, dx, dy, color);
+ * <p>
+ * Can be used to create a blurred shadow underneath text. Support for use
+ * with other drawing operations is constrained to the software rendering
+ * pipeline.
+ * <p>
+ * The alpha of the shadow will be the paint's alpha if the shadow color is
+ * opaque, or the alpha from the shadow color if not.
+ */
+ public void setShadowLayer(float radius, float dx, float dy, int shadowColor) {
+ native_setShadowLayer(mNativePaint, radius, dx, dy, shadowColor);
}
/**