如何更改 ic_launcher_round.png 文件夹内容?

How to change the ic_launcher_round.png folder content?

我在更改 Android 应用程序的图标时遇到困难。我已按照说明操作:

1.Right click on the project
2.Select New -> Image Asset
3.Select 'Asset Type' as Image
4.Select Path of and .png image
5.Optional: padding, trimming etc.
6.Next and Finish

这更改了 minmap/ic_launcher.png 内容中的图标,但是,这不会更改 minmap/ic_launcher_round.png 文件夹内容。结果是,如果 Android 系统配置为显示圆形图标,则此文件夹中显示的图标:minmap/ic_launcher_round.png。但是我找不到更改该特定文件夹内容的方法。

我试过select路径中的圆形图像,但还是不行。

如果我将 Android phone 设置为将应用程序启动器图标显示为方形,我会看到所需的图标,但是,如果将其更改为圆形,则我看不到所需的图标.

请指导如何改变回合ic_launchers。

您可以尝试继续 AnroidManifest.xml 并更改路径

android:roundIcon="@mipmap/ic_launcher_round" 

android:roundIcon="@mipmap/ic_launcher"

最新的AndroidStudio为您生成圆形图标:Right-clickres文件夹,selectImage Asset

参见 https://dev.to/_s_farias/how-to-create-adaptive-icons-for-android-using-android-studio-459h for a more detailed walkthrough (Credit of @Guillaume Raymond)。

用 25 api 编译并使用 "Legacy only"