From e29eead03a4d139e1fb8405e003f5b8c3672bf18 Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 10 Oct 2020 03:28:04 +0200 Subject: [PATCH] Using now vector drawable for add icon, could therefore remove Android Icons dependency --- ui/BankingAndroidApp/build.gradle | 2 -- .../net/dankito/banking/ui/android/views/DrawerView.kt | 2 +- .../src/main/res/drawable/ic_baseline_add_24.xml | 10 ++++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 ui/BankingAndroidApp/src/main/res/drawable/ic_baseline_add_24.xml diff --git a/ui/BankingAndroidApp/build.gradle b/ui/BankingAndroidApp/build.gradle index 84c7552a..982c9d0d 100644 --- a/ui/BankingAndroidApp/build.gradle +++ b/ui/BankingAndroidApp/build.gradle @@ -153,8 +153,6 @@ dependencies { implementation "com.mikepenz:materialdrawer-nav:$materialDrawerVersion" implementation "com.mikepenz:materialdrawer-iconics:$materialDrawerVersion" - implementation "com.mikepenz:google-material-typeface:3.0.1.4.original-kotlin@aar" - implementation "com.mikepenz:fontawesome-typeface:5.9.0.0-kotlin@aar" kapt "com.google.dagger:dagger-compiler:$daggerVersion" diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/views/DrawerView.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/views/DrawerView.kt index be1ba43e..fcf35634 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/views/DrawerView.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/views/DrawerView.kt @@ -98,7 +98,7 @@ open class DrawerView( .withName(R.string.add_account) .withIdentifier(AddAccountId) .withLevel(BankLevel) - .withIcon(activity, GoogleMaterial.Icon.gmd_add, R.color.primaryTextColor_Dark) + .withIcon(getVectorDrawable(R.drawable.ic_baseline_add_24, R.color.primaryTextColor_Dark)) .withSelectable(false) .withOnDrawerItemClickListener { _, _, _ -> itemClicked { presenter.showAddAccountDialog() } } , diff --git a/ui/BankingAndroidApp/src/main/res/drawable/ic_baseline_add_24.xml b/ui/BankingAndroidApp/src/main/res/drawable/ic_baseline_add_24.xml new file mode 100644 index 00000000..eb232541 --- /dev/null +++ b/ui/BankingAndroidApp/src/main/res/drawable/ic_baseline_add_24.xml @@ -0,0 +1,10 @@ + + +