You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MainActivity.cs 639B

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