You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enabling the flag via AppCompatDelegate.setCompatVectorFromResourcesEnabled(true); makes the vectors work on <=4.4 but this opt-in feature causes memory issues
UPDATE: So this is what I think is happening. setImageResource() works on pre-lollipop because Studio generates PNGs for you. Since these resources are used at runtime, Studio maybe doesnt generate PNGs for them.
I got vectors to work by referencing the ImageView the same way you do for clickable views and then setting the imageView src programatically.
in ImageView we can normally set app:srcCompat="@drawable/ic_whatever" to set a vectorDrawable, instead of PNGs.
Can we have this support in the lib?
The text was updated successfully, but these errors were encountered: