Search code examples
androidnine-patch

using .9.png tool to make gradual 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?


Solution

  • 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