Gingerbread 中的屏幕显示问题
我已将 Motorola Atrix 升级到 Gingerbread (2.3.4),到目前为止没有任何问题。当我使用之前开发的旧应用程序和游戏时,它们没有完全显示在屏幕上,它只提供 320x480 像素的显示。我需要更改我的代码或手机设置吗?
I have upgraded my Motorola Atrix to Gingerbread (2.3.4), so far with no issues. When I go for my old apps and games which I developed previously, those are not displayed fully in the screen, it is only giving a 320x480-pixel display. Do I need to change my code or my phone settings?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
鉴于您当前使用
android:minSdkVersion="1"
,请尝试设置minSdkVersion="4"
或设置anyDensity
为true
。两者应该具有相同的效果,允许您的应用程序扩展到超出 Android 1.0 屏幕尺寸 240x320;在 SDK 4 (Android 1.6 ) 之前,默认情况下不缩放,因为只有单一分辨率。
Given that you currently use
android:minSdkVersion="1"
, try settingminSdkVersion="4"
or settinganyDensity
totrue
.Both should have the same effect of allowing your app to scale beyond Android 1.0 screen sizes of 240x320; before SDK 4 (Android 1.6 ) the default was not to scale as there was only a single resolution.