如何将图像导入或复制到“res"Android Studio 中的文件夹? [英] How to import or copy images to the "res" folder in Android Studio?
问题描述
我可以将所有图片直接保存在 res/drawable-xxx
文件夹中.
I can save all my images directly in the res/drawable-xxx
folder.
但是我如何从 Android Studio
import/copy
图像到我的项目?
But how can I import/copy
images to my project from Android Studio
?
如果我从 Finder
(MacOS) 拖放我的图像,文件只会移动到 res
文件夹.
If I drag an drop my images from the Finder
(MacOS), the files only move to the res
folder.
在 context-menu
中没有 Import...
而在 New...
下也没有.>
At in the context-menu
there is no Import...
and under New...
there is also not.
推荐答案
在 Windows 中转到您的图像,然后按 ctrl + c 或右键单击并复制
Go to your image in windows, then press ctrl + c OR Right click and Copy
转到您的 res 文件夹并选择其中一个文件夹(例如 MDPI、HDPI ..)并按 ctrl + v 或右键单击它并粘贴
Go to Your res Folder And choose One of the folders(eg. MDPI, HDPI..) and press ctrl + v OR right click it and Paste
这篇关于如何将图像导入或复制到“res"Android Studio 中的文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!