Loading core/res/res/values/attrs.xml +0 −5 Original line number Diff line number Diff line Loading @@ -4753,11 +4753,6 @@ <!-- ========================== --> <eat-comment /> <!-- Drawable used to draw Vector Drawables. --> <declare-styleable name="VectorDrawable"> <attr name="versionCode" /> </declare-styleable> <!-- Define the virtual size of the drawing surface paths will draw to. --> <declare-styleable name="VectorDrawableViewport"> <!-- The width of the canvas the drawing is on. --> Loading graphics/java/android/graphics/drawable/VectorDrawable.java +1 −16 Original line number Diff line number Diff line Loading @@ -50,8 +50,7 @@ import java.util.HashMap; * <p/> * <dl> * <dt><code><vector></code></dt> * <dd>The attribute <code>android:versionCode</code> defines the version of * VectorDrawable</dd> * <dd>Used to defined a vector drawable</dd> * <dt><code><size></code></dt> * <dd>Used to defined the intrinsic Width Height size of the drawable using * <code>android:width</code> and <code>android:height</code></dd> Loading Loading @@ -284,20 +283,6 @@ public class VectorDrawable extends Drawable { } else if (SHAPE_VIEWPORT.equals(tagName)) { pathRenderer.parseViewport(res, attrs); noViewportTag = false; } else if (SHAPE_VECTOR.equals(tagName)) { final TypedArray a = res.obtainAttributes(attrs, R.styleable.VectorDrawable); // Parsing the version information. // Right now, we only support version "1". // If the xml didn't specify the version number, the default // version is "1". final int versionCode = a.getInt(R.styleable.VectorDrawable_versionCode, 1); if (versionCode != 1) { throw new IllegalArgumentException( "So far, VectorDrawable only support version 1"); } a.recycle(); } } Loading Loading
core/res/res/values/attrs.xml +0 −5 Original line number Diff line number Diff line Loading @@ -4753,11 +4753,6 @@ <!-- ========================== --> <eat-comment /> <!-- Drawable used to draw Vector Drawables. --> <declare-styleable name="VectorDrawable"> <attr name="versionCode" /> </declare-styleable> <!-- Define the virtual size of the drawing surface paths will draw to. --> <declare-styleable name="VectorDrawableViewport"> <!-- The width of the canvas the drawing is on. --> Loading
graphics/java/android/graphics/drawable/VectorDrawable.java +1 −16 Original line number Diff line number Diff line Loading @@ -50,8 +50,7 @@ import java.util.HashMap; * <p/> * <dl> * <dt><code><vector></code></dt> * <dd>The attribute <code>android:versionCode</code> defines the version of * VectorDrawable</dd> * <dd>Used to defined a vector drawable</dd> * <dt><code><size></code></dt> * <dd>Used to defined the intrinsic Width Height size of the drawable using * <code>android:width</code> and <code>android:height</code></dd> Loading Loading @@ -284,20 +283,6 @@ public class VectorDrawable extends Drawable { } else if (SHAPE_VIEWPORT.equals(tagName)) { pathRenderer.parseViewport(res, attrs); noViewportTag = false; } else if (SHAPE_VECTOR.equals(tagName)) { final TypedArray a = res.obtainAttributes(attrs, R.styleable.VectorDrawable); // Parsing the version information. // Right now, we only support version "1". // If the xml didn't specify the version number, the default // version is "1". final int versionCode = a.getInt(R.styleable.VectorDrawable_versionCode, 1); if (versionCode != 1) { throw new IllegalArgumentException( "So far, VectorDrawable only support version 1"); } a.recycle(); } } Loading