Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New Image Asset Launcher Icon Loss of Transparency

I am trying to add a launcher icon for an app in Android Studio.

What I've done so far:

Gone to res folder right click and select new image asset

From there I find the png file which I would like to use as the app launcher icon.

This step is seen here: http://i.imgur.com/a1ubNf8.png

As you can see, the source asset is displayed correctly, with no white background. But the 5 different icon types have a white background and lose their transparency.

I would like for the app icon to retain its transparency and not show a white background.

like image 625
sawreals Avatar asked Aug 22 '16 21:08

sawreals


People also ask

How do I make adaptive icons on Android?

Add your adaptive icon to your app xml , create alternative drawable resources in your app for backward-compatibility with Android 8.0 (API level 26). You can then use the <adaptive-icon> element to define the foreground, background, and monochromatic layer drawables for your icons.

How do I add icons to Mipmap Android?

Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Further follow the path to reach the desired folder to add icon (app → res → mipmap). Step 3 - Add you app icon. You can just simply copy and paste the image in mipmap folder.

Can t find image Asset option in Android Studio?

@rafahead open android studio File->Open folder->navigate to your flutter project and select the Android folder. Wait for it to sync, then navigate inside the Android studio folder and find the res folder right click on it and choose New you will see the Image asset studio.


1 Answers

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

Before

Before

After

After

like image 54
skydroid Avatar answered Nov 09 '22 21:11

skydroid