Summary In order to improve the application launching experience, we need to show a splash screen before the real content is ready. The splash screen can hold a single static PNG image at current stage.
Spec According to the source code of Tizen 2.x, we can follow its behavior. The splash screen just shows a static image and the image can be set in the config file. The splash screen displays on the main window during the whole launching progress. And the content is loaded in parallel in background. The splash screen disappears when the content is ready. The hiding animation may be needed. Affected Components xwalk UI Related feature in JIRA https://crosswalk-project.org/jira/browse/XWALK-1150 Target release Crosswalk 8 Target Platform Crosswalk on Tizen Implementation details 1. Define a new node in the "config.xml" to specify the splash screen settings, currently we just need to define the relative path of the splash image, see: <tizen:splash src="splash.png"/> 2. Define a class SplashScreen to control and implement the splash screen behavior. 3. At very beginning of application launching, the SplashScreen loads the splash screen image according to the setting in config file. 4. When the main window is created and before its content is ready, the SplashScreen draws the image on the main window. 5. The splash screen image is centered on the main window. And it keeps non-scaled if its size does not match the size of main window. 6. When the main content is loaded and ready to render, hide the splash screen. The hiding process may happen in animation. Thanks, Jingfu
_______________________________________________ Crosswalk-dev mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
