]> git.ktnx.net Git - mobile-ledger.git/commitdiff
use the proper way to load vector drawable in ImageView
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 15 May 2020 19:58:47 +0000 (22:58 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 16 May 2020 10:43:06 +0000 (13:43 +0300)
app/build.gradle
app/src/main/res/layout/profile_detail.xml

index 36dbecf31b2daf4f1f2bc62a2da8b8ab9575721b..732856c768c92700c01971cf4d07b06a31aeb92a 100644 (file)
@@ -23,6 +23,7 @@ android {
         applicationId "net.ktnx.mobileledger"
         minSdkVersion 22
         targetSdkVersion 28
         applicationId "net.ktnx.mobileledger"
         minSdkVersion 22
         targetSdkVersion 28
+        vectorDrawables.useSupportLibrary true
         versionCode 33
         versionName '0.13.1'
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
         versionCode 33
         versionName '0.13.1'
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
index cf23f9f3b1f6cfede9befd0bdf55c42243c4a27a..0a0463bed302651afd735f222e39e4e1151a7b9a 100644 (file)
                 android:layout_weight="1"
                 android:background="?colorPrimary"
                 android:contentDescription="@string/btn_color_picker_button"
                 android:layout_weight="1"
                 android:background="?colorPrimary"
                 android:contentDescription="@string/btn_color_picker_button"
-                android:src="@drawable/ic_palette_black_24dp"
+                app:srcCompat="@drawable/ic_palette_black_24dp"
                 android:tint="?drawer_background" />
 
         </LinearLayout>
                 android:tint="?drawer_background" />
 
         </LinearLayout>