cordova android 启动画面快速消失
cordova android spalsh screen faddes off quickly
我正在使用 apache cordova 创建一个 android 应用程序并构建 运行 使用 eclipse mars 的应用程序。问题是 spalsh 屏幕消失得太快了。我希望它停留 3000 秒然后开始褪色,而它从一开始就开始褪色。还试图设置衰减但没有运气。这是我的配置文件。请帮助
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.example.eximapp7" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Useful Addresses</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<access origin="tel:*" launch-external="yes"/>
<access origin="geo:*" launch-external="yes"/>
<access origin="mailto:*" launch-external="yes"/>
<access origin="sms:*" launch-external="yes"/>
<access origin="market:*" launch-external="yes"/>
<platform name="android">
<allow-intent href="market:*" />
<feature name="SocialSharing">
<param name="android-package" value="nl.xservices.plugins.SocialSharing" />
</feature>
<preference name="FadeSplashScreen" value="false" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<engine name="android" spec="~5.2.1" />
<plugin name="cordova-plugin-splashscreen" spec="~3.2.2" />
<preference name="SplashMaintainAspectRatio" value="false" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="FadeSplashScreen" value="false" />
<preference name="orientation" value="portrait" />
<plugin name="cordova-plugin-geolocation" spec="~2.2.0" />
<plugin name="cordova-plugin-x-socialsharing" spec="~5.1.1" />
</widget>
将启动画面延迟设置为 6 秒
<preference name="SplashScreenDelay" value="6000" />
我正在使用 apache cordova 创建一个 android 应用程序并构建 运行 使用 eclipse mars 的应用程序。问题是 spalsh 屏幕消失得太快了。我希望它停留 3000 秒然后开始褪色,而它从一开始就开始褪色。还试图设置衰减但没有运气。这是我的配置文件。请帮助
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.example.eximapp7" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Useful Addresses</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<access origin="tel:*" launch-external="yes"/>
<access origin="geo:*" launch-external="yes"/>
<access origin="mailto:*" launch-external="yes"/>
<access origin="sms:*" launch-external="yes"/>
<access origin="market:*" launch-external="yes"/>
<platform name="android">
<allow-intent href="market:*" />
<feature name="SocialSharing">
<param name="android-package" value="nl.xservices.plugins.SocialSharing" />
</feature>
<preference name="FadeSplashScreen" value="false" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<engine name="android" spec="~5.2.1" />
<plugin name="cordova-plugin-splashscreen" spec="~3.2.2" />
<preference name="SplashMaintainAspectRatio" value="false" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="FadeSplashScreen" value="false" />
<preference name="orientation" value="portrait" />
<plugin name="cordova-plugin-geolocation" spec="~2.2.0" />
<plugin name="cordova-plugin-x-socialsharing" spec="~5.1.1" />
</widget>
将启动画面延迟设置为 6 秒
<preference name="SplashScreenDelay" value="6000" />