Kim
Kim

Reputation: 69

Android Studio not loading image when creating new image asset

I'm trying to add new image assets to android studio and I have followed a couple of steps to add them correctly, but the IDE is not loading the image.

I have followed these steps

Here is my result of following those steps. The image is just greyed like that and even if I finish adding it, it's still grey on the components.

Thanks

Upvotes: 3

Views: 6037

Answers (2)

R. Hanza
R. Hanza

Reputation: 151

You can use plugin for Android Studio.

  1. Go to File -> Settings -> Plugins.
  2. Search 'Android Drawable Importer' and Install.
  3. Restart Android Studio.

Now you can use Batch Drawable Import in dropdown menu enter image description here

You can see how to do it step by step here

or

Set "Launcher icons" in "Icon Type" in Asset Import window. This will add the images in their original color and will not be greyed out.

Upvotes: 3

terencey
terencey

Reputation: 3332

That's expected behaviour.

Action Bar icons are flat, pictured face on, and generally greyscale, depending on the application's theme. Action Bar icons should not look three-dimensional.

In order to maintain consistency across the application's Action Bar, all Action Bar icons should use the same color palette and effects.

https://developer.android.com/guide/practices/ui_guidelines/icon_design_action_bar.html

Upvotes: 0

Related Questions