API REVIEW: VectorDrawable

- Merge <size> and <viewport> attributes all in to top-level <vector> tag
- Updata android:stroke to be android:strokeColor, likewise android:fill
- Instead of android:clipToPath, make this a different clip-path tag.

bug:16488254

Change-Id: I01b1fc053777f5b1ca9b2d8f3d81d1229e686570
This commit is contained in:
ztenghui 2014-07-23 16:30:23 -07:00
parent 152f5c9059
commit 2626dc3ece
4 changed files with 20 additions and 20 deletions

View file

@ -14,13 +14,13 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android">
<size android:width="24dp" android:height="24dp" />
<viewport android:viewportWidth="24" android:viewportHeight="24" />
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp" android:height="24dp"
android:viewportWidth="24" android:viewportHeight="24" >
<path
android:fill="@android:color/transparent"
android:fillColor="@android:color/transparent"
android:pathData="M9,6 L15,12 L9,18"
android:stroke="?attr/setup_wizard_navbar_text_color"
android:strokeColor="?attr/setup_wizard_navbar_text_color"
android:strokeWidth="2.5"
android:strokeLineCap="square"
/>

View file

@ -14,13 +14,13 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android">
<size android:width="24dp" android:height="24dp" />
<viewport android:viewportWidth="24" android:viewportHeight="24" />
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp" android:height="24dp"
android:viewportWidth="24" android:viewportHeight="24" >
<path
android:fill="@android:color/transparent"
android:fillColor="@android:color/transparent"
android:pathData="M15,6 L9,12 L15,18"
android:stroke="?attr/setup_wizard_navbar_text_color"
android:strokeColor="?attr/setup_wizard_navbar_text_color"
android:strokeWidth="3"
android:strokeLineCap="square"
/>

View file

@ -14,13 +14,13 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android">
<size android:width="24dp" android:height="24dp" />
<viewport android:viewportWidth="24" android:viewportHeight="24" />
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp" android:height="24dp"
android:viewportWidth="24" android:viewportHeight="24" >
<path
android:fill="@android:color/transparent"
android:fillColor="@android:color/transparent"
android:pathData="M15,6 L9,12 L15,18"
android:stroke="?attr/setup_wizard_navbar_text_color"
android:strokeColor="?attr/setup_wizard_navbar_text_color"
android:strokeWidth="2.5"
android:strokeLineCap="square"
/>

View file

@ -14,13 +14,13 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android">
<size android:width="24dp" android:height="24dp" />
<viewport android:viewportWidth="24" android:viewportHeight="24" />
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp" android:height="24dp"
android:viewportWidth="24" android:viewportHeight="24" >
<path
android:fill="@android:color/transparent"
android:fillColor="@android:color/transparent"
android:pathData="M9,6 L15,12 L9,18"
android:stroke="?attr/setup_wizard_navbar_text_color"
android:strokeColor="?attr/setup_wizard_navbar_text_color"
android:strokeWidth="3"
android:strokeLineCap="square"
/>