-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathSetup.cs
35 lines (32 loc) · 1.11 KB
/
Setup.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System.Collections.Generic;
using System.Reflection;
using Acr.UserDialogs;
using Android.Support.Design.Widget;
using Chameleon.Core;
using Chameleon.Core.Helpers;
using MvvmCross;
using MvvmCross.Forms.Platforms.Android.Core;
using MvvmCross.IoC;
using MvvmCross.Platforms.Android;
namespace Chameleon.Droid
{
public class Setup : MvxFormsAndroidSetup<App, FormsApp>
{
protected override void InitializeFirstChance()
{
base.InitializeFirstChance();
UserDialogs.Init(() => Mvx.IoCProvider.Resolve<IMvxAndroidCurrentTopActivity>().Activity);
ActionSheetConfig.DefaultAndroidStyleId = Resource.Style.MainTheme_BottomSheet;
}
protected override void InitializeLastChance()
{
base.InitializeLastChance();
Mvx.IoCProvider.LazyConstructAndRegisterSingleton<IThemeService, ThemeService>();
}
protected override IEnumerable<Assembly> AndroidViewAssemblies =>
new List<Assembly>(base.AndroidViewAssemblies)
{
typeof(BottomNavigationView).Assembly
};
}
}