问题
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