Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <resources>
- <style name="Theme.Splash" parent="android:Theme">
- <item name="android:windowBackground">@drawable/splash</item>
- <item name="android:windowNoTitle">true</item>
- </style>
- </resources>
- namespace SplashScreen
- {
- using System.Threading;
- using Android.App;
- using Android.OS;
- [Activity(Theme = "@style/Theme.Splash", MainLauncher = true, NoHistory = true)]
- public class SplashActivity : Activity
- {
- protected override void OnCreate(Bundle bundle)
- {
- base.OnCreate(bundle);
- Thread.Sleep(10000); // Simulate a long loading process on app startup.
- StartActivity(typeof(Activity1));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement