mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-03-03 00:00:55 +08:00
22 lines
632 B
C#
22 lines
632 B
C#
using Android.App;
|
|
using Android.Content.PM;
|
|
using Avalonia;
|
|
using Avalonia.Android;
|
|
|
|
namespace Semi.Avalonia.Demo.Android;
|
|
|
|
[Activity(
|
|
Label = "Semi.Avalonia",
|
|
Theme = "@style/MyTheme.NoActionBar",
|
|
Icon = "@drawable/Icon",
|
|
MainLauncher = true,
|
|
LaunchMode = LaunchMode.SingleTop,
|
|
ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize | ConfigChanges.UiMode)]
|
|
public class MainActivity : AvaloniaMainActivity
|
|
{
|
|
protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)
|
|
{
|
|
return base.CustomizeAppBuilder(builder)
|
|
.WithSourceHanSansCNFont();
|
|
}
|
|
} |