committed by
GitHub
8 changed files with 66 additions and 46 deletions
@ -1,18 +1,16 @@ |
|||
using Android.App; |
|||
using Android.OS; |
|||
using Android.Content.PM; |
|||
using Avalonia; |
|||
using Avalonia.Android; |
|||
|
|||
namespace ControlCatalog.Android |
|||
{ |
|||
[Activity(Label = "ControlCatalog.Android", Theme = "@style/MyTheme.NoActionBar", Icon = "@drawable/icon", LaunchMode = LaunchMode.SingleInstance, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize)] |
|||
public class MainActivity : AvaloniaActivity |
|||
public class MainActivity : AvaloniaActivity<App> |
|||
{ |
|||
protected override void OnCreate(Bundle? savedInstanceState) |
|||
protected override AppBuilder CustomizeAppBuilder(AppBuilder builder) |
|||
{ |
|||
base.OnCreate(savedInstanceState); |
|||
|
|||
Content = new MainView(); |
|||
return base.CustomizeAppBuilder(builder); |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -1,7 +0,0 @@ |
|||
namespace Avalonia.iOS |
|||
{ |
|||
public class SingleViewLifetime |
|||
{ |
|||
|
|||
} |
|||
} |
|||
Loading…
Reference in new issue