From c3fdffa98136bdad1fee9c77598d541d792920e1 Mon Sep 17 00:00:00 2001 From: ztenghui Date: Mon, 29 Sep 2014 13:19:00 -0700 Subject: [PATCH] Correct the documentation for VectorDrawable We missed the alpha for the vector drawable root level in the documentation. And the animation target can be vector drawable itself for the alpha value, which is more than path and group object. b/17696183 Change-Id: Ic9d441fbdf411dad92718ae5adbc6655fe708453 --- core/res/res/values/attrs.xml | 6 +++--- graphics/java/android/graphics/drawable/VectorDrawable.java | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 8ea181407c25e..719adcacfb14e 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -5365,11 +5365,11 @@ - + - + - + diff --git a/graphics/java/android/graphics/drawable/VectorDrawable.java b/graphics/java/android/graphics/drawable/VectorDrawable.java index 80148373d3206..4c83e55687256 100644 --- a/graphics/java/android/graphics/drawable/VectorDrawable.java +++ b/graphics/java/android/graphics/drawable/VectorDrawable.java @@ -57,6 +57,8 @@ import java.util.Stack; *
*
Used to defined a vector drawable *
+ *
android:name
+ *
Defines the name of this vector drawable.
*
android:width
*
Used to defined the intrinsic width of the drawable. * This support all the dimension units, normally specified with dp.
@@ -76,6 +78,8 @@ import java.util.Stack; *
android:autoMirrored
*
Indicates if the drawable needs to be mirrored when its layout direction is * RTL (right-to-left).
+ *
android:alpha
+ *
The opacity of this drawable.
*
*
* @@ -85,6 +89,8 @@ import java.util.Stack; * The transformations are defined in the same coordinates as the viewport. * And the transformations are applied in the order of scale, rotate then translate. *
+ *
android:name
+ *
Defines the name of the group.
*
android:rotation
*
The degrees of rotation of the group.
*
android:pivotX