将 9-patch 图像添加到 Android Studio [英] Add 9-patch image to Android Studio
问题描述
我使用 简单的九补丁生成器
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 with 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.
推荐答案
如果您的问题是找不到可绘制对象,您可以轻松地从项目结构的左上角选择包,在那里您可以找到 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屋!