ASP源码.NET源码PHP源码JSP源码JAVA源码DELPHI源码PB源码VC源码VB源码Android源码
当前位置:首页 >> 低调看直播体育app软件下载 >> 移动开发 >> cordova splashscreen插件在android平台的使用

cordova splashscreen插件在android平台的使用(1/2)

来源:网络整理     时间:2015-12-17     关键词:require,Application

本篇文章主要介绍了"cordova splashscreen插件在android平台的使用",主要涉及到require,Application方面的内容,对于移动开发感兴趣的同学可以参考一下: 先到插件网站找这个插件插件网站地址 http://cordova.apache.org/plugins/ 然后找到了这个cordova-plugin-splas...

先到插件网站找这个插件

插件网站地址 http://cordova.apache.org/plugins/

然后找到了这个

cordova-plugin-splashscreen 

插件  地址是https://www.npmjs.com/package/cordova-plugin-splashscreen

通过命令行安装插件cordova plugin add cordova-plugin-splashscreen

安装完之后你发现项目多了点东西比如

仔细观察下项目的目录结构,你会发现

screen.png对应的就是欢迎页面。

你可以将自己的screen.png覆盖掉所有的,当然大小最好按照原来的各个尺寸。。

用eclipse运行一下。结果就ok了。

再说下插件的几个属性

Preferences

config.xml

  • SplashScreen (string). The resource name which is used for the displaying splash screen. Different platforms use values for this.

     
  • AutoHideSplashScreen (boolean, default to true). Indicates wherether hide splash screen automatically or not. Splash screen hidden after amount of time specified in the SplashScreenDelay preference.

     
  • SplashScreenDelay (number, default to 3000). Amount of time in milliseconds to wait before automatically hide splash screen.

     

在config.xml中可以配置

 resourcename指定的是资源的文件名。假如我们这里不设置。

默认就是

相关图片

相关文章