protected override void InitBindings()
        {
            MainActivity.CurrentContext.RequestedOrientation = ScreenOrientation.Portrait;
            Bindings = new List <Binding>();
            Bindings.Add(this.SetBinding(() => ViewModel.UserNameInput, () => UsernameInput.Text, BindingMode.TwoWay));
            Bindings.Add(this.SetBinding(() => ViewModel.Authenticating, () => LoginPageLoadingSpinner.Visibility,
                                         BindingMode.OneWay)
                         .ConvertSourceToTarget(Converters.BoolToVisibility));
            Bindings.Add(this.SetBinding(() => ViewModel.PasswordInput, () => PasswordInput.Text, BindingMode.TwoWay));

            Bindings.Add(
                this.SetBinding(() => ViewModel.LogOutButtonVisibility,
                                () => LoginPageLogOutButton.Visibility).ConvertSourceToTarget(Converters.BoolToVisibility));

            PasswordInput.SetOnEditorActionListener(new OnEditorActionListener(action =>
            {
                if (action == ImeAction.Done)
                {
                    ViewModel.LogInCommand.Execute(null);
                }
                AndroidUtilities.HideKeyboard();
            }));

            LoginPageRegisterButton.SetOnClickListener(new OnClickListener(v => ViewModel.NavigateRegister.Execute(null)));
            LoginPageProblemsButton.SetOnClickListener(new OnClickListener(v => ViewModel.ProblemsCommand.Execute(null)));

            SignInButton.SetOnClickListener(new OnClickListener(v =>
            {
                ViewModel.LogInCommand.Execute(null);
                AndroidUtilities.HideKeyboard();
            }));
            LoginPageLogOutButton.SetOnClickListener(new OnClickListener(v => ViewModel.LogOutCommand.Execute(null)));
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Splash);

            signInBtn = FindViewById<SignInButton>(Resource.Id.splash_signIn);
            signInBtn.SetOnClickListener(this);
            signInBtn.Enabled = false;

            loadingText = FindViewById<TextView>(Resource.Id.splash_loading);

            apiClient = new GoogleApiClientBuilder(this)
                .AddConnectionCallbacks(this)
                .AddOnConnectionFailedListener(this)
                .AddApi(PlusClass.API)
                .AddScope(PlusClass.ScopePlusProfile).Build();

            signOut = Intent.GetBooleanExtra("signOut", false);
            revokeAccess = Intent.GetBooleanExtra("revokeGoogle", false);

            ThreadPool.QueueUserWorkItem(o => AttemptLoad());
        }