From 0ea3aca4eb5c920fa43dab1ea027c322d23b9bda Mon Sep 17 00:00:00 2001 From: ztenghui Date: Thu, 26 Mar 2015 11:34:36 -0700 Subject: [PATCH] Polish the documentation for VectorDrawable and AnimatedVectorDrawable Change-Id: If6bedf84cb01971c55b5a99ad921303dad638b24 --- .../graphics/drawable/AnimatedVectorDrawable.java | 10 +++++----- .../android/graphics/drawable/VectorDrawable.java | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java b/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java index db489f6968539..a56e87ef9efdb 100644 --- a/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java +++ b/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java @@ -50,8 +50,8 @@ import java.util.List; *

*

* First is the XML file for {@link android.graphics.drawable.VectorDrawable}. - * Note that we allow the animation happen on the group's attributes and path's - * attributes, which requires they are uniquely named in this xml file. Groups + * Note that we allow the animation to happen on the group's attributes and path's + * attributes, which requires they are uniquely named in this XML file. Groups * and paths without animations do not need names. *

*
  • Here is a simple VectorDrawable in this vectordrawable.xml file. @@ -74,7 +74,7 @@ import java.util.List; * </vector> *
  • *

    - * Second is the AnimatedVectorDrawable's xml file, which defines the target + * Second is the AnimatedVectorDrawable's XML file, which defines the target * VectorDrawable, the target paths and groups to animate, the properties of the * path and group to animate and the animations defined as the ObjectAnimators * or AnimatorSets. @@ -93,7 +93,7 @@ import java.util.List; * </animated-vector> * *

    - * Last is the Animator xml file, which is the same as a normal ObjectAnimator + * Last is the Animator XML file, which is the same as a normal ObjectAnimator * or AnimatorSet. * To complete this example, here are the 2 animator files used in avd.xml: * rotation.xml and path_morph.xml. @@ -110,7 +110,7 @@ import java.util.List; * the other. Note that the paths must be compatible for morphing. * In more details, the paths should have exact same length of commands , and * exact same length of parameters for each commands. - * Note that the path string are better stored in strings.xml for reusing. + * Note that the path strings are better stored in strings.xml for reusing. *

      * <set xmlns:android="http://schemas.android.com/apk/res/android">
      *     <objectAnimator
    diff --git a/graphics/java/android/graphics/drawable/VectorDrawable.java b/graphics/java/android/graphics/drawable/VectorDrawable.java
    index 39a33ce05e872..c701f452be28c 100644
    --- a/graphics/java/android/graphics/drawable/VectorDrawable.java
    +++ b/graphics/java/android/graphics/drawable/VectorDrawable.java
    @@ -56,21 +56,21 @@ import java.util.Stack;
      * 

    *

    <vector>
    *
    - *
    Used to defined a vector drawable + *
    Used to define a vector drawable *
    *
    android:name
    *
    Defines the name of this vector drawable.
    *
    android:width
    - *
    Used to defined the intrinsic width of the drawable. + *
    Used to define the intrinsic width of the drawable. * This support all the dimension units, normally specified with dp.
    *
    android:height
    - *
    Used to defined the intrinsic height the drawable. + *
    Used to define the intrinsic height the drawable. * This support all the dimension units, normally specified with dp.
    *
    android:viewportWidth
    - *
    Used to defined the width of the viewport space. Viewport is basically + *
    Used to define the width of the viewport space. Viewport is basically * the virtual canvas where the paths are drawn on.
    *
    android:viewportHeight
    - *
    Used to defined the height of the viewport space. Viewport is basically + *
    Used to define the height of the viewport space. Viewport is basically * the virtual canvas where the paths are drawn on.
    *
    android:tint
    *
    The color to apply to the drawable as a tint. By default, no tint is applied.
    @@ -120,7 +120,7 @@ import java.util.Stack; *
    android:name
    *
    Defines the name of the path.
    *
    android:pathData
    - *
    Defines path string. This is using exactly same format as "d" attribute + *
    Defines path data using exactly same format as "d" attribute * in the SVG's path data. This is defined in the viewport space.
    *
    android:fillColor
    *
    Defines the color to fill the path (none if not present).
    @@ -156,7 +156,7 @@ import java.util.Stack; *
    android:name
    *
    Defines the name of the clip path.
    *
    android:pathData
    - *
    Defines clip path string. This is using exactly same format as "d" attribute + *
    Defines clip path using the same format as "d" attribute * in the SVG's path data.
    *
    *