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.
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.
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.
@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.
To make background transparent, set shape
as None
. See the image below:
Before
After
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With