--- title: 可设置全屏显示的 Splashscreen description: Control the splash screen for your app. --- # cordova-plugin-splashscreen 在 [cordova-plugin-splashscreen](https://github.com/apache/cordova-plugin-splashscreen.git) 的基础上添加了全屏设置,处理了android启动app时黑屏的问题 - [Installation](#installation) - [Preferences](#preferences) * [config.xml](#configxml) - [Other](#other) ## Installation // 安装前请先卸载 cordova-plugin-splashscreen 插件 cordova plugin rm cordova-plugin-splashscreen // 安装插件 cordova plugin add https://github.com/shuto-cn/cordova-plugin-splashscreen.git ## Preferences ### config.xml - `SplashFullScreen` (boolean, default to `true`). 在app未设置全屏的情况下FadeSplash是否全屏显示 ```xml ``` ## Other - 关于android启动黑屏 请保持`SplashScreen`参数值为`screen`否则请修改`src/android/res/values/style.xml`中对应资源id - 其他配置及插件使用方法请移步[cordova-plugin-splashscreen](https://github.com/apache/cordova-plugin-splashscreen.git)