ic_launcher,ic_launcher_foreground和ic_launcher_round之间的区别

时间:2019-07-10 12:07:26

标签: android-studio icons

我正在使用Android Studio(v 3.4.1)创建自适应启动器图标。我对它生成的PNG文件感到困惑。

我使用Asset Studio创建启动器图标(自适应和旧版)。这个过程很简单。但我质疑是否需要某些输出文件。

输出包含以下内容:

\ release \ res \ mipmap-anydpi-v26

  • ic_launcher.xml
  • ic_launcher_round.xml

\ release \ res \ mipmap-nndpi(针对每个像素密度)

  • ic_launcher.png
  • ic_launcher_foreground.png
  • ic_launcher_round.png

\ release \ res \ values \ ic_launcher_background.xml

我认为每个\ mipmap-nndpi文件夹仅需要[foreground&round] .png文件。手动创建图标时,我没有创建ic_launcher.png,也没有看到任何区别。

最低Target SDK 28+是否需要ic_launcher.png?

1 个答案:

答案 0 :(得分:0)

看看https://github.com/Viperusgit/AdaptiveIcons

  • ic_launcher_forground是被遗忘图像的名称
  • ic_launcher是旧版android的图标
  • ic_launcher_round是旧像素的图标