-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed unused resources.
- Loading branch information
Showing
10 changed files
with
97 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 19 additions & 29 deletions
48
samples/ControlCatalog.Android/Resources/Resource.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
13 changes: 13 additions & 0 deletions
13
samples/ControlCatalog.Android/Resources/drawable/splash_screen.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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="@color/splash_background"/> | ||
</item> | ||
|
||
<item android:drawable="@drawable/icon" | ||
android:width="120dp" | ||
android:height="120dp" | ||
android:gravity="center" /> | ||
|
||
</layer-list> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="splash_background">#FFFFFF</color> | ||
</resources> |
17 changes: 17 additions & 0 deletions
17
samples/ControlCatalog.Android/Resources/values/styles.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<resources> | ||
|
||
<style name="MyTheme"> | ||
</style> | ||
|
||
<style name="MyTheme.NoActionBar"> | ||
<item name="android:windowActionBar">false</item> | ||
<item name="android:windowNoTitle">true</item> | ||
</style> | ||
|
||
<style name="MyTheme.Splash" parent ="MyTheme.NoActionBar"> | ||
<item name="android:windowBackground">@drawable/splash_screen</item> | ||
<item name="android:windowContentOverlay">@null</item> | ||
</style> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Android.App; | ||
using Android.Content; | ||
using Android.OS; | ||
using Application = Android.App.Application; | ||
|
||
using Avalonia; | ||
|
||
namespace ControlCatalog.Android | ||
{ | ||
[Activity(Theme = "@style/MyTheme.Splash", MainLauncher = true, NoHistory = true)] | ||
public class SplashActivity : Activity | ||
{ | ||
protected override void OnCreate(Bundle savedInstanceState) | ||
{ | ||
base.OnCreate(savedInstanceState); | ||
} | ||
|
||
protected override void OnResume() | ||
{ | ||
base.OnResume(); | ||
|
||
if (Avalonia.Application.Current == null) | ||
{ | ||
AppBuilder.Configure<App>() | ||
.UseAndroid() | ||
.SetupWithoutStarting(); | ||
} | ||
|
||
StartActivity(new Intent(Application.Context, typeof(MainActivity))); | ||
} | ||
} | ||
} |