1.cordova 的安桌动画
cordova plugin add cordova-plugin-lottie-splashscreen
https://github.com/timbru31/cordova-plugin-lottie-splashscreen

一.安装androidX
cordova plugin add cordova-plugin-androidx https://github.com/dpa99c/cordova-plugin-androidx

二.安装
cordova plugin add cordova-plugin-androidx-adapter https://github.com/dpa99c/cordova-plugin-androidx-adapter

三.启动Enabling AndroidX

gradle.properties要包含的项目文件
android.useAndroidX=true
android.enableJetifier=true

四.安装 "cordova-plugin-splashscreen"

bug
<!-- 先静态取一张背景图, 1秒后消失 -->
<preference name="FadeSplashScreenDuration" value="0" />
<preference name="ShowSplashScreenSpinner" value="false" />
<preference name="SplashScreenDelay" value="1000" />
<preference name="Fullscreen" value="true" />
<!-- 然后进行动画 -->
<preference name="LottieHideTimeout" value="5" />
<preference name="LottieRemoteEnabled" value="false" />
<preference name="LottieLoopAnimation" value="false" />
<preference name="LottieAutoHideSplashScreen" value="false" />
<preference name="LottieBackgroundColor" value="#102029" />
<preference name="LottieFullScreen" value="true" />

<platform name="android">
<allow-intent href="market:*" />
<config-file parent="/manifest" target="AndroidManifest.xml" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
</config-file>
<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
<activity android:usesCleartextTraffic="true" />
</edit-config>
<icon density="ldpi" src="res/icon/android/drawable-ldpi/icon.png" />
<icon density="mdpi" src="res/icon/android/drawable-mdpi/icon.png" />
<icon density="hdpi" src="res/icon/android/drawable-hdpi/icon.png" />
<icon density="xhdpi" src="res/icon/android/drawable-xhdpi/icon.png" />
<icon density="xxhdpi" src="res/icon/android/drawable-xxhdpi/icon.png" />
<icon density="xxxhdpi" src="res/icon/android/drawable-xxxhdpi/icon.png" />
<splash density="land-hdpi" src="res/screen/android/drawable-land-hdpi/screen.png" />
<splash density="land-ldpi" src="res/screen/android/drawable-land-ldpi/screen.png" />
<splash density="land-mdpi" src="res/screen/android/drawable-land-mdpi/screen.png" />
<splash density="land-xhdpi" src="res/screen/android/drawable-land-xhdpi/screen.png" />
<splash density="land-xxhdpi" src="res/screen/android/drawable-land-xxhdpi/screen.png" />
<splash density="land-xxxhdpi" src="res/screen/android/drawable-land-xxxhdpi/screen.png" />
<splash density="port-hdpi" src="res/screen/android/drawable-port-hdpi/screen.png" />
<splash density="port-ldpi" src="res/screen/android/drawable-port-ldpi/screen.png" />
<splash density="port-mdpi" src="res/screen/android/drawable-port-mdpi/screen.png" />
<splash density="port-xhdpi" src="res/screen/android/drawable-port-xhdpi/screen.png" />
<splash density="port-xxhdpi" src="res/screen/android/drawable-port-xxhdpi/screen.png" />
<splash density="port-xxxhdpi" src="res/screen/android/drawable-port-xxxhdpi/screen.png" />
<preference name="LottieAnimationLocation" value="www/loex_startup.json" />
</platform>
<preference name="LottieRemoteEnabled" value="false" />
<preference name="LottieLoopAnimation" value="false" />
<preference name="LottieAutoHideSplashScreen" value="true" />
<preference name="SplashScreenDelay" value="" />
<preference name="FadeSplashScreenDuration" value="" />
<preference name="LottieFullScreen" value="true" />

cordova 的安桌动画的更多相关文章

  1. UNITY调用安桌方法出现 JNI: Init'd AndroidJavaClass with null ptr!

    UNITY调用安桌方法出现 JNI: Init'd AndroidJavaClass with null ptr! 原因是····· 得运行在一个真正的Android设备上! 得运行在一个真正的And ...

  2. 问题-[DelphiXE7]新建的安桌模拟器运行程序闪退

    问题现象:在DelphiXE7中的手机模拟器,每次运行程序,就闪退?问题处理:在 DelphiXE7的目录中,有一个AVD文件夹,删除后就好了.

  3. python如何玩“跳一跳”!(windows安桌版本请进!)

    最近"跳一跳",很火爆,有木有? 看了一下网上的教程,动作搭建了一下环境,就可以用脚本自动跑起来啦!!! 下面说一下android手机的实现过程: 首先,是python环境的搭建 ...

  4. 让VCL的皮肤用在手机程序里 让安桌程序不山寨[转]

    ① 就用那个bitmap设计工具,先打开vcl里的皮肤(..... \Embarcadero\RAD Studio\12.0\Redist\styles\vcl里) ② save as      转换 ...

  5. cocos2dx3.1 win7安装步骤及编译到安桌

    1. 下载及安装好工具 python2.7  ndk sdk ant cocos2dx3.1 eclipse 这些工具和曾经一样下载好放到同一文件夹下 加入环境变量 将python2.7的安装路径加入 ...

  6. AS3语法和UNITY C#语法的异同

      AS3 UNITY Sprite a = new Sprite(); trace(a.paent); 此时a.parent为null,还未AddChild到屏幕上, 一般用这个来判断在不在屏幕上 ...

  7. 网页程序 vs 桌面程序

    网页程序 vs 桌面程序 阅读:  评论:  作者:Rybby  日期:  来源:rybby.com 所谓的网页程序就是指以网页作为程序的操作界面,通过脚本语言“javascript”或其它客户端语言 ...

  8. appStore上传苹果应用程序软件发布流程

    如有疑问,或者需要人帮忙,可以到QQ群:460325065首先确定帐号是否能发布, https://developer.apple.com/account,如果你打开Provisioning Port ...

  9. 大叔也说Xamarin~Android篇~环境部署与破解

    回到目录 现在移动开发很HOT,以至于很多人都转向了它,大叔也不例外,这次有机制接触一下xamarin这个东西,其实之前也用于xamarin,只是用来写网页程序,没有接触到移动开发,对于xamarin ...

随机推荐

  1. 算法 dfs 二叉树的所有路径

    480. 二叉树的所有路径 给一棵二叉树,找出从根节点到叶子节点的所有路径. Example 样例 1: 输入:{1,2,3,#,5} 输出:["1->2->5",&q ...

  2. 同时引入依赖:spring-cloud-starter-gateway 和 spring-boot-starter-web,报错

    报错: 2019-09-19 11:19:21.437 WARN 72057 --- [ main] GatewayClassPathWarningAutoConfiguration : ****** ...

  3. IE 常见bug

    1. 双空白边浮动bug 最常见且最容易发现的bug 之一是IE6和更低版本中的双空白边浮动bug.顾名思义,这个Windows bug使任何浮动元素上的空白边加倍 这个bug 很容易修复,将元素的d ...

  4. Ofbiz项目学习——阶段性小结——视图

    一.简要介绍 1.按照SQL的视图概念:在 SQL 中,视图是基于 SQL 语句的结果集的可视化的表.视图包含行和列,就像一个真实的表.视图中的字段就是来自一个或多个数据库中的真实的表中的字段. 2. ...

  5. Angular pagination分页模块 只提供分页参数处理 不处理分页记录数据

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  6. SpringBoot 过滤器, 拦截器, 监听器 对比及使用场景

    1. 过滤器 (实现 javax.servlet.Filter 接口) ① 过滤器是在web应用启动的时候初始化一次, 在web应用停止的时候销毁. ② 可以对请求的URL进行过滤, 对敏感词过滤, ...

  7. c++、oc、swift初步评价

    c++是面向对象的多态语言: oc是面向对象的动态语言: swift是面向对象.面向协议.高阶类型.函数式编程语言:

  8. 关于 Nginx 配置的一些疑惑, Nginx 根据cookie 进行rewrite

    网站目录结构如下:/public/en.html/public/zh_cn.html/public/index.php 之前所有的非静态资源请求都交给 index.php现在要把首页的请求 不走PHP ...

  9. [Javascript] Working with Static Properties on a Class

    Classes are syntactic sugar over functions and functions are also referred to as "callable" ...

  10. YY天气使用

    前言: 需要使用http获取天气数据,本节说明调用YY天气的http接口获取天气数据 注册: http://www.yytianqi.com/ 登录注册的邮箱验证 验证完成以后: 获取的数据信息: { ...