Example #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.activity_signin);
            InitButtonsAndInputs();
            //TODO when Android.Arch.Lifecycle lib gets updated use this provider, so various lifecycle and configuration changes won't affect data stored in viewmodel
            //SignInViewModel = ViewModelProviders.Of(this).Get(Java.Lang.Class.FromType(typeof(SignInViewModel))) as SignInViewModel;

            AnimationExtension.AnimateBackground(FindViewById(Resource.Id.constraintLayoutSingIn));
        }
Example #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            this.SetSupportActionBar();
            SetContentView(Resource.Layout.activity_history);

            extraName   = Intent.GetStringExtra(EXTRA_NAME);
            extraReason = Intent.GetIntExtra(EXTRA_REASON, 0);

            AnimationExtension.AnimateBackground(FindViewById(Resource.Id.constraintLayoutHistory));
            InitView();
            InitAdapterAsync();
        }