Ejemplo n.º 1
0
        private void SetupSubViews()
        {
            _background = new OverlayImageView {
                BackgroundColor = UIColor.Black, ContentMode = UIViewContentMode.ScaleAspectFill, ClipsToBounds = true, Transparency = 0.5f
            };

            _infoContainer            = new UIView();
            _infoContainerPlaceholder = new UIView();

            _name = new UILabel {
                TextColor = iOS.Appearance.Colors.White, Font = iOS.Appearance.Fonts.LatoBlackWithSize(22), Lines = 1, LineBreakMode = UILineBreakMode.TailTruncation
            };
            _time = new UILabel {
                TextColor = iOS.Appearance.Colors.White, Font = iOS.Appearance.Fonts.LatoWithSize(13)
            };
            _location = new UILabel {
                TextColor = iOS.Appearance.Colors.White, Font = iOS.Appearance.Fonts.LatoWithSize(13), Lines = 1, LineBreakMode = UILineBreakMode.TailTruncation
            };
            _date = new UILabel {
                TextColor = iOS.Appearance.Colors.DefaultTextColor, Font = iOS.Appearance.Fonts.LatoWithSize(13), TextAlignment = UITextAlignment.Center
            };
            _dateBackPanel = new UIView {
                BackgroundColor = iOS.Appearance.Colors.White
            };
            _dateBackPanel.Layer.CornerRadius = 4.0f;

            ContentView.AddSubviews(_background, _infoContainerPlaceholder, _infoContainer, _name, _time, _location, _dateBackPanel, _date);

            SelectionStyle = UITableViewCellSelectionStyle.None;
        }
Ejemplo n.º 2
0
        private void SetupSubViews()
        {
            _background = new OverlayImageView {
                BackgroundColor = UIColor.Black, ContentMode = UIViewContentMode.ScaleAspectFill, ClipsToBounds = true, Transparency = 0.5f
            };

            _name = new UILabel {
                TextColor = iOS.Appearance.Colors.White, Font = iOS.Appearance.Fonts.LatoBlackWithSize(22), Lines = 2, LineBreakMode = UILineBreakMode.TailTruncation
            };
            GroupDescription = new UILabel {
                TextColor = iOS.Appearance.Colors.White, Font = iOS.Appearance.Fonts.LatoWithSize(13), Lines = 2
            };
            _viewButton = new UIButton {
                Font = iOS.Appearance.Fonts.LatoBoldWithSize(14)
            };
            _viewButton.SetTitleColor(iOS.Appearance.Colors.Green, UIControlState.Normal);
            _viewButton.Layer.CornerRadius = 20f; // height / 2
            _viewButton.Layer.BorderColor  = iOS.Appearance.Colors.Green.CGColor;
            _viewButton.Layer.BorderWidth  = 1f;

            _ruler = new UIView {
                BackgroundColor = iOS.Appearance.Colors.RulerColor
            };

            ContentView.AddSubviews(_background, _name, GroupDescription, _viewButton, _ruler);

            SelectionStyle = UITableViewCellSelectionStyle.None;
        }
        void ReleaseDesignerOutlets()
        {
            if (CameraFeedView != null)
            {
                CameraFeedView.Dispose();
                CameraFeedView = null;
            }

            if (OverlayImageView != null)
            {
                OverlayImageView.Dispose();
                OverlayImageView = null;
            }

            if (ShutterButton != null)
            {
                ShutterButton.Dispose();
                ShutterButton = null;
            }

            if (SwapCameraButton != null)
            {
                SwapCameraButton.Dispose();
                SwapCameraButton = null;
            }
        }
        private void SetupSubViews()
        {
            BackgroundColor = iOS.Appearance.Colors.BackgroundColor;
            SelectionStyle  = UITableViewCellSelectionStyle.None;

            _backpanel = new UIView {
                BackgroundColor = iOS.Appearance.Colors.White
            };
            _topBorder = new UIView {
                BackgroundColor = iOS.Appearance.Colors.BackPanelBorderTop
            };

            _background1 = new OverlayImageView {
                ContentMode = UIViewContentMode.ScaleAspectFill, ClipsToBounds = true, Transparency = 0.5f
            };
            _background1.Layer.CornerRadius = 4f;
            _title1 = new UILabel {
                Font = iOS.Appearance.Fonts.LatoBlackWithSize(17), TextColor = iOS.Appearance.Colors.White, TextAlignment = UITextAlignment.Center
            };

            _background2 = new OverlayImageView {
                ContentMode = UIViewContentMode.ScaleAspectFill, ClipsToBounds = true, Transparency = 0.5f
            };
            _background2.Layer.CornerRadius = 4f;
            _title2 = new UILabel {
                Font = iOS.Appearance.Fonts.LatoBlackWithSize(17), TextColor = iOS.Appearance.Colors.White, TextAlignment = UITextAlignment.Center
            };

            ContentView.AddSubviews(_backpanel, _topBorder, _background1, _title1, _background2, _title2);
        }
Ejemplo n.º 5
0
        private void SetupSubViews()
        {
            _background = new OverlayImageView {
                ContentMode = UIViewContentMode.ScaleAspectFill, ClipsToBounds = true, Transparency = 0.4f
            };
            _title = new UILabel {
                Font = iOS.Appearance.Fonts.LatoBlackWithSize(26), TextColor = iOS.Appearance.Colors.White, Lines = 0, TextAlignment = UITextAlignment.Center
            };

            ContentView.AddSubviews(_background, _title);
        }