如何支持超大的屏幕在Android中? [英] How to support extra large screens in Android?

查看:136
本文介绍了如何支持超大的屏幕在Android中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据这个文档页面,Android 2.3的支持超大的屏幕尺寸( XLARGE),你可以声明你的应用程序中加入支持该尺寸安卓xlargeScreens =真正的<支持屏> 在清单文件标记。

According to this doc page, Android 2.3 supports extra large screen sizes (xlarge), and you can declare that your apps supports this size by adding android:xlargeScreens="true" in the <supports-screens> tag in the Manifest file.

但是,因为我的应用程序是针对Android 2.1的最低SDK版本,编译失败抱怨未知属性。

But, since my app is targeted for a minimum SDK version of Android 2.1, compilation fails complaining about unknown attribute.

我不希望使用新的SDK,因为我不会得到警告,如果我不小心用2.3的特定功能。

I don't want to use the new SDK because I won't get warnings if I accidentally use 2.3 specific features.

有没有出路?

推荐答案

您将不得不使用2.3 SDK,因为属性只需在较低的软件开发工具包是不知道。然而,你可以做的是设置你的目标SDK 2.1倍。

You'll have to use the 2.3 SDK because that attribute simply is not known in lower SDKs. However, what you can do is set your target SDK to be 2.1.

这篇关于如何支持超大的屏幕在Android中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆