如何创建九个补丁,并使用它在我的应用程序? [英] How to create nine-patch and use it in my App?
问题描述
我想创建一个九片图像和使用,在我的应用程序,但我不知道如何创建呢?
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片图像: <一href="http://developer.android.com/guide/developing/tools/draw9patch.html">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,...),这里使用的创建方针九补丁文件:<一href="http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch">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
这篇关于如何创建九个补丁,并使用它在我的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!