Edit android 9patch png programmatically (change color)

Is there a way to change the color of a ninefold image (png) on โ€‹โ€‹Android? I know how to do this with a bitmap, but not with nine patches ...

Thanks for helping me.

Relationship jim

+4
source share
1 answer

NinePatch images are standard PNG files with a 1-pixel border around to mark repeating areas. You can edit them in any image editor, and as long as you leave only a 1-pixel outer border, they will continue to work fine.

See how they are built here .

+1
source

Source: https://habr.com/ru/post/1339023/


All Articles