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

Dil*_*ali 12 android android-image android-icons android-drawable

我在更改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
Run Code Online (Sandbox Code Playgroud)

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

我试图在Path中选择一个圆形图像,但stil不起作用.

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

请指导如何更改圆形ic_launchers.

谢谢

ser*_*inc 22

最新的Android Studio会为您生成圆形图标:右键单击该res文件夹,选择图像资源:

圆形,方形等图标格式图像资产


小智 10

你可以尝试继续AnroidManifest.xml改变路径

android:roundIcon="@mipmap/ic_launcher_round" 
Run Code Online (Sandbox Code Playgroud)

android:roundIcon="@mipmap/ic_launcher"
Run Code Online (Sandbox Code Playgroud)