Пример #1
0
        private void prepareViews()
        {
            //Prevent bounces in UIScrollView
            AutomaticallyAdjustsScrollViewInsets = false;

            //Card border
            CurrentTimeEntryCard.Layer.CornerRadius  = 8;
            CurrentTimeEntryCard.Layer.ShadowColor   = UIColor.Black.CGColor;
            CurrentTimeEntryCard.Layer.ShadowOffset  = new CGSize(0, -2);
            CurrentTimeEntryCard.Layer.ShadowOpacity = 0.1f;
            CurrentTimeEntryElapsedTimeLabel.Font    = CurrentTimeEntryElapsedTimeLabel.Font.GetMonospacedDigitFont();

            // Card animations
            StopTimeEntryButton.Hidden  = true;
            CurrentTimeEntryCard.Hidden = true;

            //Hide play button for later animating it
            StartTimeEntryButton.Transform = CGAffineTransform.MakeScale(0.01f, 0.01f);

            //Prepare Navigation bar images
            reportsButton.SetImage(UIImage.FromBundle("icReports"), UIControlState.Normal);
            settingsButton.SetImage(UIImage.FromBundle("icSettings"), UIControlState.Normal);

            RunningEntryDescriptionFadeView.FadeLeft  = true;
            RunningEntryDescriptionFadeView.FadeRight = true;

            prepareSpiderViews();
            prepareEmptyStateView();

            TopConstraint.AdaptForIos10(NavigationController.NavigationBar);
        }
Пример #2
0
        private void prepareViews()
        {
            TopConstraint.AdaptForIos10(NavigationController.NavigationBar);

            // Title view
            NavigationItem.TitleView = titleButton = new UIButton(new CGRect(0, 0, 200, 40));
            titleButton.SetTitleColor(UIColor.Black, UIControlState.Normal);

            // Calendar configuration
            TopCalendarConstraint.Constant = calendarHeight;
        }
Пример #3
0
        private void prepareViews()
        {
            // Syncing indicator colors
            setIndicatorSyncColor(SyncedIcon);
            setIndicatorSyncColor(SyncingIndicator);
            setIndicatorSyncColor(LoggingOutIndicator);

            // Resize Switches
            TwentyFourHourClockSwitch.Resize();
            ManualModeSwitch.Resize();

            TopConstraint.AdaptForIos10(NavigationController.NavigationBar);
        }
Пример #4
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            TopConstraint.AdaptForIos10(NavigationController.NavigationBar);
            Title = Resources.Licenses;

            LicensesTableView.RowHeight           = UITableView.AutomaticDimension;
            LicensesTableView.EstimatedRowHeight  = 396;
            LicensesTableView.SectionHeaderHeight = 44;

            var source = new LicensesTableViewSource(LicensesTableView);

            LicensesTableView.Source = source;

            var bindingSet = this.CreateBindingSet <LicensesViewController, LicensesViewModel>();

            bindingSet.Bind(source).To(vm => vm.Licenses);

            bindingSet.Apply();
        }
Пример #5
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            TopConstraint.AdaptForIos10(NavigationController.NavigationBar);
            Title = Resources.About;

            var bindingSet = this.CreateBindingSet <AboutViewController, AboutViewModel>();

            bindingSet.Bind(PrivacyPolicyView)
            .For(v => v.BindTap())
            .To(vm => vm.OpenPrivacyPolicyCommand);

            bindingSet.Bind(TermsOfServiceView)
            .For(v => v.BindTap())
            .To(vm => vm.OpenTermsOfServiceCommand);

            bindingSet.Bind(LicensesView)
            .For(v => v.BindTap())
            .To(vm => vm.OpenLicensesCommand);

            bindingSet.Apply();
        }