飞溅屏幕加载在四个环境(Android,ios,黑莓和窗口)使用html编码或常见的插件混合应用程序 [英] Splash Screen with loading in four environment(android,ios,blackberry and windows) using html coding or common plugin for hybrid apps

查看:132
本文介绍了飞溅屏幕加载在四个环境(Android,ios,黑莓和窗口)使用html编码或常见的插件混合应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在所有主要环境(Android,ios,黑莓和Windows)中的html,css和javascript或常见的插件加载指示器或忙指示器或进度栏的闪屏,可以添加在我的网络资源代码和输出将在所有环境中看到。我如何实现这一点。

I want a splash screen with a loading indicator or busy indicator or progress bar in all major environment(android,ios,blackberry and windows) in html,css and javascript or common plugin which can added in my web resource code and the output will be seen in all the environment. How can i implement this. Any useful resource or common plugin to do this.

推荐答案

编辑6月6日:

Edit June 6th:

在Android中,您可以尝试做什么:

What you can try to do, in Android, is:


  1. 删除drawable \ splash.9.png image

  2. 在src\com ... yourApp.java中添加 onCreate p>

  1. Delete the drawable\splash.9.png image
  2. In src\com... yourApp.java add after the onCreate

super.onCreate(savedInstanceState);
this.setStringProperty("LoadingDialog", "mytext1");


这将显示一些对话框, mytext1。
应用程序加载完成后会退出对话框。

This will display some dialog with the text "mytext1". The dialog will be dismissed once the app finished loading.

从这里开始,您可以添加自己的本机代码,它 - 也许。你需要实现它,看看它是否工作,但这是做它的位置。

From here on you can add your own native code to display an image with some indicator on top of it - maybe. you'll need to implement that and see if it works, but this is the location to do it.

这是所有本机,而不是网络。您不能在网络代码中执行此操作。

This is all native, not web. You can't do this in web code.

在iOS中也是如此。

不知道BB和WP8。

And similarly in iOS.
Don't know about BB and WP8.

Balaji,

此问题的答案与您已经回答的问题完全不同: a href =http://stackoverflow.com/questions/24028556/splash-screen-with-busy-indicator-in-worklight-app>在工作流应用程序中使用忙碌指示符的Splash屏幕。这是一个重复的问题。

Balaji,
The answer to this question will not be any different from your exact already-answered question: Splash Screen with busy Indicator in worklight app. This is a duplicate question.

在Worklight 6.2(本月发布,2014年6月)之前,您无法行为作为您描述的。再问这不会改变答案。 : - )

Prior to Worklight 6.2 (to be released this month, June 2014), you cannot create a custom splash screen behavior as the one you've described. Asking this again is not going to change the answer. :-)

这是无法使用 web 代码,因为启动屏幕是从 native 框架和应用程序正在初始化。要改变启动屏幕的行为,你需要编写本地代码,以产生不同的体验。

This is not doable using web code, because the splash screen is invoked from native code while the framework and application are being initialized. To alter the behavior of the splash screen you need to write native code, to produce a different experience.

如上所述,这将是可能的Worklight 6.2,Android和iOS( 目前可能不适用于Windows Phone和BlackBerry)。

As said, this will be possible in Worklight 6.2, for Android and iOS (= will not be possible for Windows Phone and BlackBerry at this time).

this:

As an illustration, you could do something that looks like this:

这篇关于飞溅屏幕加载在四个环境(Android,ios,黑莓和窗口)使用html编码或常见的插件混合应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆