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.
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/