Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make image asset with transparent background in Android studio? (with option add image asset)

I have image with transparent background.

When i add image to resource folder, my background changes to white. (with android studio add image asset option)

enter image description here

If i put image directly to resource file, image background stays transparent.

like image 881
kostik Avatar asked Jul 28 '17 08:07

kostik


People also ask

Where is configure image asset in Android Studio?

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.

How do I make an image partly transparent?

Make part of a picture transparent Select the picture for which you want to change the transparency of a color. On the Picture Format tab, select Color, and then select Set Transparent Color. Click the color in the picture or image that you want to make transparent.


1 Answers

Select "Action Bar and Tab Icons" instead of "Launcher Icons" and you'll get the transparent background as required for all the images.

like image 196
Ashutosh Sagar Avatar answered Sep 17 '22 22:09

Ashutosh Sagar