简体   繁体   中英

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.

My original application icon is 48x48. I created a second launcher icon that is 72x72 and placed it in a res/drawable-hdpi/ directory.

When I install the application on my Nexus One the icon looks good when I view it in the application menu. 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.

These are my two resource directories:

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. The size of the icon in the app drawer and on the home screen is identical on my Nexus One.

Do you have extra whitespace in one of your icons perhaps?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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