Mitchell Gardepe
Mitchell Gardepe

Reputation: 41

Adding image asset but the image is coming out blank

This is what I see when I try to add an image asset in Android Studio. Normally, I remember it shows a preview of all the different sizes at the bottom. Once it is added to drawable/used in my code, it also shows it as blank. This is definitely a relatively new problem. Any ideas? Thanks!

screenshot

Upvotes: 2

Views: 3359

Answers (2)

test
test

Reputation: 1

If your image is an icon, you may want to use gimp to set the background to transparent and then retry with the Icon Type from "Action Bar and Tab Icons"

Upvotes: 0

Hussein El Feky
Hussein El Feky

Reputation: 6707

Change the Icon Type from "Action Bar and Tab Icons" to "Launcher Icons" because "Action Bar and Tab Icons" will color all available pixels in your image according to the theme you choose. In your case, it was "HOLO_LIGHT" which is a gray color.

Upvotes: 3

Related Questions