[英]supporting multiple screen sizes in android
Hi I'm new to android world.Iam working on an application that supports multiple screen sizes i did as explained here http://developer.android.com/guide/practices/screens_support.html#screen-independence .嗨,我是 android 世界的新手。我正在开发一个支持多种屏幕尺寸的应用程序,我按照这里的解释做了http://developer.android.com/guide_screen.html/support.html/screen . I didn't create different xmls for each screen size.我没有为每个屏幕尺寸创建不同的 xml。 But when I tested it on android 3 emulator it appears in small part of the screen.但是当我在 android 3 仿真器上测试它时,它出现在屏幕的一小部分。
So I think that the size specified for my application on the emulator is small so my widgets are not filling the whole screen as I want.所以我认为在模拟器上为我的应用程序指定的尺寸很小,所以我的小部件没有按我的意愿填满整个屏幕。 Can I control that size of my application on the emulator?我可以在模拟器上控制我的应用程序的大小吗?
See this question... How do I make my android apps fill the screen on Honeycomb?看到这个问题...... 如何让我的 android 应用程序填满 Honeycomb 的屏幕?
Also, to avoid compatibility mode when running on Honeycomb, set targetSdkVersion
to 11 or higher (as described at http://geekyouup.blogspot.com/2011/05/supporting-honeycomb-pt1.html ).此外,要在 Honeycomb 上运行时避免兼容模式,请将targetSdkVersion
设置为 11 或更高(如http://geekyouup.blogspot.com/2011/05/supporting-honeycomb-pt1.html 所述)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.