【发布时间】:2015-06-05 14:18:50
【问题描述】:
我正在尝试让我的 ionic/Cordova 应用程序不支持小屏幕。所以我在项目文件夹根目录的 config.xml 中有这个:
<config-file parent="/" target="AndroidManifest.xml">
<supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="false" />
</config-file>
虽然在\platform\android\res\xml\里面生成的config.xml有以下内容很好:<config-file parent="/" target="AndroidManifest.xml">
<supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="false" />
</config-file>
,输出 AndroidManifest.xml 显示<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true"/>。
所以基本上,我的屏幕相关配置被忽略了,它只做默认设置。
如何真正关闭小屏幕支持?
【问题讨论】:
-
我尝试了相同的解决方案并得到了相同的结果。你有其他解决方案吗?
标签: android xml cordova ionic-framework ionic