- 删除ic_launcher相关的文件,主要有以下内容:
drawable/ic_launcher_background.xml
drawable/ic_launcher_foreground.xml
mipmap-anydpi-v26/
mipmap-hdpi/
mipmap-mdpi/
mipmap-xhdpi/
mipmap-xxhdpi/
mipmap-xxxhdpi/
删除时,可以取消选中Safe delete (with usage search)
2. 准备新的ic_launcher_background.xml与ic_launcher_foreground.xml文件
3. 创建一个新的Image Assert。右键点击app目录,依次选择New > Image Assert,会弹出Asset Studio对话框,如下图:
4. 保留默认配置,只需要修改Foreground Layer下的Path与Background Layer下的Path,Foreground Layer下的Path替换成上述提供的ic_launcher_foreground.xml路径,Background Layer下的Path替换成上述提供的ic_launcher_background.xml路径,替换成功之后,依次点击Next > Finish即可,res会增加以下文件:
- Resize据观察,是调整比例大小,可根据实际情况调整。