DEV Community

How to create adaptive icons for Android using Android Studio

Sebastián Farías on September 19, 2018

I have found myself with an issue on my android applications not been able to use adaptive icons, resulting in ugly app icons and strange shapes in...
Collapse
 
benjergizerbunny profile image
Benji •

For some reason when I try:

  1. Select the app folder
  2. Go to File → New → Image Asset

I don't have the option for Image Asset under File → New. I've also tried selecting the res folder and right clicking on the app & res folders in Android Studio and selecting "New" which also doesn't have the option for a new Image Asset.

I'm on Android Studio 3.1.3 and I'm using React Native 0.61.5.

Does anyone have any suggestions?

Collapse
 
trey96 profile image
Trey96 • • Edited

I had that same issue on a cordova project, turns out I had to build the project first. After I built it in Android Studio everything worked

Collapse
 
rez4s4 profile image
rez4s4 •

Hi,you should go in resource manager in the left side of Android studio and choose image asset.if you have any questions im here.

Collapse
 
bitttttten profile image
bitten •

This is a great guide! Thanks!

My icon has a gradient background, and now the splash screen looks a bit awkward since it has a solid colour and then the icon with a gradient. It's not as seamless. Is it possible to disable the background of the icon on the splash screen? Or do you recommend a different approach?

Collapse
 
sfarias051 profile image
Sebastián Farías •

Maybe. you can try to create a Splash Screen with the gradient background in that case.

Collapse
 
mostafasolimanmo profile image
Mostafa Soliman •

Nice, thank you

Collapse
 
jchallett profile image
John Hallett •

Just wanted to say thank you very much. This helped me a lot.

Collapse
 
johnyhawkahsan profile image
johnyhawkahsan •

Wowww, Thank you soooo much!

Collapse
 
klebermotta profile image
Kleber Motta •

Thank you man! This should be the default StackOverflow awnser for this problem

Collapse
 
sfarias051 profile image
Sebastián Farías •

Thanks for that :P

Collapse
 
eumeanor profile image
Emmanuel Umeanor •

Worked like magic...Thank you very much

Collapse
 
sfarias051 profile image
Sebastián Farías •

👍🏼

Collapse
 
nildes profile image
Jordão Frazão •

Great, thank you!

Collapse
 
mitchgreene profile image
mitchGreene •

Nice, thank you for the concise tutorial.

Collapse
 
sfarias051 profile image
Sebastián Farías •

Glad you like it

Collapse
 
kiyansadegh profile image
kiyan •

Many thanks Sebastian.. very helpful

Collapse
 
voidjuneau profile image
Juneau Lim •

Oh my god, you rescued my day. Thank you so much!