I am trying to add support for the new Material UI in my apps, but I have encountered an annoying situation.
Before SDK 14 the black app menu needed white icons. Starting with SDK 14 the Holo light theme needed dark icons. Now when migrating to Material I need white icons once again. So basically I have a folder drawable-hdpi-v11, one drawable-hdpi-v14 and one drawable-hdpi-v21. drawable-hdpi-v11 and drawable-hdpi-v21 have the same images and of course Lint warns me that I have the same resources duplicated.
I have look into aliases Creating alias resources, but it doesn't seem to offer the functionality I need. Do you know any way to obtain the same result (white images for SDK<14 or SDK>=21, dark for SDK>=14 and SDK<21) without duplicating the resources?
0 comments:
Post a Comment