androidandroid-ide

How can I create Image folder resource in android


How can I do like the below image in IntelliJ or Android Studio.

Image folder for different dpi (hdpi, mdpi, xhdpi, xxhdpi) contain in the same folder.

enter image description here


Solution

  • Its more like android studio is smart enough to categorize the resources that you already have and present to you the way you see it. However it is still the same as having the below directory structure and arranging you image resources in them.

                     MyProject/
                      res/
                        drawable-xhdpi/
                          awesomeimage.png
                        drawable-hdpi/
                          awesomeimage.png
                        drawable-mdpi/
                          awesomeimage.png
                        drawable-ldpi/
                          awesomeimage.png
    

    Here is a good read https://mobilechild.wordpress.com/2015/05/10/120/