Android 中面临九个补丁图像的问题
我是 Android SDK 的初学者。我已经探索了一些在 Android 上支持多屏幕的方法。
我想出了九个补丁图像可以达到此目的。
假设我的图像中没有可以水平和垂直重复的部分。 九个补丁图像总能解决所有类型图像支持多种屏幕尺寸的问题吗?对于这种类型的图像,最好的解决方案是什么?
谢谢,
吉姆.
I am beginner to Android SDK. I have explored few things to support multiple screens on Android.
I came up with nine patch images can serve this purpose.
Say i have image in which there are no part which i can repeat horizontally and vertically.
Will nine patch image always solve problem with all type of images to support multiple screen sizes?? What would be best possible solution for such type of image??
Thanks,
Jim.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您始终可以创建 9 补丁,以便在需要时拉伸空白/背景空间,而不扭曲/拉伸/重复您的图像。
使用 draw 9patch 工具,您可以填充所有边框区域,这与选择点不同。
You could always create the 9 patch so it stretches empty/background space if needed and not distort/stretch/repeat your image.
Using the draw 9patch tool you would fill all border areas unlike choosing points.