how does a 9patch png work in android apps

Yunfei Tang picture Yunfei Tang · Dec 23, 2010 · Viewed 12.2k times · Source

In a 9patch png, there are black edges in its four sides, but there is usually difference between the left to right, and the up to down side. Why? How does this difference impact?

Answer

Akram picture Akram · May 11, 2012

One of simplest ans is this pic

draw the black line according to your requirement using nine patch tools.