【问题标题】:How to change splash screen in sencha touch cordova app如何在 sencha touch cordova 应用程序中更改启动画面
【发布时间】:2015-04-20 07:57:56
【问题描述】:

我在 sencha touch cordova 中创建了一个应用程序。我已经使用cordova文件夹中config.xml文件中的以下代码成功更改了应用程序图标,但Windows 8.1手机的启动画面没有改变。

<platform name="wp8">
    <icon src="www/resources/icons/icon.png"/>
    <splash src="www/resources/startup/splash.png"/>
</platform>
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="7000" />

【问题讨论】:

    标签: cordova extjs splash-screen


    【解决方案1】:

    我尝试了具有特定高度和宽度属性的启动画面,这对我有用。

    例如:

    <platform name="wp8">
        <icon src="www/resources/startup/Icon.png"/>
        <splash height="1280" src="www/resources/startup/Splash-768x1280.png" width="768"/>
    </platform>
    

    有关启动画面配置的更多信息,请参阅: http://docs.phonegap.com/en/edge/cordova_splashscreen_splashscreen.md.html https://cordova.apache.org/docs/en/4.0.0/config_ref_images.md.html

    【讨论】:

    • 感谢它运行良好。但闪屏显示不正确。一秒就消失了。我想显示 7-8 秒。你能告诉解决办法吗?
    • 试试这个: SplashScreenDelay(以毫秒为单位的数字):启动屏幕图像显示的时间量。 或使用 org.apache.cordova.splashscreen 插件。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-08
    相关资源
    最近更新 更多