Android Studio 1.4: Drawable-v21 Ignored When Using "file/new/vector Asset" Option
This is my first SO question so please don't eat me alive... Here's my problem: I've imported few icons via Android Studio 1.4's new option - New/Vector Asset. As you know it lets
Solution 1:
Ok, I kinda found the solution.
In folder res/drawable
I left only the vectors that can and should be automatically converted to pngs - so only plain normal icons without ripple. Then in drawable_v21
I've put the ripple version of drawable and renamed it - ic_settings_ripple.xml
. I've created a new folder layout-v21
and duplicated my layout, but instead of ic_settings.xml
i used ic_settings_ripple.xml
.
So now under API<21 the app uses ripple-less png generated by gradle, and at API>=21 there is an alternative layout, that uses ripple version of one of the icon.
Post a Comment for "Android Studio 1.4: Drawable-v21 Ignored When Using "file/new/vector Asset" Option"