简体   繁体   English

应用启动器图标错误

[英]App Launcher Icon Is Wrong

The manifest defines the app icon that I want. 清单定义了我想要的应用程序图标。 But when I deploy the app the app icon is a completely different icon. 但是当我部署应用程序时,应用程序图标是完全不同的图标。 What could possibly be going on? 可能会发生什么?

The image that was showing as the icon is no where to be found in any of my project files. 显示为图标的图像在我的任何项目文件中都找不到。 I haven't moved my ic_launcher images at all so they are all still in their appropriate drawable folder. 我根本没有移动ic_launcher图像,因此它们都仍在其适当的drawable文件夹中。 It was showing fine an hour ago on another computer. 一个小时前在另一台计算机上显示正常。

It started showing differently when I downloaded my code from an svn repository on another computer and started eclipse. 当我从另一台计算机上的svn存储库下载代码并开始eclipse时,它开始显示不同。

Cleaning my project fixed this. 清理我的项目解决了这个问题。

检查路径(/ res / drawable- *)并尝试清理项目

It could be possible, that your phone uses an other density than the icon you provided. 手机可能使用的密度不同于您提供的图标。 Did you scale you icon down to all densities? 您是否将图标缩小到所有密度? Did you forget to delete the default app icon in the ldpi, mdpi and hdpi folder? 您是否忘记删除ldpi,mdpi和hdpi文件夹中的默认应用程序图标?

Make sure that you have the res/drawable-hdpi,ldpi,mdpi have the correct images and sizes. 确保您的res / drawable-hdpi,ldpi,mdpi具有正确的图像和尺寸。

The website below might help you out with the sizes.. http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html 下面的网站可能会帮助您确定大小。.http: //developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM