summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2014-08-19 22:40:49 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-08-19 02:43:23 +0000
commit0c66436b862016455c4de08df7d2f9beecb80c75 (patch)
tree2dc16073ec2874b2f1690e9a9cd489780f5c44a9
parent83f75c88a0f0dce2e7d92348d5a498caf32cbdbd (diff)
parentd1d7389880225f126abcc2a268ab62cce97a92a5 (diff)
Merge "Update setShadowLayer doc" into lmp-dev
-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 1c76d9c63ada..652fe64c0a14 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);
}
/**