MainActivity.cs 741 B

123456789101112131415161718192021222324
  1. using Android.App;
  2. using Android.Content.PM;
  3. using Avalonia;
  4. using Avalonia.Android;
  5. using Avalonia.ReactiveUI;
  6. namespace VeloeAvaloniaKemonoPartyApp.Android
  7. {
  8. [Activity(
  9. Label = "VeloeAvaloniaKemonoPartyApp.Android",
  10. Theme = "@style/MyTheme.NoActionBar",
  11. Icon = "@drawable/icon",
  12. MainLauncher = true,
  13. ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize | ConfigChanges.UiMode)]
  14. public class MainActivity : AvaloniaMainActivity<App>
  15. {
  16. protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)
  17. {
  18. return base.CustomizeAppBuilder(builder)
  19. .WithInterFont()
  20. .UseReactiveUI();
  21. }
  22. }
  23. }