28 lines
758 B
C#
Raw Normal View History

2024-02-14 23:32:20 +01:00
using Android.App;
using Android.Content.PM;
using Avalonia;
using Avalonia.Android;
2024-02-18 21:51:15 +01:00
using Avalonia.ReactiveUI;
2024-02-20 23:02:47 +01:00
using AvaloniaInside.Shell;
2024-02-14 23:32:20 +01:00
2024-02-20 23:02:47 +01:00
namespace Borepin.Android
2024-02-14 23:32:20 +01:00
{
2024-02-20 23:02:47 +01:00
[Activity(
Label = "Borepin.Android",
Theme = "@style/MyTheme.NoActionBar",
Icon = "@drawable/icon",
MainLauncher = true,
ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize | ConfigChanges.UiMode)]
public class MainActivity : AvaloniaMainActivity<App>
2024-02-14 23:32:20 +01:00
{
2024-02-20 23:02:47 +01:00
protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)
{
return base.CustomizeAppBuilder(builder)
.WithInterFont()
.UseReactiveUI()
.UseShell();
}
2024-02-14 23:32:20 +01:00
}
}