Reputation: 19966
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?
Upvotes: 1
Views: 808
Reputation: 13486
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
Upvotes: 0
Reputation: 34301
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".
Upvotes: 1