Пример #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            ResourceManager.EnsureResources(
                typeof(UserController).Assembly,
                $"/data/data/{Application.Context.PackageName}/files");

            SetContentView(Resource.Layout.Main);

            var webView = FindViewById<WebView>(Resource.Id.webView);

            var politicianController = new UserController(
                                           new HybridWebView(webView));

            if (!RouteHandler.Controllers.ContainsKey("User"))
                RouteHandler.RegisterController("User", politicianController);
            politicianController.ShowLogin();
        }