Beispiel #1
0
        protected override void SetupLayoutConstraints()
        {
            base.SetupLayoutConstraints();

            this.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints();

            this.AddConstraints(
                CollectionView.AtTopOf(this),
                CollectionView.AtLeadingOf(this),
                CollectionView.AtTrailingOf(this),
                CollectionView.Height().EqualTo(CollectionHeight),
                PageControl.AtBottomOf(CollectionView, 25),
                PageControl.WithSameCenterX(this),
                PageControl.Height().EqualTo(8),
                _topDevider.Below(CollectionView),
                _topDevider.AtLeadingOf(this),
                _topDevider.AtTrailingOf(this),
                _topDevider.Height().EqualTo(Theme.Dimensions.DeviderWidth),
                StartDateControlView.Below(_topDevider, 6),
                StartDateControlView.AtLeadingOf(this, 10),
                EndDateControlView.WithSameTop(StartDateControlView),
                EndDateControlView.AtTrailingOf(this, 12),
                _bottomDevider.Below(StartDateControlView, 4),
                _bottomDevider.AtLeadingOf(this),
                _bottomDevider.AtTrailingOf(this),
                _bottomDevider.Height().EqualTo(Theme.Dimensions.DeviderWidth),
                StateSegmentedControl.Below(_bottomDevider, 32),
                StateSegmentedControl.WithSameCenterX(this));
        }
Beispiel #2
0
        protected override void SetupLayoutConstraints()
        {
            base.SetupLayoutConstraints();

            this.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints();

            this.AddConstraints(
                ContentTableView.FullSizeOf(this).Concat(
                    new FluentLayout[]
            {
                _deviderView.AtTopOf(this),
                _deviderView.AtBottomOf(this),
                _deviderView.AtLeadingOf(this, -1),
                _deviderView.Width().EqualTo(Theme.Dimensions.DeviderWidth)
            }));
        }