// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. using Android.App; using Android.Content; using Android.OS; using Android.Views; using Android.Widget; using Android.Content.PM; using MyDriving.ViewModel; using MyDriving.Utils; using Android.Support.V4.Content; using Android.Graphics; namespace MyDriving.Droid.Activities { [Activity(Label = "Login", Theme = "@style/MyThemeDark", ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation, ScreenOrientation = ScreenOrientation.Portrait)] public class LoginActivity : BaseActivity { LoginViewModel viewModel; protected override int LayoutResource => Resource.Layout.activity_login; protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); if ((int) Build.VERSION.SdkInt >= 21) { Window.SetStatusBarColor(new Color(ContextCompat.GetColor(this, Resource.Color.primary_dark))); Window.DecorView.SystemUiVisibility = StatusBarVisibility.Visible; } viewModel = new LoginViewModel(); viewModel.PropertyChanged += ViewModel_PropertyChanged; var twitter = FindViewById