Android更改应用图标

Pie*_*ley 3 android manifest

我无法弄清楚如何更改安装应用程序时显示的应用程序图标,即您必须单击的屏幕上的应用程序图标.

我做了什么:

  • 我创建了一个新图标 - >新建>图像资源(mipmap)
  • 我删除了ic_launcher(默认的)
  • 我将新资源命名为旧图标(ic_launcher)
  • 重建
  • 清洁项目
  • 使缓存无效并重新启动
  • 已安装的应用

没有.我仍然有我的应用程序与恼人的默认mipmap ic_launcher图标.

我真的不知道该做什么比这更多..

谁能帮我?

编辑:对不起,我忘记了清单.

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true" >
...
...
</application>
Run Code Online (Sandbox Code Playgroud)

Pie*_*ley 6

正如Suke指出的那样,我忘了发布这个问题的解决方案.对不起.

经过大量的管理后,解决方案很简单,而且只有谷歌的一个.

这个链接是你可以为android项目创建所有图像的地方.

去那里:

  • 插入图像并选择所有功能
  • 下载它
  • 替换drawable-xxhdpi,drawable xhdpi,...和mipmap-xxhdpi,mipmap-xhdpi,...文件夹中的所有图像格式(xxhdpi,hdpi,...).
  • 在清单中设置 android:icon = "@drawable/myicon"

这就是我做到的

希望能帮助到你