Reputation: 7520
I am new in Android and I am following a tutorial on the Web. In the tutorial these folders are existing in their project structure:
res
drawable-hdpi
drawable-ldpi
drawable-mdpi
While in my project has only these folders:
res
drawable
And I also tried changing the Android to Project View but still same structure. The only difference are in the Project View I can see some folders that are hidden in the Android View like these:
mipmap-hdpi
mipmap-mdpi
mipmap-xdpi
mipmap-xxdpi
mipmap-xxxdpi
Can I just copy my images into the drawable folder like this?
drawable
- image1.jpg
- image2.jpg
Or do I need to create a folder for hdpi, ldpi and mdpi
?
Thats all guys. When I try to use Eclipse those folders are existing in the project structure.
Upvotes: 0
Views: 1320
Reputation: 1740
While in my project has only these folders:
You can make your own folder when its not yet created. just follow the naming convention.
And I also tried changing the Android to Project View but still same structure. The only difference are in the Project View I can see some folders that are hidden in the Android View like these:
Just leave as it is. Nevermind the hidden files/folders.
Can I just copy my images into the drawable folder like this?
It depends on your application. If you want to support different screen densities then you should follow the android resource folder. Refer to this link http://developer.android.com/guide/topics/resources/providing-resources.html
Or do I need to create a folder for hdpi, ldpi and mdpi?
Yes you can create it. Remember just follow the naming convention of folders.
Upvotes: 1
Reputation: 437
the main reason folders are named as hdpi, ldpi and mdpi is for the application to be able to select the most appropriate size of the image on the device its running unless you want the image to be the same across all devices the just drop it in the drawable folder else you will have to make the appropriate sizes and put them in their respective folders
Upvotes: 1