cordova-plugin-splashscreen/README.md

19 lines
881 B
Markdown
Raw Normal View History

2013-04-04 01:47:26 +08:00
cordova-plugin-splashscreen
----------------------------
2013-06-25 05:16:22 +08:00
For Android,
In your config.xml, you need to add the following preference
`<preference name="splashscreen" value="foo" />`
Where foo is the name of the splashscreen file. Preferably a 9 patch file. Make sure to add your splashcreen files to your res/xml directory under the appropriate folders.
2013-06-25 05:19:01 +08:00
For Android, you also have to edit your projects main java file. You must add a second parameter representing a time delay to your super.loadUrl.
`super.loadUrl(Config.getStartUrl(), 10000);`
2013-07-19 07:15:55 +08:00
To install this plugin, follow the [Command-line Interface Guide](http://cordova.apache.org/docs/en/edge/guide_cli_index.md.html#The%20Command-line%20Interface).
2013-07-25 05:50:19 +08:00
If you are not using the Cordova Command-line Interface, follow [Using Plugman to Manage Plugins](http://cordova.apache.org/docs/en/edge/plugin_ref_plugman.md.html).