示例#1
0
        public override void LayoutSubviews()
        {
            base.LayoutSubviews();
            var textW = this.Width() - 100;

            instanceIcon.Frame = new CGRect(L.PaddingL, L.PaddingL, L.SmallUserIcon.Width, L.SmallUserIcon.Height);
            instanceName.Frame = new CGRect(instanceIcon.MaxX().PlusPadding(), instanceIcon.MinY(), textW, L.NormalFont.LineHeight);
            acct.Frame         = new CGRect(instanceName.X(), instanceName.MaxY(), textW, L.NormalFont.LineHeight);
        }
示例#2
0
        public override void LayoutSubviews()
        {
            base.LayoutSubviews();
            var textW = this.Width() - 100;

            userIcon.Frame     = new CGRect(L.PaddingL, L.PaddingL, L.SmallUserIcon.Width, L.SmallUserIcon.Height);
            followButton.Frame = new CGRect(this.Width().MinusPadding() - FollowButton.Size.Width, userIcon.MinY(), FollowButton.Size.Width, FollowButton.Size.Height);
            displayName.Frame  = new CGRect(userIcon.MaxX().PlusPadding(), userIcon.MinY(), textW, L.NormalFont.LineHeight);
            acct.Frame         = new CGRect(displayName.X(), displayName.MaxY(), textW, L.NormalFont.LineHeight);
        }
示例#3
0
        public override void LayoutSubviews()
        {
            base.LayoutSubviews();
            userIcon.Frame = new CGRect(L.PaddingL, L.PaddingL, L.UserIcon.Width, L.UserIcon.Height);
            var textAreaX = userIcon.MaxX().PlusHalfPadding();
            var textAreaW = TextAreaW(this.Width());

            header.Frame  = new CGRect(textAreaX, userIcon.MinY(), textAreaW, TimelineItemHeader.H);
            status.Frame  = new CGRect(textAreaX, header.MaxY().PlusHalfPadding(), textAreaW, status.H(textAreaW));
            images.Frame  = new CGRect(textAreaX, status.MaxY().PlusHalfPadding(), textAreaW, TimelineItemImages.H(textAreaW));
            buttons.Frame = new CGRect(textAreaX, images.MaxY().PlusHalfPadding(), textAreaW, L.Icon.Height);

            // fixme
            header.BackgroundColor  = UIColor.Orange;
            buttons.BackgroundColor = UIColor.Orange;
        }