Phonegap / cordova android应用底部的空白

时间:2018-11-27 12:09:14

标签: android cordova phonegap-build

我正在使用Phonegap Build构建Android应用,但正在获得带有黑色空白区域的应用,该区域略大于应该存在导航栏的导航栏的大小。

App in Portrait mode App in Landscape mode

我的config.xml在下面

<plugin name="cordova-plugin-camera" source="npm" spec="~2.1.1" />
<plugin name="cordova-plugin-console" source="npm" spec="~1.0.2" />
<plugin name="cordova-plugin-device" source="npm" spec="~1.1.1" />
<plugin name="cordova-plugin-dialogs" source="npm" spec="~1.2.0" />
<plugin name="cordova-plugin-media" source="npm" spec="~2.2.0" />
<plugin name="cordova-plugin-nativestorage" source="npm" spec="~2.3.2" />
<plugin name="cordova-plugin-network-information" source="npm" spec="~1.2.0" />
<plugin name="cordova-plugin-statusbar" source="npm" spec="~2.4.2" />
<plugin name="cordova-plugin-vibration" source="npm" spec="~2.1.0" />
<plugin name="cordova-plugin-whitelist" source="npm" spec="~1.2.1" />

<gap:config-file platform="android" parent="/manifest">
    <supports-screens 
        android:xlargeScreens="true" 
        android:largeScreens="true" 
        android:normalScreens="true" 
        android:smallScreens="true" 
        android:resizeable="true" 
        android:anyDensity="true" />
    <application android:theme="@android:style/Theme.Light.NoTitleBar" >
        <activity android:windowSoftInputMode="adjustResize"></activity>
        <activity android:theme="@android:style/Theme.Light.NoTitleBar" ></activity>
    </application>
</gap:config-file>
<preference name="StatusBarBackgroundColor" value="#58D4C9" />
<preference name="StatusBarStyle" value="lightcontent" />
<preference name="EnableViewportScale" value="true" />

<preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="14" />
<preference name="UIWebViewBounce" value="false" />

我尝试过preference FullScreen以及大多数与屏幕,沉浸式视图和导航栏相关的插件,但是没有任何运气。有人知道缺少什么吗?

重复:Cordova Fullscreen black bars on Android

0 个答案:

没有答案