Blurry Launcher Icons

醉酒当歌 提交于 2020-05-13 07:04:11

问题


I am trying to add a launcher icon to my Android application, but something seems wrong with resolution whan app is installed. The device I'm working with has an XHDPI screen, so I am testing with a 96x96 (px) image. I used the Image Asset in Android Studio to generate a default icon:

This is the result in my device:

You can notice that the image is a bit blurry, as it has been resized. It happens with every icon I make. What is happening? I am using MIUI, altough it doesn't appears to affect to the other icons.

EDIT: My launcher icon is inside the mipmap folder.


回答1:


Remove Your file from mipmap-anydp-v26 folder.. it might work for you like me




回答2:


Place your launcher icons in the mipmap folders instead of drawable. Some phones scale launcher icons up. Putting you launch icons in mipmap folders will have the phone use a large resolution icon if needed.

mipmap vs drawable folders




回答3:


If it is a PNG file try using a vector image



来源:https://stackoverflow.com/questions/42371884/blurry-launcher-icons

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!