Изображение Android Asset Studio - какие изображения актуальны
Студия ресурсов Android Image предоставляет простой способ создания значков приложений, которые выглядят частично - занимая всю доступную область, с настраиваемым фоном и т. Д. Я использовал его для создания значков приложений, которые затем использую в своем гибридном приложении Cordova/Android, как описано в этой теме. Вкратце, эта тема предлагает удалить старый стиль
<icon src="res/android/?dpi.png" density="?dpi" />
узлы в config.xml
файл для приложения Cordova и замена их на
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge"
target="/manifest/application">
<application android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round" />
</edit-config>
<resource-file src="res/android/drawable/ic_launcher_background.xml"
target="app/src/main/res/drawable/ic_launcher_background.xml" />
<resource-file src="res/android/mipmap-hdpi/ic_launcher.png"
target="app/src/main/res/mipmap-hdpi/ic_launcher.png" />
<resource-file src="res/android/mipmap-hdpi/ic_launcher_round.png"
target="app/src/main/res/mipmap-hdpi/ic_launcher_round.png" />
<resource-file src="res/android/mipmap-mdpi/ic_launcher.png"
target="app/src/main/res/mipmap-mdpi/ic_launcher.png" />
<resource-file src="res/android/mipmap-mdpi/ic_launcher_round.png"
target="app/src/main/res/mipmap-mdpi/ic_launcher_round.png" />
<resource-file src="res/android/mipmap-xhdpi/ic_launcher.png"
target="app/src/main/res/mipmap-xhdpi/ic_launcher.png" />
<resource-file src="res/android/mipmap-xhdpi/ic_launcher_round.png"
target="app/src/main/res/mipmap-xhdpi/ic_launcher_round.png" />
<resource-file src="res/android/mipmap-xxhdpi/ic_launcher.png"
target="app/src/main/res/mipmap-xxhdpi/ic_launcher.png" />
<resource-file src="res/android/mipmap-xxhdpi/ic_launcher_round.png"
target="app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png" />
<resource-file src="res/android/mipmap-xxxhdpi/ic_launcher.png"
target="app/src/main/res/mipmap-xxxhdpi/ic_launcher.png" />
<resource-file src="res/android/mipmap-xxxhdpi/ic_launcher_round.png"
target="app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png" />
Вы заметите, что эта конфигурация использует следующие файлы
res/android/mipman-?????dpi/ic_launcher_round.png
res/android/drawable/ic_launcher_background.xml
Тем не менее, выходные данные из Android Assets Studio содержат несколько других файлов и папок. Например
- рисуем-v24
- mipman-anydpi-V26
- mipman-? точек на дюйм /
- ic_launcher.png
- ic_launcher_background.png
- ic_launcher_foreground.png
- ic_launcher_round.png
Насколько я могу сказать ic_launcher_fore/background
файлы и Drawable-V24 +
Папки mipman-anydpi-v26` не используются.
Мой вопрос - почему тогда генерируются и могут ли они быть безопасно удалены из проекта.