Android Studio Image Asset Launcher Icon Background Color

匿名 (未验证) 提交于 2019-12-03 01:25:01

问题:

I have a .png logo for my app which doesn't have a background, when I add it to android studio as an Image Asset I am forced to have a background. The hex field doesn't accept 8 digit color codes, 6 digits only. Is there anyway to keep the background invisible?

回答1:

To make background transparent, set shape as None. See the image below:

EDIT:

For Android Studio 3.0, you can set it from Legacy Tab



回答2:

I'm using Android Studio 3.0.1 and if the above answer doesn't work for you, try to change the icon type into Legacy and select Shape to None, the default one is Adaptive and Legacy.

Note: Some device has installed a launcher with automatically adding white background in icon, that's normal.



回答3:

the above approach didn't work for me on Android Studio 3.0. It still shows the background. I just made an empty background file

This worked except the full bleed layers



回答4:

Android Studio 3.0.1.

If your targetSdkVersion is 26, then your icon type should be adaptive and legacy.

I tried setting background transparent, but that didn't work.

If your launcher icon is round (if not, then I think you have to set a background which is not transparent. Correct me if I wrong), follow the steps below -



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