Skip to content

Commit 9c9d14e

Browse files
committed
Fix icon crazyness on Playground.Droid and set the splashscreen to appcompat version
1 parent 8c20f09 commit 9c9d14e

4 files changed

Lines changed: 14 additions & 9 deletions

File tree

Projects/Playground/Playground.Droid/MainApplication.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Android.App;
77
using Android.Runtime;
88
using MvvmCross.Droid.Support.V7.AppCompat;
9-
using MvvmCross.Platforms.Android.Views;
109
using Playground.Core;
1110

1211
namespace Playground.Droid

Projects/Playground/Playground.Droid/Playground.Droid.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@
114114
<SubType>Designer</SubType>
115115
</AndroidResource>
116116
<AndroidResource Include="Resources\values\Strings.xml" />
117-
<AndroidResource Include="Resources\mipmap-hdpi\Icon.png" />
118-
<AndroidResource Include="Resources\mipmap-mdpi\Icon.png" />
119-
<AndroidResource Include="Resources\mipmap-xhdpi\Icon.png" />
120-
<AndroidResource Include="Resources\mipmap-xxhdpi\Icon.png" />
121-
<AndroidResource Include="Resources\mipmap-xxxhdpi\Icon.png" />
117+
<AndroidResource Include="Resources\mipmap-hdpi\icon.png" />
118+
<AndroidResource Include="Resources\mipmap-mdpi\icon.png" />
119+
<AndroidResource Include="Resources\mipmap-xhdpi\icon.png" />
120+
<AndroidResource Include="Resources\mipmap-xxhdpi\icon.png" />
121+
<AndroidResource Include="Resources\mipmap-xxxhdpi\icon.png" />
122122
<AndroidResource Include="Resources\layout\SplashScreen.axml" />
123123
<AndroidResource Include="Resources\values\styles.xml" />
124124
<AndroidResource Include="Resources\values-v21\styles.xml" />

Projects/Playground/Playground.Droid/Resources/layout/SplashScreen.axml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:orientation="vertical"
44
android:layout_width="match_parent"
5-
android:layout_height="match_parent">
5+
android:layout_height="match_parent"
6+
android:background="@color/colorAccent">
67
<TextView
78
android:layout_width="match_parent"
89
android:layout_height="match_parent"

Projects/Playground/Playground.Droid/SplashScreen.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
using Android.App;
66
using Android.Content.PM;
7-
using MvvmCross.Platforms.Android.Views;
7+
using MvvmCross.Droid.Support.V7.AppCompat;
88

99
namespace Playground.Droid
1010
{
@@ -15,11 +15,16 @@ namespace Playground.Droid
1515
, Theme = "@style/AppTheme.Splash"
1616
, NoHistory = true
1717
, ScreenOrientation = ScreenOrientation.Portrait)]
18-
public class SplashScreen : MvxSplashScreenActivity
18+
public class SplashScreen : MvxSplashScreenAppCompatActivity
1919
{
2020
public SplashScreen()
2121
: base(Resource.Layout.SplashScreen)
2222
{
2323
}
24+
25+
protected override void OnResume()
26+
{
27+
base.OnResume();
28+
}
2429
}
2530
}

0 commit comments

Comments
 (0)