Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <resources>
  2. <style name="Theme.Splash" parent="android:Theme">
  3. <item name="android:windowBackground">@drawable/splash</item>
  4. <item name="android:windowNoTitle">true</item>
  5. </style>
  6. </resources>
  7.  
  8. namespace SplashScreen
  9. {
  10. using System.Threading;
  11.  
  12. using Android.App;
  13. using Android.OS;
  14.  
  15. [Activity(Theme = "@style/Theme.Splash", MainLauncher = true, NoHistory = true)]
  16. public class SplashActivity : Activity
  17. {
  18. protected override void OnCreate(Bundle bundle)
  19. {
  20. base.OnCreate(bundle);
  21. Thread.Sleep(10000); // Simulate a long loading process on app startup.
  22. StartActivity(typeof(Activity1));
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement