Day 2:增加SplashScreen


If you want to add just single image, then create a pic in the size of 480*800 and name it as SplashScreenImage.jpg and put that image in the root folder.
Done! Splash Screen will be displayed on the app.
If you want to add several images with respect to the screen resolution, then create three pictures in the sizes of 480*800, 768*1280, and 720*1280 and name those pic as
SplashScreenImage.screen-WVGA.jpg,
SplashScreenImage.screen-WXGA.jpg,
SplashScreenImage.screen-720p.jpg and put these pictures in the root folder.
Done! Splash Screen will be displayed on the app with respect to phone's native screen resolution.
NOTE:
To modify the displaying time of SplashScreen, following code may be useful. Paste below code after InitializeComponent();
Thread.Sleep(2000);
It means, the app will be activated after 2000 milli seconds. You can change as per your wish. Hope, this solves your doubt.!!

posted @ 2016-08-25 14:27  段二  阅读(150)  评论(0)    收藏  举报