36 строки
1.2 KiB
C#
36 строки
1.2 KiB
C#
#region Copyright Syncfusion Inc. 2001-2024.
|
|
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
|
// Use of this code is subject to the terms of our license.
|
|
// A copy of the current license can be obtained at any time by e-mailing
|
|
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
// applicable laws.
|
|
#endregion
|
|
using System;
|
|
|
|
using Android.App;
|
|
using Android.Content.PM;
|
|
using Android.Runtime;
|
|
using Android.Views;
|
|
using Android.Widget;
|
|
using Android.OS;
|
|
|
|
namespace SampleBrowser.SfNavigationDrawer.Droid
|
|
{
|
|
[Activity(Label = "SampleBrowser SfNavigationDrawer", Icon = "@drawable/AppIcon", Theme = "@style/MainTheme", MainLauncher = false, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
|
|
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
|
|
{
|
|
protected override void OnCreate(Bundle bundle)
|
|
{
|
|
TabLayoutResource = Resource.Layout.Tabbar;
|
|
ToolbarResource = Resource.Layout.Toolbar;
|
|
|
|
base.OnCreate(bundle);
|
|
|
|
global::Xamarin.Forms.Forms.Init(this, bundle);
|
|
SampleBrowser.Core.Droid.CoreSampleBrowser.Init(Resources, null);
|
|
LoadApplication(new App());
|
|
}
|
|
}
|
|
}
|
|
|