Android图像Asset Studio-哪些图像是相关的

时间:2019-07-03 07:13:52

标签: android appicon android-asset-studio

Android Image asset studio提供了一种创建外观外观的应用程序图标的简单方法-占据整个可用区域,并带有可自定义的背景等。我使用它来创建应用程序图标,然后将其用于混合式Cordova / Android应用,如this SO线程中所述。简而言之,该线程的建议是删除旧样式

<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 Asset Studio的输出包含其他几个文件和文件夹。例如

  • drawable-v24
  • mipman-anydpi-v26
  • mipman-?dpi /
  • ic_launcher.png
  • ic_launcher_background.png
  • ic_launcher_foreground.png
  • ic_launcher_round.png

据我所知,ic_launcher_fore/background文件和drawable-v24 + mipman-anydpi-v26`文件夹未使用。

我的问题-为什么会生成该文件并将其安全地从项目中删除。

0 个答案:

没有答案
相关问题