简体   繁体   English

如何使用Mosync创建打开的初始屏幕

[英]How to create opening splash screen with Mosync

I'm learning Mosync (android,iphone,etc. development tool) and I want to make Android application using HTML+Javascript 我正在学习Mosync (Android,iPhone等开发工具),并且想使用HTML + Javascript开发Android应用程序

Anyone can give me explanation and sample how to make splash screen with Mosync? 任何人都可以给我解释和示例如何使用Mosync制作启动画面?

Thanks. 谢谢。

I just started also ;). 我也刚开始;)。

What I found is description of HybridMoblet.cpp in which you can find how moblet is working and showPage(url) which is used in main.cpp. 我发现的是HybridMoblet.cpp的描述,您可以在其中找到moblet的工作方式以及main.cpp中使用的showPage(url)。 Look: https://github.com/MoSync/MoSync/blob/master/libs/Wormhole/HybridMoblet.cpp 外观: https : //github.com/MoSync/MoSync/blob/master/libs/Wormhole/HybridMoblet.cpp

As I was playing a minute with this code in main.cpp (-> this is the file in your project where everything starts ;)) and I could for example change color of Screen before webview is loaded -> you must wait for NativeUI::WebViewListener::webViewContentLoading described here: http://www.mosync.com/files/imports/doxygen/latest/html/group___native_u_i_lib.html#gac528e65c1e50f2b7968837bd904de613 当我花一分钟时间在main.cpp中使用此代码时(->这是项目中所有启动的文件;)),例如在加载Webview之前我可以更改Screen的颜色->您必须等待NativeUI: :WebViewListener :: webViewContentLoading此处描述: http : //www.mosync.com/files/imports/doxygen/latest/html/group___native_u_i_lib.html#gac528e65c1e50f2b7968837bd904de613

Hope this helps ;) Good luck 希望这有帮助,祝你好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM