The "code Completion" window has few drawable alternatives to insert

Asked

Viewed 43 times

3

You notice that there are several imported libraries in my Android Studio:

inserir a descrição da imagem aqui

But when I import an image to my project there are only a few alternatives as you can see below:

inserir a descrição da imagem aqui

It was to appear more alternatives as you can see below:

inserir a descrição da imagem aqui

How do I reverse this?

=============================================

I already tried to put the icone straight in the Java code, but it does not appear.

inserir a descrição da imagem aqui

Structure of my project:

inserir a descrição da imagem aqui

1 answer

1


The options that appear are those corresponding to drawables that are in the folder res\drawables of its project.

In fact, in older versions appeared all that his project had access to which, in my opinion, only hindered.

I think this change happened in Android Studio 3.0.

  • thank you very much quite enlightening.

  • Know any tutorial that explains how I put an image in my project the way I’m trying to do?

  • It will have to be put first in the folder drawable. If it’s an image you have on your PC the easiest is to copy(no explore) and stop it in the drawable folder (inside Android Studio). Or use the Image Asset Studio through File ->New->Image Asset.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.