Add 9-patch image to Android Studio

让人想犯罪 __ 提交于 2019-12-01 04:37:13

问题


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.

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

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.


回答1:


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



来源:https://stackoverflow.com/questions/27501334/add-9-patch-image-to-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!