Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
188 views
in Technique[技术] by (71.8m points)

android - The colored image turned to have no color and just a grey vector in drawable?

I have created a new Image Assets in the Drawable cus I need to insert a new image in my app, but every time I create a new image asset, the output turns to be no colour at all. I've attached the pic of it.enter image description here

It's confusing and whenever I import it in my layout, it's just grey all over as you can see in the image. Why is it cus I can't find any ready solutions? Let me know if I'm overlooked.

question from:https://stackoverflow.com/questions/36143020/the-colored-image-turned-to-have-no-color-and-just-a-grey-vector-in-drawable

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I got the answer for my own question which I find it's useful for some who still do not know how to enable the Batch Drawable Import. It's easy and just need to download plugin and install. I've read that the latest version already has it and I've downloaded and reinstalled, but it didn't show as what I was expecting. The solution is to download and install it.

  1. First, In Android Studio, go to Default Setting File --> Setting or you can simple Click the SDK Manager Icon enter image description here

  2. In the Default Setting, go to Plugins enter image description here

  3. In the search option, type Batch Drawable Import and you'll see there's Android Drawable Importer. enter image description here

  4. In my image, it's already installed, Click Install Plugin and just follow the instructions.

  5. You'll have to restart Android Studio and try to create a new Batch Drawable Import and you'll find it there. ;) Thanks. enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...