Browse Source

updated VectorRumble to include the monogame splash screen

dellis1972 13 years ago
parent
commit
2aadb425eb

+ 3 - 1
StarterKits/Android/VectorRumble/Activity1.cs

@@ -5,7 +5,9 @@ using Android.OS;
 
 
 namespace VectorRumble
 namespace VectorRumble
 {
 {
-	[Activity (Label = "VectorRumble", MainLauncher = true, Icon = "@drawable/icon")]
+	[Activity (Label = "VectorRumble", MainLauncher = true, 
+		Icon = "@drawable/icon", 
+		Theme = "@style/Theme.Splash")]
 	public class Activity1 : Microsoft.Xna.Framework.AndroidGameActivity
 	public class Activity1 : Microsoft.Xna.Framework.AndroidGameActivity
 	{
 	{
 		protected override void OnCreate(Bundle bundle)
 		protected override void OnCreate(Bundle bundle)

+ 14 - 0
StarterKits/Android/VectorRumble/Resources/Resource.designer.cs

@@ -29,6 +29,9 @@ namespace VectorRumble
 			// aapt resource value: 0x7f020000
 			// aapt resource value: 0x7f020000
 			public const int Icon = 2130837504;
 			public const int Icon = 2130837504;
 			
 			
+			// aapt resource value: 0x7f020001
+			public const int Splash = 2130837505;
+			
 			private Drawable()
 			private Drawable()
 			{
 			{
 			}
 			}
@@ -55,5 +58,16 @@ namespace VectorRumble
 			{
 			{
 			}
 			}
 		}
 		}
+		
+		public partial class Style
+		{
+			
+			// aapt resource value: 0x7f050000
+			public const int Theme_Splash = 2131034112;
+			
+			private Style()
+			{
+			}
+		}
 	}
 	}
 }
 }

BIN
StarterKits/Android/VectorRumble/Resources/drawable/Icon.png


BIN
StarterKits/Android/VectorRumble/Resources/drawable/Splash.png


+ 7 - 0
StarterKits/Android/VectorRumble/Resources/values/Styles.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+  <style name="Theme.Splash" parent="android:Theme">
+    <item name="android:windowBackground">@drawable/splash</item>
+    <item name="android:windowNoTitle">true</item>
+  </style>
+</resources>

+ 2 - 0
StarterKits/Android/VectorRumble/VectorRumble.csproj

@@ -211,6 +211,8 @@
     <AndroidResource Include="Resources\layout\Main.axml" />
     <AndroidResource Include="Resources\layout\Main.axml" />
     <AndroidResource Include="Resources\values\Strings.xml" />
     <AndroidResource Include="Resources\values\Strings.xml" />
     <AndroidResource Include="Resources\drawable\Icon.png" />
     <AndroidResource Include="Resources\drawable\Icon.png" />
+    <AndroidResource Include="Resources\drawable\Splash.png" />
+    <AndroidResource Include="Resources\values\Styles.xml" />
   </ItemGroup>
   </ItemGroup>
   <Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
   <Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
   <ItemGroup>
   <ItemGroup>