我知道如何使用.9.png工具制作普通的.9.png,但我想使用该工具制作渐变的png。
首先,我使用 Photoshop 制作渐变 PNG,然后将 .9.png 放入 .9 工具中。渐变PNG是变化的,有时变化很大,所以.9.png渐变PNG看起来不太好。
所以我的问题是是否有一些技巧或技巧可以制作出具有渐变效果的良好.9.png。我不想使用常见的渐变PNG,因为它占用太多空间,而且系统内置的.9.png也不好看。你能给我一些建议吗?
I know how to use the .9.png tool to make a common .9.png, but I want to use the tool to make a gradual png.
First I make a gradual PNG using Photoshop, then I put the the .9.png into the .9 tool. The gradual PNG is changed, sometimes the change is very big, so the .9.png gradual PNG doesn't look good.
So my question is if there is some skill or trick to make a good .9.png with a gradual effect. I do not want to use common gradual PNG because it occupies too much space, and the built-in system .9.png doesn't look good either. Can you give me some advice?
发布评论
评论(2)
以下是有关draw9patch 的教程的链接
你可以参考它,我刚刚用谷歌搜索并发现了这个有用的链接
http ://android10.org/index.php/articlesother/279-draw-9-patch-tutorial
http://www.youtube.com/watch?v=IfrXE2R2nqM
http://www.youtube.com/watch?v=kzdZ_9smcGc
http://developer.android.com/guide/developing/tools/draw9patch.html
我的设计师曾经建议过我:“在制作9补丁时,主要是从左侧和顶部选择像素”。
Here are links for the tutorial abouth draw9patch
you can refer it,I have just googled and found this useful links
http://android10.org/index.php/articlesother/279-draw-9-patch-tutorial
http://www.youtube.com/watch?v=IfrXE2R2nqM
http://www.youtube.com/watch?v=kzdZ_9smcGc
http://developer.android.com/guide/developing/tools/draw9patch.html
My Designer Adviced me once:"While making 9 patch,main thing is to selct pixels from the Left and Top side".
这不是您问题的答案,但您可能会发现它很有用。尝试使用渐变颜色:
http://developer.android.com/参考/android/graphics/drawable/GradientDrawable.html
Android:使用线性渐变作为背景看起来带状
Android LinearLayout 渐变背景
编辑: 还可以考虑使用图块,如如何使 Android 应用程序的背景图像重复 和 如何使 Android 应用的背景图像重复
This is not an answer for your question but you may find it useful. try using gradient color instead:
http://developer.android.com/reference/android/graphics/drawable/GradientDrawable.html
Android: Using linear gradient as background looks banded
Android LinearLayout Gradient Background
EDIT: also consider using tiles as described in How to make android app's background image repeat and in How to make android app's background image repeat