Search code examples
androidnine-patch

how does a 9patch png work in android apps


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?


Solution

  • One of simplest ans is this pic

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