简体   繁体   English

放置在Android桌面上时,为什么我的启动器图标会更小?

[英]Why is my launcher icon smaller when placed on the Android desktop?

I have an application built for 1.5 and I am adding higher resolution drawables to support hdpi devices in 1.6 and above. 我有一个1.5的应用程序,我正在添加更高分辨率的drawables以支持1.6及更高版本的hdpi设备。

My original application icon is 48x48. 我的原始应用程序图标是48x48。 I created a second launcher icon that is 72x72 and placed it in a res/drawable-hdpi/ directory. 我创建了一个72x72的第二个启动器图标,并将其放在res / drawable-hdpi /目录中。

When I install the application on my Nexus One the icon looks good when I view it in the application menu. 当我在Nexus One上安装应用程序时,当我在应用程序菜单中查看它时,图标看起来很好。 But when I place it on the desktop it appears small relative to other icons, my guess is I'm seeing the 48x48 version with no scaling. 但是当我把它放在桌面上时,相对于其他图标看起来很小,我的猜测是我看到48x48版本没有缩放。

These are my two resource directories: 这是我的两个资源目录:

res/drawable/appicon.png res/drawable-hdpi/appicon.png res / drawable / appicon.png res / drawable-hdpi / appicon.png

Do I need to do something differently either with my directory structure or my manifest file to get things to display correctly? 我是否需要使用我的目录结构或清单文件以不同的方式执行某些操作才能正确显示内容?

Thanks! 谢谢!

I uninstalled the application completely, then reinstalled it. 我完全卸载了应用程序,然后重新安装它。 That solved the issue. 这解决了这个问题。

I just checked one of my apps that I only have a 48x48 icon for. 我刚检查了一个我只有48x48图标的应用程序。 The size of the icon in the app drawer and on the home screen is identical on my Nexus One. 应用程序抽屉和主屏幕上的图标大小与我的Nexus One相同。

Do you have extra whitespace in one of your icons perhaps? 您的某个图标中是否有额外的空格?

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

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