适用于其他平台的 Android 九个补丁等效项
我刚刚了解了Android九补丁的想法,这是一个非常好的想法。我的问题是它是否是 Android 模式,或者是否有类似其他平台的实现,可能名称不同。
谢谢!
I have just learned about Android nine-patches idea, and it is a pretty good idea. My question is if it is an Android pattern or there is implementations like that for other platforms, probably differently named.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 iOS 中,您还可以使用 StretchableImages 在代码中拉伸图像。您指定左、右大写字母,“其余部分”将被拉伸。我认为基本上是相同的想法,这就像一个教程: http://blog.chomperstomp.com/creating-dynamically-re-sizing-buttons-for-iphone-apps/
In iOS you can also strech images in code with StretchableImages. You specify the left, right caps and the "rest" is stretched. I think is basicaly the same idea, this is something like a tutorial on it: http://blog.chomperstomp.com/creating-dynamically-re-sizable-buttons-for-iphone-apps/
还有另一个问题这里提到了一个在iPhone 的 Apache 许可证。我还没用过,但值得一试。
There is another SO question here that mentions a library released under Apache license for iPhone. I haven't used it but is worth checking out.