I have a image in layout and i generate xdpi,hdpi etc but my layout show error

416 views Asked by At

layout show error and images also does not show when i open it in android package:

image description

what is happening I don't know

1

There are 1 answers

11
Nouman Ch On

You have created drawable folder in wrong location you can't create drawable-ldpi or drawable-mdpi etc folders in drawable folder but the they structure like this.

image

this is how the different drawable folder were created in files system and android studio show this something like this:

image for android studio

to create a drawable in specific folder append with -hdpi, -ldpi, -mdpi, -xhdpi, -xxhdpi, -xxxhdpi same for mipmap and values folders.

image for creating drawable folder hope this will help you.