diff --git a/docs/html/tools/help/vector-asset-studio.jd b/docs/html/tools/help/vector-asset-studio.jd index 58e53cc368dd1..491a699265c7a 100644 --- a/docs/html/tools/help/vector-asset-studio.jd +++ b/docs/html/tools/help/vector-asset-studio.jd @@ -34,7 +34,7 @@ page.tags=vector

Dependencies and Prerequisites

@@ -98,7 +98,8 @@ minimum API level that is lower, Vector Asset Studio adds the vector drawable fi project; also, at build time, Gradle creates Portable Network Graphic (PNG) raster images at various resolutions. Gradle generates the PNG densities specified by the Domain Specific Language (DSL) generatedDensities property -in a build.gradle file. To generate PNGs, the build system requires Gradle 1.4.0 or higher.

+in a build.gradle file. To generate PNGs, the build system requires Android +Plugin for Gradle 1.5.0 or higher.

For Android 5.0 (API level 21) and higher, Vector Asset Studio supports all of the {@link android.graphics.drawable.VectorDrawable} elements. For backward compatibility with Android 4.4 (API @@ -106,7 +107,7 @@ level 20) and lower, Vector Asset Studio supports the following XML elements:

-
+

<vector>

    @@ -119,8 +120,23 @@ level 20) and lower, Vector Asset Studio supports the following XML elements:

    +
    -
    +

    <group>

    +
      +
    • android:rotation
    • +
    • android:pivotX
    • +
    • android:pivotY
    • +
    • android:scaleX
    • +
    • android:scaleY
    • +
    • android:translateX
    • +
    • android:translateY
    • +
    + +
    + + +

    <path>

      @@ -130,6 +146,9 @@ level 20) and lower, Vector Asset Studio supports the following XML elements:

      android:strokeWidth
    • android:strokeAlpha
    • android:fillAlpha
    • +
    • android:strokeLineCap
    • +
    • android:strokeLineJoin
    • +
    • android:strokeMiterLimit
    @@ -163,12 +182,12 @@ android.graphics.drawable.VectorDrawable}. For more information, see

    Vector Asset Studio appears.

  • If a Need newer Android plugin for Gradle dialog appears instead, correct - your Gradle version as follows.
  • + your Gradle version as follows:
    1. Select File > Project Structure.
    2. In the Project Structure dialog, select Project.
    3. -
    4. In the Android Plugin Version field, change the Gradle version to - 1.4.0 or higher, and click OK.
    5. +
    6. In the Android Plugin Version field, change the Android Plugin for Gradle + version to 1.5.0 or higher, and click OK.
    7. Gradle syncs the project.

    8. In the Android view of the Project window, right-click the res folder and select @@ -480,7 +499,7 @@ changes.

      • Create one APK that includes both the vector images and the corresponding raster - representations. This is the easiest solution.
      • + representations. This solution is the simplest to implement.
      • Create separate APKs for different API levels. When you don’t include the corresponding raster images in the APK for Android 5.0 (API level 21) and higher, the APK can be much smaller in size. For more information, see Multiple APK Support.