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

Alan W :

I need to add an image to the res/drawable folder...

When I choose new > image asset, it comes out a dialog to choose Asset Type...

How can I add an image to res/drawable folder?

Chris :

For Android Studio 1.5:

  1. Right click on res -> new -> Image Asset
  2. On Asset type choose Action Bar and Tab Icons
  3. Choose the image path
  4. Give your image a name in Resource name
  5. Next->Finish

Update for Android Studio 2.2:

  1. Right click on res -> new -> Image Asset

  2. On Icon Type choose Action Bar and Tab Icons

  3. On Asset type choose Image

  4. On Path choose your image path

  5. Next->Finish

The image will be saved in the /res/drawable folder.

Warning! If you choose to use images other than icons in SVG or PNG be aware that it could turn grey if the image is not transparent. You can find an answer in comments for this problem but none of these are verified by me because I never encountered this problem. I suggest you to use icons from here: Material icons

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 a linked source folder in Android Studio?

How to add 'libs' folder in Android Studio?

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

how to add round border in vector drawable image?

How to add fonts folder on Android Studio?

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

How to add icon image button in android studio

How to add a image to drawable xml in android

Android add multiple pictures to drawable res folder

add image in another folder instead of drawable in xamarin cross-platforms

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

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

Nativescript Vue on android not updating image in drawable 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

On sharing image in drawable folder

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

Possible to create subfolders in drawable folder in Android Studio?

how to add image to listview from drawable

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

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

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

Android: Add a drawable image to users phone remotley

How to add an image to a Drawable Resource File

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

Error while uploading image in drawable in android studio

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

Can't Add Vector Drawable in Android Studio

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

TOP Ranking

HotTag

Archive