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?
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?
Adding images to the drawable folder is pretty simple. Just follow these steps:
Your image will be saved inside drawable and you can use it.
In Android Studio
Select Image asset
Select Action Bar & Tab icons in asset type
Click Next
Select size
You're done!
Open your project in Android Studio
Click on
res
Right click on
drawable
Click on
Show in Explorer
Double click on
drawable
folder.Copy your image file in it and rename as your wish.
Now write your image file name after
@drawable/
.It will show the image you've selected.
Install and use the Android Drawable Importer plugin:
https://github.com/winterDroid/android-drawable-importer-intellij-plugin
Instructions on how to install the plugin are on that page. It's called "Android Drawable Importer" in the plugin search results.
Once installed:
Seems kind of ridiculous that Android Studio doesn't support this directly.
EDIT: But Xcode doesn't either so.... :-(
Just copy your images and select drawable then on the option of Paste or press shortcut ctrl v. images are added
You just have to copy the image file from your location folder and then right click on drawable in the android studio and then paste it.