Android - 禁用屏幕支持 x 大屏幕
是否可以在 Android 清单文件中禁用对超大屏幕的支持?我们已经开发了一个应用程序,但尚未改变平板电脑的设计,因此我们希望在以后的版本之前禁用平板电脑支持。
我们使用phonegap/html5 开发了该应用程序——因此我们的Java 知识有限。
我的清单文件列出了以下内容 -
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
是否有适用于超大屏幕的属性?
干杯 保罗
Is it possible to disable support for extra large screens in the android manifest file? We have developed an app, but have yet to alter the design for tablets, so we would like to disable tablet support until a later release.
We have developed the app using phonegap/html5 - so our Java knowledge is limited.
My manifest file lists the following -
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
is there a property for extra large screens?
Cheers
Paul
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
保罗,看看 http://developer.android.com/guide/topics/ manifest/supports-screens-element.html
禁用超大屏幕的代码是
从我所看到的,这仍然允许您从 Eclipse 在平板电脑设备上运行应用程序,但应该在发布时禁用它。
Paul, have a look at http://developer.android.com/guide/topics/manifest/supports-screens-element.html
The code to disable extra large screens is
From what I'm seeing, this still allows you to run the app on a tablet device from Eclipse but should disable it at publish time.
查看 兼容屏幕 元素Manifest,它允许您自定义您的应用程序支持哪种屏幕。希望这有帮助。
Take a look at the compatible-screens element in the Manifest, it lets you customize, what kind of screens does your application support. Hope this helps.
您可以阅读有关支持多屏幕的文章,或者您可以阅读有关优化< a href="http://developer.android.com/guide/practices/optimizing-for-3.0.html" rel="nofollow">平板电脑应用 或者您可以让您的应用伸展 (就像 iPhone 应用程序在 iPad 上运行一样)。
我认为现阶段第 3 篇文章更合适。祝你好运。
You can read this article about Supporting Multiple screens or you can read about optimizing your app for tablet or you can let your app to strech (just like iPhone app runs on iPad).
I think 3rd article would be more appropriate at this stage. Good luck.