Android Studio Image Asset Launcher Icon Background Color

前端 未结 10 1434
无人及你
无人及你 2020-11-30 23:26

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 ac

相关标签:
10条回答
  • 2020-12-01 00:20

    Android Studio 3.5.3 It works with this configuration.

    0 讨论(0)
  • 2020-12-01 00:21

    You have two ways:

    1) In Background Layer > Scaling, reduce the Resize to 1

    and then in Legacy > Legacy Icon set Shape as None


    2) in Background Layer > Scaling > Source Asset, you can set an image as a 1x1 pixel (or any size) transparent.png image (you've already created).

    and then in Legacy > Legacy Icon set Shape as None

    0 讨论(0)
  • 2020-12-01 00:25

    Using android 3.0.1 I noticed this weird behavior(solution), First: in background layer in the source_asset change the asset_type from image to color and than change it back to image. second: enable trim in scaling and then resize it to a small percentage and it will work perfectly. PS: If u didn't do the first step the scaling wont take affect. and if anyone have an explanation for this please provide. steps

    0 讨论(0)
  • 2020-12-01 00:28

    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.

    0 讨论(0)
提交回复
热议问题