I am importing a built-in Vector Asset in Android Studio and all of those are black in color. I am using the Vector asset on a button using android:drawableLeft
,but I want to change the color of the Vector asset from black to white.
I have tried the solution here:
Change fill color on vector asset in Android Studio
But using android:tint
doesn't work (because I think it might be for the button itself, not the button's drawable) and android:drawableTint
doesn't work either , it gives me a rendering error and an exception in the preview window itself.
Exception raised during rendering: android.graphics.drawable.VectorDrawable_Delegate.nCreateTreeFromCopy(JJ)J