Phonegap:android

时间:2017-06-21 12:24:38

标签: android cordova phonegap

由于我的配置无法强制启动屏幕显示为andoroid,也许有人会建议ti可能出错?

在我的config.xml中,我在android:

上有启动画面的folling配置
    <platform name="android">
    <splash gap:qualifier="port-ldpi" height="320" src="res/splash/android/port-ldpi.9.png" width="200" />
        <splash gap:qualifier="land-ldpi" height="200" src="res/splash/android/land-ldpi.9.png" width="320" />
        <splash gap:qualifier="port-mdpi" height="480" src="res/splash/android/port-mdpi.9.png" width="320" />
        <splash gap:qualifier="land-mdpi" height="320" src="res/splash/android/land-mdpi.9.png" width="480" />
        <splash gap:qualifier="port-hdpi" height="800" src="res/splash/android/port-hdpi.9.png" width="480" />
        <splash gap:qualifier="land-hdpi" height="480" src="res/splash/android/land-hdpi.9.png" width="800" />
        <splash gap:qualifier="port-xhdpi" height="1280" src="res/splash/android/port-xhdpi.9.png" width="720" />
        <splash gap:qualifier="land-xhdpi" height="720" src="res/splash/android/land-xhdpi.9.png" width="1280" />
        <splash gap:qualifier="port-xxhdpi" height="1600" src="res/splash/android/port-xxhdpi.9.png" width="960" />
        <splash gap:qualifier="land-xxhdpi" height="960" src="res/splash/android/land-xxhdpi.9.png" width="1600" />
        <splash gap:qualifier="port-xxxhdpi" height="1920" src="res/splash/android/port-xxxhdpi.9.png" width="1280" />
        <splash gap:qualifier="land-xxxhdpi" height="1280" src="res/splash/android/land-xxxhdpi.9.png" width="1920" />
     ...
    </platform>

我尝试从配置中删除widthheight,尝试仅用gap:qualifierqualifier替换density,但它没有删除为我工作。

如果我只是放一个信号文件:

<platform name="android">
    <splash src="res/splash/android/splash.9.png" />

然后显示启动。

1 个答案:

答案 0 :(得分:0)

解决:列表中有默认<splash src="res/splash/android/splash.9.png" />是必须的。另请注意,应该没有widthheight属性。

相关问题