如何定位仅平板设备在科尔多瓦Android应用 [英] How to target only tablet devices in a cordova Android app

查看:117
本文介绍了如何定位仅平板设备在科尔多瓦Android应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序的要求与科尔多瓦(混合应用)HTML5和CSS构建,而这个应用程序需要针对所有(只)平板设备,从7日起,以最大的(我相信这是10.1 )。可以在媒体上的标准实现有人建议设置查询此要求?
我很困惑决议和Android的DPI概念,建设有上述要求的混合应用程序时。

I have a requirement for an Android App to be built with Cordova (a hybrid App) HTML5 and CSS, and this app needs to target all (only) tablet devices starting from 7" to the largest (I believe it's 10.1"). Could someone advice on a standard implementation on media queries setup for this requirement? I am confused with the resolution and the DPI concepts of Android, when building a hybrid app with above requirement.

推荐答案

使用清单中此配置只允许平板电脑。

Use this configuration in Manifest to allow only Tablet devices.

<supports-screens
        android:largeScreens="true"
        android:normalScreens="false"
        android:requiresSmallestWidthDp="600"
        android:smallScreens="false"
        android:xlargeScreens="true" />

这篇关于如何定位仅平板设备在科尔多瓦Android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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