为什么这些 Android 控件在 Galaxy S 上看起来很奇怪?
我在这个对话框和另一个 Activity 中都遇到了问题 - 它是一个看起来错误的 EditText 控件 - 在这两种情况下,控件的中心似乎向上移动了一个像素,或者两侧向下移动了一个像素。我猜测相关区域是由 9 补丁定义的。
有其他人经历过这种情况,并且知道如何解决吗?这是否与子像素渲染有关 - 就像 iPhone 一样,UI 控件的非整数定位会导致模糊?我还注意到表格分隔线在某些偏移处消失的问题(肯定是子像素问题) - 但在这款手机和 HTC 设备上都是如此。
I'm experiencing issues with both this dialog and another Activity - where it's an EditText control that looks wrong - and in both cases it seems that the center of the control is shifted up by one pixel, or the sides down by one. I'm guessing that the regions in question are defined by a 9-patch.
Has anyone else experienced this, and knows how it might be resolved? Could it be something to do with sub-pixel rendering - as with the iPhone, where non-integer positioning of UI controls causes blurriness? I've also noticed issues with table dividers disappearing at certain offsets (surely a subpixel issue) - but on both this phone and an HTC device.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我将最低 SDK 级别从 3 调整到 5 时,所有渲染问题都消失了。
All of the rendering issues went away when I adjusted the minimum SDK level up to 5 from 3.