Using now vector drawable for add icon, could therefore remove Android Icons dependency

This commit is contained in:
dankito 2020-10-10 03:28:04 +02:00
parent 8706778906
commit e29eead03a
3 changed files with 11 additions and 3 deletions

View File

@ -153,8 +153,6 @@ dependencies {
implementation "com.mikepenz:materialdrawer-nav:$materialDrawerVersion" implementation "com.mikepenz:materialdrawer-nav:$materialDrawerVersion"
implementation "com.mikepenz:materialdrawer-iconics:$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" kapt "com.google.dagger:dagger-compiler:$daggerVersion"

View File

@ -98,7 +98,7 @@ open class DrawerView(
.withName(R.string.add_account) .withName(R.string.add_account)
.withIdentifier(AddAccountId) .withIdentifier(AddAccountId)
.withLevel(BankLevel) .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) .withSelectable(false)
.withOnDrawerItemClickListener { _, _, _ -> itemClicked { presenter.showAddAccountDialog() } } .withOnDrawerItemClickListener { _, _, _ -> itemClicked { presenter.showAddAccountDialog() } }
, ,

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
</vector>