diff --git a/graphics/java/android/graphics/drawable/VectorDrawable.java b/graphics/java/android/graphics/drawable/VectorDrawable.java index 9ff69650294dd..9cb7a2bfbfa02 100644 --- a/graphics/java/android/graphics/drawable/VectorDrawable.java +++ b/graphics/java/android/graphics/drawable/VectorDrawable.java @@ -76,27 +76,36 @@ import dalvik.system.VMRuntime; *
*
android:name
*
Defines the name of this vector drawable.
+ *
Animatable : No.
*
android:width
*
Used to define the intrinsic width of the drawable. * This support all the dimension units, normally specified with dp.
+ *
Animatable : No.
*
android:height
*
Used to define the intrinsic height the drawable. * This support all the dimension units, normally specified with dp.
+ *
Animatable : No.
*
android:viewportWidth
*
Used to define the width of the viewport space. Viewport is basically * the virtual canvas where the paths are drawn on.
+ *
Animatable : No.
*
android:viewportHeight
*
Used to define the height of the viewport space. Viewport is basically * the virtual canvas where the paths are drawn on.
+ *
Animatable : No.
*
android:tint
*
The color to apply to the drawable as a tint. By default, no tint is applied.
+ *
Animatable : No.
*
android:tintMode
*
The Porter-Duff blending mode for the tint color. The default value is src_in.
+ *
Animatable : No.
*
android:autoMirrored
*
Indicates if the drawable needs to be mirrored when its layout direction is * RTL (right-to-left).
+ *
Animatable : No.
*
android:alpha
*
The opacity of this drawable.
+ *
Animatable : Yes.
*
* * @@ -108,24 +117,32 @@ import dalvik.system.VMRuntime; *
*
android:name
*
Defines the name of the group.
+ *
Animatable : No.
*
android:rotation
*
The degrees of rotation of the group.
+ *
Animatable : Yes.
*
android:pivotX
*
The X coordinate of the pivot for the scale and rotation of the group. * This is defined in the viewport space.
+ *
Animatable : Yes.
*
android:pivotY
*
The Y coordinate of the pivot for the scale and rotation of the group. * This is defined in the viewport space.
+ *
Animatable : Yes.
*
android:scaleX
*
The amount of scale on the X Coordinate.
+ *
Animatable : Yes.
*
android:scaleY
*
The amount of scale on the Y coordinate.
+ *
Animatable : Yes.
*
android:translateX
*
The amount of translation on the X coordinate. * This is defined in the viewport space.
+ *
Animatable : Yes.
*
android:translateY
*
The amount of translation on the Y coordinate. * This is defined in the viewport space.
+ *
Animatable : Yes.
*
* * @@ -135,45 +152,60 @@ import dalvik.system.VMRuntime; *
*
android:name
*
Defines the name of the path.
+ *
Animatable : No.
*
android:pathData
*
Defines path data using exactly same format as "d" attribute * in the SVG's path data. This is defined in the viewport space.
+ *
Animatable : Yes.
*
android:fillColor
*
Specifies the color used to fill the path. May be a color or, for SDK 24+, a color state list * or a gradient color (See {@link android.R.styleable#GradientColor} * and {@link android.R.styleable#GradientColorItem}). * If this property is animated, any value set by the animation will override the original value. * No path fill is drawn if this property is not specified.
+ *
Animatable : Yes.
*
android:strokeColor
*
Specifies the color used to draw the path outline. May be a color or, for SDK 24+, a color * state list or a gradient color (See {@link android.R.styleable#GradientColor} * and {@link android.R.styleable#GradientColorItem}). * If this property is animated, any value set by the animation will override the original value. * No path outline is drawn if this property is not specified.
+ *
Animatable : Yes.
*
android:strokeWidth
*
The width a path stroke.
+ *
Animatable : Yes.
*
android:strokeAlpha
*
The opacity of a path stroke.
+ *
Animatable : Yes.
*
android:fillAlpha
*
The opacity to fill the path with.
+ *
Animatable : Yes.
*
android:trimPathStart
*
The fraction of the path to trim from the start, in the range from 0 to 1.
+ *
Animatable : Yes.
*
android:trimPathEnd
*
The fraction of the path to trim from the end, in the range from 0 to 1.
+ *
Animatable : Yes.
*
android:trimPathOffset
*
Shift trim region (allows showed region to include the start and end), in the range * from 0 to 1.
+ *
Animatable : Yes.
*
android:strokeLineCap
*
Sets the linecap for a stroked path: butt, round, square.
+ *
Animatable : No.
*
android:strokeLineJoin
*
Sets the lineJoin for a stroked path: miter,round,bevel.
+ *
Animatable : No.
*
android:strokeMiterLimit
*
Sets the Miter limit for a stroked path.
+ *
Animatable : No.
*
android:fillType
*
Sets the fillType for a path. The types can be either "evenOdd" or "nonZero". They behave the * same as SVG's "fill-rule" properties. For more details, see * FillRuleProperty
+ *
Animatable : No.
*
+ * * * *
@@ -183,9 +215,11 @@ import dalvik.system.VMRuntime; *
*
android:name
*
Defines the name of the clip path.
+ *
Animatable : No.
*
android:pathData
*
Defines clip path using the same format as "d" attribute * in the SVG's path data.
+ *
Animatable : Yes.
*
*
*
  • Here is a simple VectorDrawable in this vectordrawable.xml file.