开发者

Adding a loading image for the Android application when it's built using Dreamweaver 5.5 and phonegap.js

开发者 https://www.devze.com 2023-03-07 01:42 出处:网络
Using Dreamweaver 5.5 and phonegap.js to build a native android app, is it possible to set a loading screen while the application boots?

Using Dreamweaver 5.5 and phonegap.js to build a native android app, is it possible to set a loading screen while the application boots?

I've been trying to figure this out, but I can't find much documentat开发者_StackOverflow中文版ion on it.

Are there any suggestions?


Depending on the size of the view you're loading initially, I'd suggest putting an image view that's your boot image into the view, while hiding all other elements (View.GONE) initially. Once you've done all the loading/initializing you want, you can View.VISIBLE the elements you want to show and View.GONE the loading image.


I have managed to answer my own question. Dreamweaver creates a compatible project folder for Eclipse. Thus, if you load up your Eclipse with the Android SDK and ADT installed, you can easily add a splash image to your res folder. From there you can recompile your .apk file. Worked like a charm.


Dreamweaver does create a res folder with a splash screen PNG, but you don't need Eclipse to recompile it. Just change those PNGs and recompile with dreamweaver, because it will use the new PNGs. No need to change any settings, just PNGs.

0

精彩评论

暂无评论...
验证码 换一张
取 消