gpt4 book ai didi

android - 应用程序构建包后,启动屏幕和启动屏幕之间出现白屏index.html sencha touch

转载 作者:行者123 更新时间:2023-11-29 03:37:03 27 4
gpt4 key购买 nike

我构建了我的应用程序包,一切似乎都工作正常,但在闪屏后设备上显示白屏 2 秒。我看到了很多关于这个问题的问题,但没有找到我的应用程序出错的适当解决方案。我正在使用手机间隙。请帮助我

这是我的 index.html

 <!DOCTYPE HTML>
<html manifest="" lang="en-US">

<head>
<meta
charset="UTF-8">
<meta
name="format-detection" content="telephone=no">

<title>Test APP </title>
<link href="touch/resources/css/app.css" rel="stylesheet" type="text/css" />
<script src="touch/sencha-touch-all-debug.js" type="text/javascript"></script>
<script src="js-cordova/ios/cordova-2.7.0.js" type="text/javascript"></script>
<script src="js-cordova/ios/barcodescanner.js"type="text/javascript"></script>
<script type="text/javascript">
document.addEventListener("deviceready", onDeviceReady,true);
document.addEventListener("backbutton", onBackKeyDown,false);
function onDeviceReady()
{
setTimeout(function()
{
navigator.splashscreen.hide();

},50000);
document.addEventListener("backbutton", onBackKeyDown,false);
}

</script>
<style type="text/css">
html, body {
height: 100%;
background-color: #7f1a1a;
background : url('uploads/Samsung.png') center no-repeat;
}
#appLoadingIndicator {
position: absolute;
top: 50%;
margin-top: -15px;
text-align: center;
width: 100%;
height: 30px;
-webkit-animation-name: appLoadingIndicator;
-webkit-animation-duration: 0.5s;
-webkit-animation-iteration-count: infinite;

}
#appLoadingIndicator > * {
display: inline-block;
height: 30px;
-webkit-border-radius: 15px;
margin: 0 5px;
width: 30px;
opacity: 0.8;
}

@-webkit-keyframes appLoadingIndicator{
0% {
opacity: 0.8
}
50% {
opacity: 0
}
100% {
opacity: 0.8
}
}
</style>
<!-- The line below must be kept intact for Sencha Command to build your application -->
<script id="microloader" type="text/javascript" src="touch/microloader/development.js"></script>
</head>
<body>
<div id="appLoadingIndicator">

</div>
</body>

</html>

最佳答案

我添加了cordova闪屏插件以避免corodova屏幕和sencha加载之间出现白色,现在我使用cordova附带的sencha touch2.3,所以我现在看不到任何白色屏幕。

关于android - 应用程序构建包后,启动屏幕和启动屏幕之间出现白屏index.html sencha touch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19036891/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com