[英]To display loader image while loading the next page in phonegap android application
I am developing a phonegap android application which consists of three html pages.Each page have some dynamic data that loads on page initialization. 我正在开发一个由三个html页面组成的phonegap android应用程序。每个页面都有一些动态数据,这些数据会在页面初始化时加载。 I want to display a loader image on the click of a button to navigate to other html page while loading it.
我想在单击按钮时显示一个加载器图像,以在加载它时导航到其他html页面。
How can i implement this? 我该如何实施? Is there any default function for this ?
是否有任何默认功能?
Above answer is also good there is another option manually you have to create one div on each HTML page like 上面的答案也很好,您必须手动在每个HTML页面上创建一个div,这是另一个手动选择
<div id="pageLoader">
<div>
<img src="images/ajax-loader.gif" /> // give here path of any loader image you want
</div>
</div>
then call $("#pageLoader").show() and $("#pageLoader").hide() wherever you want to show and hide loading. 然后在要显示和隐藏加载的任何地方调用$(“#pageLoader”)。show()和$(“#pageLoader”)。hide()。
for android use 供Android使用
navigator.notification.activityStart
for detail check this 详情请检查
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.