Hi, are adaptive icons already supported? If not, what is the best way to use them?
Not yet (outside of manual adjustments to the android template)
I’d be interested in suggestions
I did this by creating a custom
AndroidManifest.xml. The icon assets were added as templates in the
project.xml, too. I did not manage to add a complete directory here, so i had to add all files like
<template path="res/drawable/ic_launcher_background.xml" rename="app/src/main/res/drawable/ic_launcher_background.xml"/> <template path="res/drawable-v24/ic_launcher_foreground.xml" rename="app/src/main/res/drawable-v24/ic_launcher_foreground.xml" /> <template path="res/mipmap-anydpi-v26/ic_launcher.xml" rename="app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml" />
Is there a way to add a directory?
The icon data was created in Android Studio.
I think you can add
<template path="templates" /> and define “templates/android/template” and that directory will be copied
Did you have any success when try to adding the whole template directory ?
In my project.xml I have
<template path="templates" if ="android" /> , but nothing is copied in
I also add
android:icon="@mipmap/ic_launcher" in AndroidManifest.xml
This is my project structure :
Hi, it worked fine, the directory needs to be like that:
Thank you. It works !!!