The code completion window has few drawable alternatives to insert

Posted on

Question :

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

ButwhenI’mgoingtoimportanimageintomyproject,onlyafewalternativesappearasyoucanseebelow:

Thereweremorealternativestoseeasyoucanseebelow:

HowdoIreversethis?

===========================================================p>

IhavetriedtoputtheicondirectlyintheJavacode,butitdoesnotappear.

Myprojectstructure:

    

Answer :

The options that appear are those corresponding to the drawables that are in the resdrawables folder of your project.

In fact, in older versions, all the ones that your project had access to, which in my opinion were only a hindrance.

I think this change took place in Android Studio 3.0.

    

Leave a Reply

Your email address will not be published. Required fields are marked *