Where is the image folder for drawable in the Android Studio?

Jerielle

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.

Rashid

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to add an image to the "drawable" folder in Android Studio?

Nativescript Vue on android not updating image in drawable folder

Possible to create subfolders in drawable folder in Android Studio?

How do I add an image in the drawable folder to an ImageView in Android Studio 1.2?

Error while uploading image in drawable in android studio

On sharing image in drawable folder

is there any way to access drawable folder that I created besides default drawable folder in android studio?

How correctly retrieve an image into the res/drawable/ folder of an Android project?

Android ffmpeg : Use image for Watermark from drawable or assets folder

To copy an image from an sdcard into res/drawable folder of the Android app

Android:Image not found inside drawable folder Exception handling

Android Studio: Drawable Folder: How to put Images for Multiple dpi?

Android Studio: Allow user to add images to drawable folder?

Android Studio - Copy and Paste img into drawable folder does not work

Android accessing drawable folder

Name of image in drawable folder red

How to save image path/image to database where i have my images in my drawable folder?

Where is @android:drawable looking for?

Where to add folder of classes in Android Studio?

Where to place the 'assets' folder in Android Studio?

How to check if the resource id belongs to raw folder or drawable folder in android studio

Android Studio drawable folders

Images in the drawable folder is Not Showing in android

Saving to drawable folder programmatically in Android

android customize drawable folder to subfolder

Android drawable folder for <3.2 devices

Common image added in drawable folder doesn't get displayed in Samsung device - Android

How do you add a trimmed circular button image to your android drawable folder?

How to create a drawable from an image in assets folder?