如何将图像导入或复制到“res"Android Studio 中的文件夹? [英] How to import or copy images to the "res" folder in Android Studio?

查看:109
本文介绍了如何将图像导入或复制到“res"Android Studio 中的文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以将所有图片直接保存在 res/drawable-xxx 文件夹中.

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

但是我如何从 Android Studioimport/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.

推荐答案

  1. 在 Windows 中转到您的图像,然后按 ctrl + c 或右键单击并复制

  1. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆