Friday, 19 February 2021

Alias for mipmap launcher icon

Is it possible to somehow make alias for mipmap icon? For example we have icon named icon_app but in our lib we use ic_launcher (as it should be). So for drawables you are able to create reference with values/drawables.xml

I tried with following approach:

<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <item name="ic_launcher" type="mipmap">@mipmap/icon_app</item>
</resources>

but it seems its not working i tried naming it both drawables.xml and mipmaps.xml, it seems it always tries to reference it from drawable instead of mipmap folder?



from Alias for mipmap launcher icon

No comments:

Post a Comment