mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-29 14:35:45 +00:00
Splashscreen Android
This commit is contained in:
parent
72fa3ba598
commit
2729142ad1
5 changed files with 43 additions and 16 deletions
|
|
@ -152,5 +152,8 @@
|
|||
<ItemGroup>
|
||||
<AndroidResource Include="Resources\drawable-xxhdpi\wooden_sign.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AndroidResource Include="Resources\drawable\splash.xml" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
|
||||
</Project>
|
||||
|
|
@ -9,7 +9,8 @@ using Android.OS;
|
|||
|
||||
namespace AideDeJeu.Droid
|
||||
{
|
||||
[Activity(Label = "Aide de Jeu", Icon = "@drawable/black_book", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
|
||||
//[Activity(Label = "Aide de Jeu", Icon = "@drawable/black_book", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
|
||||
[Activity(Label = "Aide de Jeu", Icon = "@drawable/black_book", Theme = "@style/MyTheme.Splash", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
|
||||
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
|
||||
{
|
||||
protected override void OnCreate(Bundle bundle)
|
||||
|
|
|
|||
|
|
@ -2192,26 +2192,26 @@ namespace AideDeJeu.Droid
|
|||
// aapt resource value: 0x7f020053
|
||||
public const int avd_hide_password = 2130837587;
|
||||
|
||||
// aapt resource value: 0x7f020113
|
||||
public const int avd_hide_password_1 = 2130837779;
|
||||
|
||||
// aapt resource value: 0x7f020114
|
||||
public const int avd_hide_password_2 = 2130837780;
|
||||
public const int avd_hide_password_1 = 2130837780;
|
||||
|
||||
// aapt resource value: 0x7f020115
|
||||
public const int avd_hide_password_3 = 2130837781;
|
||||
public const int avd_hide_password_2 = 2130837781;
|
||||
|
||||
// aapt resource value: 0x7f020116
|
||||
public const int avd_hide_password_3 = 2130837782;
|
||||
|
||||
// aapt resource value: 0x7f020054
|
||||
public const int avd_show_password = 2130837588;
|
||||
|
||||
// aapt resource value: 0x7f020116
|
||||
public const int avd_show_password_1 = 2130837782;
|
||||
|
||||
// aapt resource value: 0x7f020117
|
||||
public const int avd_show_password_2 = 2130837783;
|
||||
public const int avd_show_password_1 = 2130837783;
|
||||
|
||||
// aapt resource value: 0x7f020118
|
||||
public const int avd_show_password_3 = 2130837784;
|
||||
public const int avd_show_password_2 = 2130837784;
|
||||
|
||||
// aapt resource value: 0x7f020119
|
||||
public const int avd_show_password_3 = 2130837785;
|
||||
|
||||
// aapt resource value: 0x7f020055
|
||||
public const int black_book = 2130837589;
|
||||
|
|
@ -2765,11 +2765,11 @@ namespace AideDeJeu.Droid
|
|||
// aapt resource value: 0x7f02010c
|
||||
public const int notification_icon_background = 2130837772;
|
||||
|
||||
// aapt resource value: 0x7f020111
|
||||
public const int notification_template_icon_bg = 2130837777;
|
||||
|
||||
// aapt resource value: 0x7f020112
|
||||
public const int notification_template_icon_low_bg = 2130837778;
|
||||
public const int notification_template_icon_bg = 2130837778;
|
||||
|
||||
// aapt resource value: 0x7f020113
|
||||
public const int notification_template_icon_low_bg = 2130837779;
|
||||
|
||||
// aapt resource value: 0x7f02010d
|
||||
public const int notification_tile_bg = 2130837773;
|
||||
|
|
@ -2781,7 +2781,10 @@ namespace AideDeJeu.Droid
|
|||
public const int spell_book = 2130837775;
|
||||
|
||||
// aapt resource value: 0x7f020110
|
||||
public const int wooden_sign = 2130837776;
|
||||
public const int splash = 2130837776;
|
||||
|
||||
// aapt resource value: 0x7f020111
|
||||
public const int wooden_sign = 2130837777;
|
||||
|
||||
static Drawable()
|
||||
{
|
||||
|
|
@ -4337,6 +4340,9 @@ namespace AideDeJeu.Droid
|
|||
// aapt resource value: 0x7f0b018a
|
||||
public const int MainTheme_Base = 2131427722;
|
||||
|
||||
// aapt resource value: 0x7f0b018c
|
||||
public const int MyTheme_Splash = 2131427724;
|
||||
|
||||
// aapt resource value: 0x7f0b002d
|
||||
public const int Platform_AppCompat = 2131427373;
|
||||
|
||||
|
|
|
|||
13
AideDeJeu/AideDeJeu.Android/Resources/drawable/splash.xml
Normal file
13
AideDeJeu/AideDeJeu.Android/Resources/drawable/splash.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<color android:color="#000000"/>
|
||||
</item>
|
||||
<item>
|
||||
<bitmap
|
||||
android:src="@drawable/icon"
|
||||
android:tileMode="disabled"
|
||||
android:gravity="center"
|
||||
/>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
|
@ -27,4 +27,8 @@
|
|||
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
|
||||
<item name="colorAccent">#FF4081</item>
|
||||
</style>
|
||||
|
||||
<style name="MyTheme.Splash" parent="MainTheme">
|
||||
<item name="android:windowBackground">@drawable/splash</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue