Пример #1
0
                public GroupCell(UITableViewCellStyle style, string cellIdentifier) : base(style, cellIdentifier)
                {
                    Title      = new UILabel( );
                    Title.Font = Rock.Mobile.PlatformSpecific.iOS.Graphics.FontManager.GetFont(ControlStylingConfig.Font_Bold, ControlStylingConfig.Medium_FontSize);
                    Title.Layer.AnchorPoint = CGPoint.Empty;
                    Title.TextColor         = Rock.Mobile.UI.Util.GetUIColor(ControlStylingConfig.Label_TextColor);
                    Title.BackgroundColor   = UIColor.Clear;
                    Title.LineBreakMode     = UILineBreakMode.TailTruncation;
                    AddSubview(Title);

                    MeetingTime      = new UILabel( );
                    MeetingTime.Font = Rock.Mobile.PlatformSpecific.iOS.Graphics.FontManager.GetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Small_FontSize);
                    MeetingTime.Layer.AnchorPoint = CGPoint.Empty;
                    MeetingTime.TextColor         = Rock.Mobile.UI.Util.GetUIColor(ControlStylingConfig.Label_TextColor);
                    MeetingTime.BackgroundColor   = UIColor.Clear;
                    AddSubview(MeetingTime);

                    Distance      = new UILabel( );
                    Distance.Font = Rock.Mobile.PlatformSpecific.iOS.Graphics.FontManager.GetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Small_FontSize);
                    Distance.Layer.AnchorPoint = CGPoint.Empty;
                    Distance.TextColor         = Rock.Mobile.UI.Util.GetUIColor(ControlStylingConfig.Label_TextColor);
                    Distance.BackgroundColor   = UIColor.Clear;
                    AddSubview(Distance);

                    Filters      = new UILabel( );
                    Filters.Font = Rock.Mobile.PlatformSpecific.iOS.Graphics.FontManager.GetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Small_FontSize);
                    Filters.Layer.AnchorPoint = CGPoint.Empty;
                    Filters.TextColor         = Rock.Mobile.UI.Util.GetUIColor(ControlStylingConfig.Label_TextColor);
                    Filters.BackgroundColor   = UIColor.Clear;
                    AddSubview(Filters);

                    JoinButton = UIButton.FromType(UIButtonType.Custom);
                    JoinButton.TouchUpInside += (object sender, EventArgs e) => { TableSource.RowButtonClicked(RowIndex); };
                    JoinButton.Font           = Rock.Mobile.PlatformSpecific.iOS.Graphics.FontManager.GetFont(PrivateControlStylingConfig.Icon_Font_Secondary, PrivateConnectConfig.GroupFinder_Join_IconSize);
                    JoinButton.SetTitle(PrivateConnectConfig.GroupFinder_JoinIcon, UIControlState.Normal);
                    JoinButton.SetTitleColor(Rock.Mobile.UI.Util.GetUIColor(ControlStylingConfig.TextField_PlaceholderTextColor), UIControlState.Normal);
                    JoinButton.Layer.AnchorPoint = CGPoint.Empty;
                    JoinButton.BackgroundColor   = UIColor.Clear;
                    JoinButton.SizeToFit( );
                    AddSubview(JoinButton);

                    Seperator = new UIView( );
                    AddSubview(Seperator);
                    Seperator.Layer.BorderWidth = 1;
                    Seperator.Layer.BorderColor = Rock.Mobile.UI.Util.GetUIColor(ControlStylingConfig.BG_Layer_Color).CGColor;
                }