drawable fix for < v24

This commit is contained in:
m2049r 2017-12-11 16:00:45 +01:00
parent a3721ae784
commit 4b7c181040
3 changed files with 29 additions and 20 deletions

View File

@ -8,8 +8,8 @@ android {
applicationId "com.m2049r.xmrwallet" applicationId "com.m2049r.xmrwallet"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 25 targetSdkVersion 25
versionCode 50 versionCode 51
versionName "1.2.10" versionName "1.2.11"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild { externalNativeBuild {
cmake { cmake {

View File

@ -0,0 +1,24 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="24dp"
android:height="24dp"
android:viewportHeight="74.0"
android:viewportWidth="74.0">
<path android:pathData="M21.83,29.97L16.65,35.15L33.3,51.8L70.3,14.8L65.12,9.62L33.3,41.44L21.83,29.97L21.83,29.97ZM66.6,37C66.6,53.28 53.28,66.6 37,66.6C20.72,66.6 7.4,53.28 7.4,37C7.4,20.72 20.72,7.4 37,7.4C39.96,7.4 42.55,7.77 45.14,8.51L51.06,2.59C46.62,1.11 41.81,0 37,0C16.65,0 0,16.65 0,37C0,57.35 16.65,74 37,74C57.35,74 74,57.35 74,37L66.6,37L66.6,37Z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="74.0"
android:endY="8.215650348E-15"
android:startX="2.7745556003999997E-31"
android:startY="74.0"
android:type="linear">
<item
android:color="#FFF0006B"
android:offset="0.0" />
<item
android:color="#FFFF6600"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
</vector>

View File

@ -1,24 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" <vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="24dp" android:width="24dp"
android:height="24dp" android:height="24dp"
android:viewportHeight="74.0" android:viewportHeight="74.0"
android:viewportWidth="74.0"> android:viewportWidth="74.0">
<path android:pathData="M21.83,29.97L16.65,35.15L33.3,51.8L70.3,14.8L65.12,9.62L33.3,41.44L21.83,29.97L21.83,29.97ZM66.6,37C66.6,53.28 53.28,66.6 37,66.6C20.72,66.6 7.4,53.28 7.4,37C7.4,20.72 20.72,7.4 37,7.4C39.96,7.4 42.55,7.77 45.14,8.51L51.06,2.59C46.62,1.11 41.81,0 37,0C16.65,0 0,16.65 0,37C0,57.35 16.65,74 37,74C57.35,74 74,57.35 74,37L66.6,37L66.6,37Z"> <path
<aapt:attr name="android:fillColor"> android:fillColor="@color/gradientPink"
<gradient android:pathData="M21.83,29.97L16.65,35.15L33.3,51.8L70.3,14.8L65.12,9.62L33.3,41.44L21.83,29.97L21.83,29.97ZM66.6,37C66.6,53.28 53.28,66.6 37,66.6C20.72,66.6 7.4,53.28 7.4,37C7.4,20.72 20.72,7.4 37,7.4C39.96,7.4 42.55,7.77 45.14,8.51L51.06,2.59C46.62,1.11 41.81,0 37,0C16.65,0 0,16.65 0,37C0,57.35 16.65,74 37,74C57.35,74 74,57.35 74,37L66.6,37L66.6,37Z" />
android:endX="74.0"
android:endY="8.215650348E-15"
android:startX="2.7745556003999997E-31"
android:startY="74.0"
android:type="linear">
<item
android:color="#FFF0006B"
android:offset="0.0" />
<item
android:color="#FFFF6600"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
</vector> </vector>