如何创建九个补丁,并使用它在我的应用程序?
我想创建一个九片图像和使用,在我的应用程序,但我不知道如何创建呢?
I want to create a nine-patch image and use that in my App but I don't know how to create it?
我已经通过在网络上的Android源$ C $ C搜索,我似乎无法找到this.I的任何实例需要一个教程,这样我可以理解的过程。
I've searched through the Android source code on the Web and I can't seem to find any examples of this.I need a tutorial so that i can understand the process.
在此先感谢所有帮助。
问候,奥米德
有一个工具,它包含在Android SDK创建和测试9片图像: http://developer.android.com/guide/developing/tools/draw9patch.html
There's a tool included in the android sdk to create and test nine patch images: http://developer.android.com/guide/developing/tools/draw9patch.html
您还可以创建利用一切GFX包在那里(Photoshop中,paint.net,...),这里使用的创建方针九补丁文件:http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch
You can also create a nine patch file using every gfx package out there ( photoshop, paint.net, ... ) using the creation guideline here: http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch