diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/HomeFragment.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/HomeFragment.kt index af4d3d5..e43d4fa 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/HomeFragment.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/HomeFragment.kt @@ -86,11 +86,11 @@ class HomeFragment : Fragment() { tvAccountName.text = userAccount.name if (userAccount.isLtm) { // Add the lightning bolt to the start of the account name if it is LTM - tvAccountName.setCompoundDrawablesRelativeWithIntrinsicBounds( - resources.getDrawable(R.drawable.ic_ltm_account, null), null, null, null + tvAccountName.setCompoundDrawablesWithIntrinsicBounds( + R.drawable.ic_ltm_account, 0, 0, 0 ) // Add some padding so that the lightning bolt icon is not too close to the account name text - tvAccountName.compoundDrawablePadding = 4 + tvAccountName.compoundDrawablePadding = 12 } } }) diff --git a/app/src/main/res/drawable/ic_ltm_account.xml b/app/src/main/res/drawable/ic_ltm_account.xml index f633181..149bc92 100644 --- a/app/src/main/res/drawable/ic_ltm_account.xml +++ b/app/src/main/res/drawable/ic_ltm_account.xml @@ -1,10 +1,10 @@ + android:width="12dp" + android:height="24dp" + android:viewportWidth="12.0" + android:viewportHeight="24.0"> \ No newline at end of file