Cordova Adding splash

Source: Internet
Author: User



Latest version of Cordova Add splash only need to overwrite config.



The Official document address is: Http://cordova.apache.org/docs/en/4.0.0/config_ref_images.md.html#Icons%20and%20Splash%20Screens






But according to the official instructions, there is no effect on Android:


 
 
<platform name="android">
        <!-- you can use any density that exists in the Android project -->
        <splash src="res/splash.png" density="land-hdpi"/>
        <splash src="res/splash.png" density="land-ldpi"/>
        <splash src="res/splash.png" density="land-mdpi"/>
        <splash src="res/splash.png" density="land-xhdpi"/>

        <splash src="res/splash.png" density="port-hdpi"/>
        <splash src="res/splash.png" density="port-ldpi"/>
        <splash src="res/splash.png" density="port-mdpi"/>
        <splash src="res/splash.png" density="port-xhdpi"/>
    </platform>


Later find StackOverflow, add the following sentence:



<name= "SplashScreen"  value= "screen"/>


The effect is there, the SplashScreen parameter in the official document does not find any description, do not know is not the old version of the parameters. This may be a bug in Cordova.






Ps:



Set the splash delay time to 10000 milliseconds:



    <name= "Splashscreendelay"  value= "10000"/>





Cordova Adding splash


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.