Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import or copy images to the "res" folder in Android Studio?

I can save all my images directly in the res/drawable-xxx folder.

But how can I import/copy images to my project from Android Studio?

If I drag an drop my images from the Finder (MacOS), the files only move to the res folder.

At in the context-menu there is no Import... and under New... there is also not.

like image 700
webschnecke Avatar asked May 21 '13 11:05

webschnecke


People also ask

How do I import images into Android Studio?

To import image resources into your project, do the following: Drag and drop your images directly onto the Resource Manager window in Android Studio. Alternatively, you can click the plus icon (+), choose Import Drawables, as shown in figure 3, and then select the files and folders that you want to import.

Where is res folder in Android Studio?

Select layouts , right-click and select New → Folder → Res Folder. This resource folder will represent a “feature category” that you want. You can easily create any type of file/folder in Android Studio. If you have N vertical features, you need to create N folders.


2 Answers

  1. Go to your image in windows, then press ctrl + c OR Right click and Copy

  2. Go to Your res Folder And choose One of the folders(eg. MDPI, HDPI..) and press ctrl + v OR right click it and Paste

like image 61
Michael A. Avatar answered Sep 18 '22 19:09

Michael A.


Goto Settings > Plugin > Browse Repository > Serach Android Drawable Import

This plugin consists of 4 main features.

  • AndroidIcons Drawable Import
  • Material Icons Drawable Import
  • Scaled Drawable
  • Multisource-Drawable

Edit : After Android Studios 1.5 android support Vector Asset Studio.


Follow this, which says:

To start Vector Asset Studio:

  1. In Android Studio, open an Android app project.
  2. In the Project window, select the Android view.
  3. Right-click the res folder and select New > Vector Asset.

enter image description here

like image 22
Kishan Vaghela Avatar answered Sep 18 '22 19:09

Kishan Vaghela