简体   繁体   中英

Why are the edges of my app icons being cut off?

I have this png image that I want to use as the icon for my application:

透明的应用程序PNG

I use this on a web application as the save to home screen icon:

<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" />

But when I put it on the home screen, it cuts off the corners of the icon:

在主屏幕上

And the same issue happens when I build an Android app with Meteor, with resized versions of the same image configured as the android_mdpi/android_hdpi/android_xhdpi/android_xxhdpi/android_xxxhdpi icon:

应用程式图示

How can I prevent the edges of my icon being cut off like this?

Depending on your launcher users can change the icon shape on their phone and it automatically changes your icon to the chosen shape. You can change this at Home Settings -> Change Icon Shape

So you can not prevent the edges being cut off, but in your app, you can define different icons for the different shapes. More information about the adaptive icons: https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive

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