开发者

Why do these Android controls look peculiar on Galaxy S?

开发者 https://www.devze.com 2023-01-26 22:05 出处:网络
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

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开发者_如何学JAVA-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.

Why do these Android controls look peculiar on Galaxy S?


All of the rendering issues went away when I adjusted the minimum SDK level up to 5 from 3.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号