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.
精彩评论