protected override void SetupLayoutConstraints() { base.SetupLayoutConstraints(); this.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); this.AddConstraints( AvatarImageView.WithSameCenterX(this), AvatarImageView.AtTopOf(this, AppDimens.Inset4X)); this.AddConstraints( AvatarLabel.WithSameCenterX(this), AvatarLabel.Below(AvatarImageView, AppDimens.Inset1X)); this.AddConstraints( ChoiceAllButton.AtLeftOf(this), ChoiceAllButton.Below(AvatarLabel, AppDimens.Inset1X), ChoiceAllButton.AtRightOf(this), ChoiceAllButton.Height().EqualTo(AppDimens.ButtonSize)); this.AddConstraints( ChoiceOpenButton.AtLeftOf(this), ChoiceOpenButton.Below(ChoiceAllButton), ChoiceOpenButton.AtRightOf(this), ChoiceOpenButton.Height().EqualTo(AppDimens.ButtonSize)); this.AddConstraints( ChoiceClosedButton.AtLeftOf(this), ChoiceClosedButton.Below(ChoiceOpenButton), ChoiceClosedButton.AtRightOf(this), ChoiceClosedButton.Height().EqualTo(AppDimens.ButtonSize)); }
private void SetupConstraints() { ContentView.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); ContentView.AddConstraints( _topRuler.AtTopOf(ContentView), _topRuler.AtRightOf(ContentView, 0), _topRuler.AtLeftOf(ContentView, 0), _topRuler.Height().EqualTo(1), _bottomRuler.AtBottomOf(ContentView), _bottomRuler.AtRightOf(ContentView), _bottomRuler.AtLeftOf(ContentView), _bottomRuler.Height().EqualTo(1), _avatar.AtTopOf(ContentView, 10), _avatar.AtLeftOf(ContentView, 10), _avatar.Height().EqualTo(50), _avatar.Width().EqualTo(50), _avatar.AtBottomOf(ContentView, 10), _displayName.WithSameCenterY(_avatar), _displayName.ToRightOf(_avatar, 10) ); }
private void SetupConstraints() { ContentView.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); ContentView.AddConstraints( _imageView.AtLeftOf(ContentView, 14), _imageView.AtTopOf(ContentView, 10), _imageView.AtBottomOf(ContentView, 10), _imageView.Width().EqualTo(30), _imageView.Height().EqualTo(30), _text.ToRightOf(_imageView, 10), _text.WithSameCenterY(_imageView), _text.ToLeftOf(_arrow, 10), _arrow.WithSameCenterY(ContentView), _arrow.AtRightOf(ContentView, 14), _arrow.Height().EqualTo(15), _arrow.Width().EqualTo(9), _topRuler.AtTopOf(ContentView), _topRuler.AtLeftOf(ContentView), _topRuler.AtRightOf(ContentView), _topRuler.Height().EqualTo(1) ); }
private void SetupConstraints() { ContentView.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); ContentView.AddConstraints( _imageView.AtTopOf(ContentView), _imageView.AtLeftOf(ContentView), _imageView.AtBottomOf(ContentView), _imageView.AtRightOf(ContentView) ); }
private void SetupConstraints() { ContentView.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); ContentView.AddConstraints( _imageView.AtTopOf(ContentView, 10), _imageView.AtLeftOf(ContentView, 10), _imageView.AtBottomOf(ContentView, 10), _imageView.AtRightOf(ContentView, 10), _imageView.Height().EqualTo(80), _imageView.Width().EqualTo(80) ); }
private void SetupConstraints() { ContentView.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); ContentView.AddConstraints( _avatar.AtTopOf(ContentView, 10), _avatar.AtLeftOf(ContentView, 10), _avatar.Height().EqualTo(30), _avatar.Width().EqualTo(30), DisplayName.WithSameTop(_avatar), DisplayName.ToRightOf(_avatar, 10), _timeAgo.WithSameBottom(DisplayName), _timeAgo.ToRightOf(DisplayName, 10), Message.Below(DisplayName, 5), Message.WithSameLeft(DisplayName), Message.AtRightOf(ContentView, 10), Message.AtBottomOf(ContentView, 10) ); }
protected override void SetupLayoutConstraints() { base.SetupLayoutConstraints(); this.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); this.AddConstraints( AvatarImageView.AtTopOf(this, 32), AvatarImageView.WithSameCenterX(this), AvatarImageView.Width().EqualTo(114), AvatarImageView.Height().EqualTo(114), NameLabel.Below(AvatarImageView, 18), NameLabel.AtLeadingOf(this, 16), NameLabel.AtTrailingOf(this, 16), MenuDeviderView.AtLeadingOf(this, 0), MenuDeviderView.AtTrailingOf(this, 0), MenuDeviderView.Height().EqualTo(Theme.Dimensions.DeviderWidth), MenuDeviderView.Below(NameLabel, 14), MenuTableView.Below(MenuDeviderView), MenuTableView.AtLeadingOf(this), MenuTableView.AtTrailingOf(this), MenuTableView.AtBottomOf(this)); }
private void SetupConstraints() { ContentView.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); _bottomRulerLeftConstraint = _bottomRuler.AtLeftOf(ContentView, 14).ToLayoutConstraints().First(); _bottomRulerRightConstraint = _bottomRuler.AtRightOf(ContentView, 14).ToLayoutConstraints().First(); ContentView.AddConstraint(_bottomRulerLeftConstraint); ContentView.AddConstraint(_bottomRulerRightConstraint); ContentView.AddConstraints( _avatar.AtTopOf(ContentView, 14), _avatar.AtLeftOf(ContentView, 14), _avatar.Height().EqualTo(35), _avatar.Width().EqualTo(35), _displayName.WithSameTop(_avatar).Minus(2), _displayName.Height().EqualTo(20), _displayName.ToRightOf(_avatar, 13), _timeAgo.ToRightOf(_displayName, 7), _timeAgo.WithSameBottom(_displayName), //_timeAgo.AtLeftOf(ContentView, 14), Text.Below(_displayName, 3), Text.ToLeftOf(_contextButton, 10), Text.ToRightOf(_avatar, 10), _contextButton.AtRightOf(ContentView, 10), _contextButton.AtTopOf(ContentView, 5), _contextButton.Width().EqualTo(30), _contextButton.Height().EqualTo(30), _bottomRuler.Height().EqualTo(1), _bottomRuler.AtBottomOf(ContentView) ); }
private void SetupConstraints() { ContentView.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); ContentView.AddConstraints( _avatar.AtTopOf(ContentView, 14), _avatar.AtLeftOf(ContentView, 14), _avatar.Height().EqualTo(30), _avatar.Width().EqualTo(30), _displayName.WithSameTop(_avatar), _displayName.ToRightOf(_avatar, 10), _timeAgo.ToRightOf(_displayName, 6), _timeAgo.WithSameBottom(_displayName), //_timeAgo.AtLeftOf(ContentView, 14), _text.Below(_displayName, 5), _text.WithSameLeft(_displayName), _text.AtRightOf(ContentView, 14), _extraText.Below(_text, 10), _extraText.WithSameLeft(_text), _extraText.AtRightOf(ContentView, 14), _bottomRuler.Below(_extraText, 10), _bottomRuler.WithSameLeft(ContentView), _bottomRuler.WithSameRight(ContentView), _bottomRuler.Height().EqualTo(1), _bottomRuler.AtBottomOf(ContentView), _backgroundColor.AtLeftOf(ContentView), _backgroundColor.AtTopOf(ContentView), _backgroundColor.AtRightOf(ContentView), _backgroundColor.AtBottomOf(ContentView) ); }