From 2a4ec6fcc1ada142f38917ca26929c02a2268090 Mon Sep 17 00:00:00 2001 From: Yuri Lukyanov Date: Tue, 12 Dec 2017 10:38:14 +0400 Subject: [PATCH] Rename attrs tint & tintMode This is to avoid conflicts with the last appcompat-v7 library --- .../lib/graphics/drawable/VectorDrawable.java | 8 ++++---- lib/src/main/res/values/attrs.xml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/src/main/java/com/bettervectordrawable/lib/graphics/drawable/VectorDrawable.java b/lib/src/main/java/com/bettervectordrawable/lib/graphics/drawable/VectorDrawable.java index 3c4efa3..f485a04 100644 --- a/lib/src/main/java/com/bettervectordrawable/lib/graphics/drawable/VectorDrawable.java +++ b/lib/src/main/java/com/bettervectordrawable/lib/graphics/drawable/VectorDrawable.java @@ -84,9 +84,9 @@ *
android:viewportHeight
*
Used to define the height of the viewport space. Viewport is basically * the virtual canvas where the paths are drawn on.
- *
android:tint
+ *
android:tintEx
*
The color to apply to the drawable as a tint. By default, no tint is applied.
- *
android:tintMode
+ *
android:tintModeEx
*
The Porter-Duff blending mode for the tint color. The default value is src_in.
*
android:autoMirrored
*
Indicates if the drawable needs to be mirrored when its layout direction is @@ -538,11 +538,11 @@ private void updateStateFromTypedArray(TypedArray a) throws XmlPullParserExcepti state.mChangingConfigurations |= TypedArrayExtension.getChangingConfigurations(a); // Extract the theme attributes, if any. state.mThemeAttrs = extractThemeAttrs(a); - final int tintMode = a.getInt(R.styleable.VectorDrawable_tintMode, -1); + final int tintMode = a.getInt(R.styleable.VectorDrawable_tintModeEx, -1); if (tintMode != -1) { state.mTintMode = parseTintMode(tintMode, Mode.SRC_IN); } - final ColorStateList tint = a.getColorStateList(R.styleable.VectorDrawable_tint); + final ColorStateList tint = a.getColorStateList(R.styleable.VectorDrawable_tintEx); if (tint != null) { state.mTint = tint; } diff --git a/lib/src/main/res/values/attrs.xml b/lib/src/main/res/values/attrs.xml index 1e5faac..804142d 100644 --- a/lib/src/main/res/values/attrs.xml +++ b/lib/src/main/res/values/attrs.xml @@ -17,10 +17,10 @@ - + - + @@ -57,10 +57,10 @@ - + - +