android - 在可绘制文件中修改png文件后,它仍然在手机运行中显示旧图标

标签 android mobile icons

我开发了一个简单的程序,我想更改图标。这就是更改每个可绘制文件夹中的 ic_launcher.png 文件的意思。

我在模拟器上编译,可以正常运行。它更改了新图标。当我安装手机并运行时,它仍然显示旧图标。有什么问题?

最佳答案

试试这个方法:

<application android:icon="@drawable/ic_launcher" android:label="@string/app_name">

代替:

<application android:icon="@+drawable/ic_launcher" android:label="@string/app_name">

只需从 android:icon="@+drawable/ic_launcher" 中删除“+”号。

谢谢。

关于android - 在可绘制文件中修改png文件后,它仍然在手机运行中显示旧图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14181004/

相关文章:

mongoose - 蒙哥错误: E11000 duplicate key error collection: users index: mobile_1 dup key: { mobile: null }

css - DIV 在移动设备上不显示为 block

c++ - 无需重新编译或重新链接并使用 Microsoft SDK 中的命令行工具即可更改可执行文件的图标

.net - Windows 应用程序图标文件

java - 使用过滤器限制 Android ArrayAdapter 结果

android - 如何在 Android GridView 中获取 ImageButton 的大小?

android - ExoPlayer ConcatenatingMediaSource 改源回调

android - 如何通过其引用 ID 获取主题

php - 文件上传适用于桌面,但不适用于使用相机的移动设备

icons - Logo 未出现在渐进式网络的启动画面上