将9-patch图片添加到Android Studio [英] Add 9-patch image to Android Studio

查看:188
本文介绍了将9-patch图片添加到Android Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用简单九补丁生成器一>。这将创建一个包含 res -folder的目录,其中包含每个像素密度版本的图像的文件夹。

I've created a nine-patch image using the Simple Nine-Patch Generator. This creates a directory with a res-folder, containing folders for each pixel-density-version of the image.

Eclipse与ADT 可以简单地拖&将这些文件夹放在项目的 res - 文件夹中。

In Eclipse with ADT one could simply drag & drop these folders in the res-folder of your project.

这似乎是一个没有脑子,但是如何将这些生成的九张图片添加到Android Studio?
我正在使用Android Studio 1.0.1。

This would seem like a no-brainer, but how do I add these generated nine-patch images to Android Studio? I'm using Android Studio 1.0.1.

推荐答案

如果你的问题是你找不到可绘制的你可以从项目结构的左上方选择pakages,您可以找到res文件夹,您可以在相应的文件夹中粘贴9路径

If your problem is that you cant find were the drawables are you could eaisly select pakages from the top left side in the project structure there you can find the res folder and you could eailsy paste the 9 path in the corresponding folders

这篇关于将9-patch图片添加到Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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