本文介绍了Android应用程序图标未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我花了很多时间为我正在制作的Android应用程序构建一个图标,但无法在模拟器中显示该应用程序。
I've just spent numerous hours constructing an icon for an Android app I'm working on, but can't get it to show up for the app in the emulator.
我把它放在res / drawable-hdpi,res / drawable-mdpi,res / drawable-ldpi中,各自的大小如
I've put it in res/drawable-hdpi, res/drawable-mdpi, res/drawable-ldpi in the respective sizes as defined in http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html
清单包含以下行:
<application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true">
关于它为什么没有出现的任何想法?
Any ideas as to why it isn't showing up?
推荐答案
- 确保图标在这些文件夹中以名称icon.png存储。
- 确保android有一个drawable / icon资源。通过查看gen / R.java文件并在drawable内部类中查看public static final int icon = 0x ....来检查这一点。
- 尝试清理项目构建并卸载任何您手机/模拟器中现有的应用版本,然后重新安装新版本。
这篇关于Android应用程序图标未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!