Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在android上以编程方式更改ninepatch图像(png)的颜色?我知道如何使用位图而不是使用 Ninepatch...
感谢帮助我。
问候吉姆
NinePatch 图像是标准的 PNG 文件,外部有一个 1 像素的边框来标记重复区域。您可以在任何图像编辑器中编辑它们,只要您不理会 1 像素外边框,它们就会继续正常工作。
请参阅此处了解它们的构造方式。