Loading graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java +5 −5 Original line number Original line Diff line number Diff line Loading @@ -50,8 +50,8 @@ import java.util.List; * </p> * </p> * <p> * <p> * First is the XML file for {@link android.graphics.drawable.VectorDrawable}. * 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 * 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 * attributes, which requires they are uniquely named in this XML file. Groups * and paths without animations do not need names. * and paths without animations do not need names. * </p> * </p> * <li>Here is a simple VectorDrawable in this vectordrawable.xml file. * <li>Here is a simple VectorDrawable in this vectordrawable.xml file. Loading @@ -74,7 +74,7 @@ import java.util.List; * </vector> * </vector> * </pre></li> * </pre></li> * <p> * <p> * 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 * VectorDrawable, the target paths and groups to animate, the properties of the * path and group to animate and the animations defined as the ObjectAnimators * path and group to animate and the animations defined as the ObjectAnimators * or AnimatorSets. * or AnimatorSets. Loading @@ -93,7 +93,7 @@ import java.util.List; * </animated-vector> * </animated-vector> * </pre></li> * </pre></li> * <p> * <p> * 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. * or AnimatorSet. * To complete this example, here are the 2 animator files used in avd.xml: * To complete this example, here are the 2 animator files used in avd.xml: * rotation.xml and path_morph.xml. * rotation.xml and path_morph.xml. Loading @@ -110,7 +110,7 @@ import java.util.List; * the other. Note that the paths must be compatible for morphing. * the other. Note that the paths must be compatible for morphing. * In more details, the paths should have exact same length of commands , and * In more details, the paths should have exact same length of commands , and * exact same length of parameters for each commands. * 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. * <pre> * <pre> * <set xmlns:android="http://schemas.android.com/apk/res/android"> * <set xmlns:android="http://schemas.android.com/apk/res/android"> * <objectAnimator * <objectAnimator Loading graphics/java/android/graphics/drawable/VectorDrawable.java +7 −7 Original line number Original line Diff line number Diff line Loading @@ -56,21 +56,21 @@ import java.util.Stack; * <p/> * <p/> * <dt><code><vector></code></dt> * <dt><code><vector></code></dt> * <dl> * <dl> * <dd>Used to defined a vector drawable * <dd>Used to define a vector drawable * <dl> * <dl> * <dt><code>android:name</code></dt> * <dt><code>android:name</code></dt> * <dd>Defines the name of this vector drawable.</dd> * <dd>Defines the name of this vector drawable.</dd> * <dt><code>android:width</code></dt> * <dt><code>android:width</code></dt> * <dd>Used to defined the intrinsic width of the drawable. * <dd>Used to define the intrinsic width of the drawable. * This support all the dimension units, normally specified with dp.</dd> * This support all the dimension units, normally specified with dp.</dd> * <dt><code>android:height</code></dt> * <dt><code>android:height</code></dt> * <dd>Used to defined the intrinsic height the drawable. * <dd>Used to define the intrinsic height the drawable. * This support all the dimension units, normally specified with dp.</dd> * This support all the dimension units, normally specified with dp.</dd> * <dt><code>android:viewportWidth</code></dt> * <dt><code>android:viewportWidth</code></dt> * <dd>Used to defined the width of the viewport space. Viewport is basically * <dd>Used to define the width of the viewport space. Viewport is basically * the virtual canvas where the paths are drawn on.</dd> * the virtual canvas where the paths are drawn on.</dd> * <dt><code>android:viewportHeight</code></dt> * <dt><code>android:viewportHeight</code></dt> * <dd>Used to defined the height of the viewport space. Viewport is basically * <dd>Used to define the height of the viewport space. Viewport is basically * the virtual canvas where the paths are drawn on.</dd> * the virtual canvas where the paths are drawn on.</dd> * <dt><code>android:tint</code></dt> * <dt><code>android:tint</code></dt> * <dd>The color to apply to the drawable as a tint. By default, no tint is applied.</dd> * <dd>The color to apply to the drawable as a tint. By default, no tint is applied.</dd> Loading Loading @@ -120,7 +120,7 @@ import java.util.Stack; * <dt><code>android:name</code></dt> * <dt><code>android:name</code></dt> * <dd>Defines the name of the path.</dd> * <dd>Defines the name of the path.</dd> * <dt><code>android:pathData</code></dt> * <dt><code>android:pathData</code></dt> * <dd>Defines path string. This is using exactly same format as "d" attribute * <dd>Defines path data using exactly same format as "d" attribute * in the SVG's path data. This is defined in the viewport space.</dd> * in the SVG's path data. This is defined in the viewport space.</dd> * <dt><code>android:fillColor</code></dt> * <dt><code>android:fillColor</code></dt> * <dd>Defines the color to fill the path (none if not present).</dd> * <dd>Defines the color to fill the path (none if not present).</dd> Loading Loading @@ -156,7 +156,7 @@ import java.util.Stack; * <dt><code>android:name</code></dt> * <dt><code>android:name</code></dt> * <dd>Defines the name of the clip path.</dd> * <dd>Defines the name of the clip path.</dd> * <dt><code>android:pathData</code></dt> * <dt><code>android:pathData</code></dt> * <dd>Defines clip path string. This is using exactly same format as "d" attribute * <dd>Defines clip path using the same format as "d" attribute * in the SVG's path data.</dd> * in the SVG's path data.</dd> * </dl></dd> * </dl></dd> * </dl> * </dl> Loading Loading
graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java +5 −5 Original line number Original line Diff line number Diff line Loading @@ -50,8 +50,8 @@ import java.util.List; * </p> * </p> * <p> * <p> * First is the XML file for {@link android.graphics.drawable.VectorDrawable}. * 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 * 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 * attributes, which requires they are uniquely named in this XML file. Groups * and paths without animations do not need names. * and paths without animations do not need names. * </p> * </p> * <li>Here is a simple VectorDrawable in this vectordrawable.xml file. * <li>Here is a simple VectorDrawable in this vectordrawable.xml file. Loading @@ -74,7 +74,7 @@ import java.util.List; * </vector> * </vector> * </pre></li> * </pre></li> * <p> * <p> * 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 * VectorDrawable, the target paths and groups to animate, the properties of the * path and group to animate and the animations defined as the ObjectAnimators * path and group to animate and the animations defined as the ObjectAnimators * or AnimatorSets. * or AnimatorSets. Loading @@ -93,7 +93,7 @@ import java.util.List; * </animated-vector> * </animated-vector> * </pre></li> * </pre></li> * <p> * <p> * 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. * or AnimatorSet. * To complete this example, here are the 2 animator files used in avd.xml: * To complete this example, here are the 2 animator files used in avd.xml: * rotation.xml and path_morph.xml. * rotation.xml and path_morph.xml. Loading @@ -110,7 +110,7 @@ import java.util.List; * the other. Note that the paths must be compatible for morphing. * the other. Note that the paths must be compatible for morphing. * In more details, the paths should have exact same length of commands , and * In more details, the paths should have exact same length of commands , and * exact same length of parameters for each commands. * 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. * <pre> * <pre> * <set xmlns:android="http://schemas.android.com/apk/res/android"> * <set xmlns:android="http://schemas.android.com/apk/res/android"> * <objectAnimator * <objectAnimator Loading
graphics/java/android/graphics/drawable/VectorDrawable.java +7 −7 Original line number Original line Diff line number Diff line Loading @@ -56,21 +56,21 @@ import java.util.Stack; * <p/> * <p/> * <dt><code><vector></code></dt> * <dt><code><vector></code></dt> * <dl> * <dl> * <dd>Used to defined a vector drawable * <dd>Used to define a vector drawable * <dl> * <dl> * <dt><code>android:name</code></dt> * <dt><code>android:name</code></dt> * <dd>Defines the name of this vector drawable.</dd> * <dd>Defines the name of this vector drawable.</dd> * <dt><code>android:width</code></dt> * <dt><code>android:width</code></dt> * <dd>Used to defined the intrinsic width of the drawable. * <dd>Used to define the intrinsic width of the drawable. * This support all the dimension units, normally specified with dp.</dd> * This support all the dimension units, normally specified with dp.</dd> * <dt><code>android:height</code></dt> * <dt><code>android:height</code></dt> * <dd>Used to defined the intrinsic height the drawable. * <dd>Used to define the intrinsic height the drawable. * This support all the dimension units, normally specified with dp.</dd> * This support all the dimension units, normally specified with dp.</dd> * <dt><code>android:viewportWidth</code></dt> * <dt><code>android:viewportWidth</code></dt> * <dd>Used to defined the width of the viewport space. Viewport is basically * <dd>Used to define the width of the viewport space. Viewport is basically * the virtual canvas where the paths are drawn on.</dd> * the virtual canvas where the paths are drawn on.</dd> * <dt><code>android:viewportHeight</code></dt> * <dt><code>android:viewportHeight</code></dt> * <dd>Used to defined the height of the viewport space. Viewport is basically * <dd>Used to define the height of the viewport space. Viewport is basically * the virtual canvas where the paths are drawn on.</dd> * the virtual canvas where the paths are drawn on.</dd> * <dt><code>android:tint</code></dt> * <dt><code>android:tint</code></dt> * <dd>The color to apply to the drawable as a tint. By default, no tint is applied.</dd> * <dd>The color to apply to the drawable as a tint. By default, no tint is applied.</dd> Loading Loading @@ -120,7 +120,7 @@ import java.util.Stack; * <dt><code>android:name</code></dt> * <dt><code>android:name</code></dt> * <dd>Defines the name of the path.</dd> * <dd>Defines the name of the path.</dd> * <dt><code>android:pathData</code></dt> * <dt><code>android:pathData</code></dt> * <dd>Defines path string. This is using exactly same format as "d" attribute * <dd>Defines path data using exactly same format as "d" attribute * in the SVG's path data. This is defined in the viewport space.</dd> * in the SVG's path data. This is defined in the viewport space.</dd> * <dt><code>android:fillColor</code></dt> * <dt><code>android:fillColor</code></dt> * <dd>Defines the color to fill the path (none if not present).</dd> * <dd>Defines the color to fill the path (none if not present).</dd> Loading Loading @@ -156,7 +156,7 @@ import java.util.Stack; * <dt><code>android:name</code></dt> * <dt><code>android:name</code></dt> * <dd>Defines the name of the clip path.</dd> * <dd>Defines the name of the clip path.</dd> * <dt><code>android:pathData</code></dt> * <dt><code>android:pathData</code></dt> * <dd>Defines clip path string. This is using exactly same format as "d" attribute * <dd>Defines clip path using the same format as "d" attribute * in the SVG's path data.</dd> * in the SVG's path data.</dd> * </dl></dd> * </dl></dd> * </dl> * </dl> Loading