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 -