public CustomEventCell(string cellId) : base(UITableViewCellStyle.Default, cellId) { SelectionStyle = UITableViewCellSelectionStyle.Gray; ContentView.BackgroundColor = UIColor.Clear; eventName = new UILabel() { Font = UIFont.FromName("Arial", 15f), TextColor = UIColor.Red, BackgroundColor = UIColor.Clear, TextAlignment = UITextAlignment.Left, Lines = 0, LineBreakMode = UILineBreakMode.WordWrap }; eventLocation = new UILabel() { Font = UIFont.FromName("Arial", 11f), TextColor = UIColor.Black, BackgroundColor = UIColor.Clear }; eventDate = new UILabel() { Font = UIFont.FromName("Arial", 11f), TextColor = UIColor.White, BackgroundColor = UIColor.Clear }; ContentView.AddSubviews(new UIView[] { eventName, eventDate, eventLocation }); }
protected SwipableTimeEntryTableViewCell(IntPtr ptr) : base(ptr) { continueActionLabel = new UILabel() { Text = "SwipeTimeEntryContinue".Tr(), }.Apply(Style.TimeEntryCell.SwipeActionLabel); deleteActionLabel = new UILabel() { Text = "SwipeTimeEntryDelete".Tr(), }.Apply(Style.TimeEntryCell.SwipeActionLabel); confirmActionLabel = new UILabel() { Text = "SwipeTimeEntryConfirm".Tr(), }.Apply(Style.TimeEntryCell.SwipeActionLabel); actualContentView = new UIView().Apply(Style.Log.CellContentView); BackgroundView = new UIView(); SelectedBackgroundView = new UIView().Apply(Style.CellSelectedBackground); ContentView.AddSubviews( continueActionLabel, deleteActionLabel, confirmActionLabel, actualContentView ); actualContentView.AddGestureRecognizer(new UIPanGestureRecognizer(OnPanningGesture) { ShouldRecognizeSimultaneously = (a, b) => !panLockInHorizDirection, }); }
public DetailsItemCell(IntPtr handle) : base(handle) { ClipsToBounds = true; MultipleTouchEnabled = true; SelectionStyle = UITableViewCellSelectionStyle.None; IndentationWidth = 10; TranslatesAutoresizingMaskIntoConstraints = false; _label = new UILabel() { Font = UIFont.PreferredBody, TextColor = UIColor.Gray, BackgroundColor = UIColor.Clear, ContentMode = UIViewContentMode.TopLeft, TextAlignment = UITextAlignment.Left, TranslatesAutoresizingMaskIntoConstraints = false, Lines = 0, LineBreakMode = UILineBreakMode.WordWrap, }; _formattedValue = new UILabel() { Font = UIFont.PreferredCaption1, TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, ContentMode = UIViewContentMode.TopLeft, TextAlignment = UITextAlignment.Left, TranslatesAutoresizingMaskIntoConstraints = false, Lines = 0, LineBreakMode = UILineBreakMode.WordWrap, }; ContentView.AddSubviews(_label, _formattedValue); }
private void SetupSubViews() { _avatar = new AvatarImageView(); _displayName = new UILabel { Font = iOS.Appearance.Fonts.LatoBoldWithSize(14.5f), TextColor = iOS.Appearance.Colors.DefaultTextColor, Text = "Display Name" }; _timeAgo = new UILabel { Font = iOS.Appearance.Fonts.LatoWithSize(11.86f), TextColor = iOS.Appearance.Colors.SubTextColor, Text = "30 minutes ago" }; //_text = new UILabel { Font = iOS.Appearance.Fonts.LatoWithSize(15), TextColor = iOS.Appearance.Colors.DefaultTextColor, Text = "Comment text", Lines = 0 }; Text = new HtmlTextView(); _contextButton = new UIButton(); _contextButton.TouchUpInside += ContextButtonOnTouchUpInside; var contextButtonImage = UIImage.FromBundle("Icons/icon_more.png"); _contextButton.SetImage(contextButtonImage, UIControlState.Normal); _bottomRuler = new UIView { BackgroundColor = iOS.Appearance.Colors.BarShadowColor }; ContentView.AddSubviews(_avatar, _displayName, _timeAgo, Text, _bottomRuler, _contextButton); }
/// <summary> /// Lays out the subviews. Sets our label dimensions and adds it to the content view and then calls updateStateColro to set the correct color /// for the labels that should represent whatever state the cell is in. /// </summary> public override void LayoutSubviews() { labelA.Frame = new CoreGraphics.CGRect(DefaultiOSDimensions.cellPadding, 0, Frame.Width - (DefaultiOSDimensions.cellPadding * 2), Frame.Height); ContentView.AddSubviews(new UIView[] { labelA }); updateStateColor(); base.LayoutSubviews(); }
void Initialize() { BubbleImageView = new UIImageView { TranslatesAutoresizingMaskIntoConstraints = false }; UsuarioLabel = new UILabel { TranslatesAutoresizingMaskIntoConstraints = false }; MessageLabel = new UILabel { TranslatesAutoresizingMaskIntoConstraints = false, Lines = 0, PreferredMaxLayoutWidth = 220f }; if (typebubble == MessageType.IncomingFile || typebubble == MessageType.Incoming) { ContentView.AddSubviews(UsuarioLabel, BubbleImageView, MessageLabel); } else { ContentView.AddSubviews(BubbleImageView, MessageLabel); } }
public LayerLegendItemCell(IntPtr handle) : base(handle) { ClipsToBounds = true; MultipleTouchEnabled = true; SelectionStyle = UITableViewCellSelectionStyle.None; IndentationWidth = 10; TranslatesAutoresizingMaskIntoConstraints = false; _symbolDisplay = new SymbolDisplay() { TranslatesAutoresizingMaskIntoConstraints = false }; _textLabel = new UILabel() { Font = UIFont.SystemFontOfSize(UIFont.LabelFontSize), TextColor = UIColor.LabelColor, BackgroundColor = UIColor.Clear, ContentMode = UIViewContentMode.Center, TextAlignment = UITextAlignment.Left, TranslatesAutoresizingMaskIntoConstraints = false, LineBreakMode = UILineBreakMode.TailTruncation }; ContentView.AddSubviews(_symbolDisplay, _textLabel); }
public LangTableRow(NSString cellId, OnItemClick itemClick) : base(UITableViewCellStyle.Value2, cellId) { onClickCallback = itemClick; textLabel = new UITextView() { Font = UIFont.FromName("Arial", 14f), TextColor = Style.OptionView.ContentColor, BackgroundColor = UIColor.Clear, Editable = false, Selectable = false, UserInteractionEnabled = true, TextContainerInset = UIEdgeInsets.Zero }; imageView = new UIImageView(); SelectionStyle = UITableViewCellSelectionStyle.Gray; ContentView.LayoutMargins = new UIEdgeInsets(0, 0, 0, 0); ContentView.Superview.BackgroundColor = UIColor.Clear; ContentView.Superview.TintColor = Style.OptionView.ContentColor; ContentView.TintColor = Style.OptionView.ContentColor; ContentView.AddSubviews(new UIView[] { imageView, textLabel }); if (count++ % 2 == 0) { //ContentView.BackgroundColor = UIColor.Black; } }
public adsTableViewCell(NSString cellId) : base(UITableViewCellStyle.Default, cellId) { SelectionStyle = UITableViewCellSelectionStyle.Blue; ContentView.BackgroundColor = UIColor.White; headingLabel = new UILabel() { Font = UIFont.FromName("Helvetica", 17f), TextColor = UIColor.Blue, BackgroundColor = UIColor.Clear, TextAlignment = UITextAlignment.Center }; subheadingLabel = new UILabel() { Font = UIFont.FromName("Helvetica", 17f), TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, TextAlignment = UITextAlignment.Right }; imagepath = new UIImageView() { ContentMode = UIViewContentMode.ScaleAspectFit, }; subheadingLabel.LineBreakMode = UILineBreakMode.WordWrap; subheadingLabel.Lines = 0; subheadingLabel.SizeToFit(); ContentView.AddSubviews(new UIView[] { headingLabel, subheadingLabel, imagepath }); }
public NewsCell(string cellId, bool gradient) : base(UITableViewCellStyle.Default, cellId) { SelectionStyle = UITableViewCellSelectionStyle.Gray; ContentView.BackgroundColor = UIColor.SystemBackgroundColor; imageView = new UIImageView(); imageView.Layer.CornerRadius = 14; imageView.ClipsToBounds = true; imageView.ContentMode = UIViewContentMode.ScaleAspectFill; gradientLayer = new CAGradientLayer(); gradientLayer.Colors = new CGColor[] { UIColor.Clear.CGColor, UIColor.Black.CGColor }; gradientLayer.Locations = new NSNumber[] { 0.0, 1.0 }; if (gradient) { imageView.Layer.AddSublayer(gradientLayer); } Title = new UILabel() { Font = UIFont.PreferredHeadline, TextColor = UIColor.FromRGB(255, 255, 255), Lines = 3 }; ContentView.AddSubviews(new UIView[] { imageView, Title }); }
public CustomGraficaCell(NSString cellId, UIColor colorclas) : base(UITableViewCellStyle.Default, cellId) { SelectionStyle = UITableViewCellSelectionStyle.Blue; ContentView.BackgroundColor = UIColor.FromRGB(220, 224, 231); headingLabel = new UILabel() { Font = UIFont.FromName("Arial-BoldMT", 20f), TextColor = UIColor.FromRGB(54, 74, 97), BackgroundColor = UIColor.Clear }; porcentajeLabel = new UILabel() { Font = UIFont.FromName("Arial-BoldMT", 20f), TextColor = UIColor.FromRGB(54, 74, 97), BackgroundColor = UIColor.Clear, TextAlignment = UITextAlignment.Right }; colorLabel = new UILabel() { BackgroundColor = colorclas }; ContentView.AddSubviews(new UIView[] { colorLabel, headingLabel, porcentajeLabel }); }
public CustomCell(NSString cellId) : base(UITableViewCellStyle.Default, cellId) { SelectionStyle = UITableViewCellSelectionStyle.Gray; //ContentView.BackgroundColor = UIColor.FromRGB(218, 255, 127); Imagen = new UIImageView(); Titulo = new UILabel() { Font = UIFont.FromName("Cochin-BoldItalic", 22f), TextColor = UIColor.FromRGB(127, 51, 0), BackgroundColor = UIColor.Clear }; Detalle = new UILabel() { Font = UIFont.FromName("AmericanTypewriter", 12f), TextColor = UIColor.FromRGB(38, 127, 0), TextAlignment = UITextAlignment.Center, BackgroundColor = UIColor.Clear }; ContentView.AddSubviews(new UIView[] { Titulo, Detalle, Imagen }); }
private void CreateLayout() { LayoutMargins = UIEdgeInsets.Zero; BackgroundColor = UIColor.White; SelectionStyle = UITableViewCellSelectionStyle.None; NameLabel = new UILabel() { Font = UIFont.SystemFontOfSize(20, UIFontWeight.Bold) }; ObservationsLabel = new UILabel() { Lines = 0 }; ContentView.AddSubviews(NameLabel, ObservationsLabel); ContentView.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); ContentView.AddConstraints( NameLabel.AtTopOf(ContentView, 8), NameLabel.AtLeftOf(ContentView, 8), NameLabel.AtRightOf(ContentView, 8), ObservationsLabel.Below(NameLabel, 8), ObservationsLabel.WithSameLeft(NameLabel), ObservationsLabel.WithSameRight(NameLabel), ObservationsLabel.AtBottomOf(ContentView, 8) ); }
public LegendTableViewCell(IntPtr handle) : base(handle) { SelectionStyle = UITableViewCellSelectionStyle.None; TranslatesAutoresizingMaskIntoConstraints = false; _textLabel = new UILabel() { LineBreakMode = UILineBreakMode.TailTruncation, Font = UIFont.SystemFontOfSize(UIFont.LabelFontSize), TextColor = UIColor.LabelColor, BackgroundColor = UIColor.Clear, ContentMode = UIViewContentMode.Center, TextAlignment = UITextAlignment.Left, TranslatesAutoresizingMaskIntoConstraints = false }; _symbol = new SymbolDisplay() { TranslatesAutoresizingMaskIntoConstraints = false }; ContentView.AddSubviews(_symbol, _textLabel); _symbol.LeadingAnchor.ConstraintEqualTo(ContentView.LeadingAnchor, 10).Active = true; _symbol.CenterYAnchor.ConstraintEqualTo(ContentView.CenterYAnchor).Active = true; _textLabel.LeadingAnchor.ConstraintEqualTo(_symbol.TrailingAnchor).Active = true; _textLabel.CenterYAnchor.ConstraintEqualTo(ContentView.CenterYAnchor).Active = true; }
public CustomListadoObrasCell(NSString cellId, double por) : base(UITableViewCellStyle.Default, cellId) { SelectionStyle = UITableViewCellSelectionStyle.Blue; headingLabel = new UILabel() { Font = UIFont.FromName("Arial-BoldMT", 20f), TextColor = UIColor.FromRGB(54, 74, 97), BackgroundColor = UIColor.Clear }; categoriaLabel = new UILabel() { Font = UIFont.FromName("Arial", 12f), TextColor = UIColor.FromRGB(54, 74, 97), BackgroundColor = UIColor.Clear }; porLabel = new UILabel() { Font = UIFont.FromName("Arial-BoldMT", 7f), TextColor = UIColor.White, TextAlignment = UITextAlignment.Center, BackgroundColor = UIColor.FromRGB(76, 100, 142) }; porcentajelabel = por; ContentView.AddSubviews(new UIView[] { porLabel, headingLabel, categoriaLabel }); }
public CustomCellSessions(NSString cellId) : base(UITableViewCellStyle.Default, cellId) { ContentView.BackgroundColor = UIColor.FromRGB(255, 255, 255); #region Field Initialization categoriesLabel = new UILabel() { Font = UIFont.FromName("AmericanTypewriter", 15f), TextColor = UIColor.FromRGB(0, 51, 0), TextAlignment = UITextAlignment.Left, }; dateLabel = new UILabel() { Font = UIFont.FromName("AmericanTypewriter", 15f), TextColor = UIColor.FromRGB(0, 51, 0), TextAlignment = UITextAlignment.Left, }; correctRawLabel = new UILabel() { Font = UIFont.FromName("AmericanTypewriter", 12f), TextColor = UIColor.FromRGB(0, 0, 51), TextAlignment = UITextAlignment.Left, }; correctPercentageLabel = new UILabel() { Font = UIFont.FromName("AmericanTypewriter", 12f), TextColor = UIColor.FromRGB(0, 0, 51), TextAlignment = UITextAlignment.Left, }; #endregion ContentView.AddSubviews(new UIView[] { categoriesLabel, dateLabel, correctRawLabel, correctPercentageLabel }); }
// Constructor: public CAvailableCell(Foundation.NSString cellId) : base(UITableViewCellStyle.Default, cellId) { // --------------------------------------------------------------------- SelectionStyle = UITableViewCellSelectionStyle.Gray; //ContentView.BackgroundColor = UIColor.White; nfloat fontSize = 18f; lblName = new UILabel() { Font = UIFont.FromName("Arial", fontSize), TextColor = UIColor.Black, TextAlignment = UITextAlignment.Left, //BackgroundColor = UIColor.White }; lblSkill = new UILabel() { Font = UIFont.FromName("Arial", fontSize), TextColor = UIColor.Black, TextAlignment = UITextAlignment.Left, //BackgroundColor = UIColor.White }; ContentView.AddSubviews(new UIView[] { lblName, lblSkill }); }
public ElementTableItem(string CellId) : base(UITableViewCellStyle.Default, CellId) { SelectionStyle = UITableViewCellSelectionStyle.Gray; headinglbl = new UILabel() { Font = UIFont.SystemFontOfSize(12f), TextColor = UIColor.Brown, TextAlignment = UITextAlignment.Justified, BackgroundColor = UIColor.Clear, }; subheadinglbl = new UILabel() { Font = UIFont.SystemFontOfSize(12f), TextColor = UIColor.Black, TextAlignment = UITextAlignment.Justified, BackgroundColor = UIColor.Clear }; allsubfooter = new UILabel() { Font = UIFont.SystemFontOfSize(12f), TextColor = UIColor.Black, TextAlignment = UITextAlignment.Justified, BackgroundColor = UIColor.Clear }; ContentView.Add(headinglbl); ContentView.AddSubviews(subheadinglbl, allsubfooter); }
protected override void CreateView() { base.CreateView(); SelectionStyle = UITableViewCellSelectionStyle.None; _leftView = new UIView { //BackgroundColor = UIColor.White }; _rightView = new UIView { //BackgroundColor = UIColor.Red }; _lblName = new UILabel { TextColor = UIColor.White, Font = UIFont.SystemFontOfSize(15f, UIFontWeight.Bold), Lines = 1, LineBreakMode = UILineBreakMode.TailTruncation }; _imgView = new UIImageView { //BackgroundColor = UIColor.Green, Image = UIImage.FromBundle("recipePic2.jpg") }; _lblCategory = new UILabel { TextColor = UIColor.White, Font = UIFont.SystemFontOfSize(14f, UIFontWeight.Bold), Lines = 1, LineBreakMode = UILineBreakMode.TailTruncation }; _lblDesc = new UILabel { TextColor = UIColor.LightGray, Font = UIFont.SystemFontOfSize(12f, UIFontWeight.Bold), Lines = 3, LineBreakMode = UILineBreakMode.TailTruncation }; BackgroundColor = UIColor.Clear; ContentView.AddSubviews(_leftView, _rightView, _imgView, _lblName, _lblCategory, _lblDesc); ContentView.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); this.DelayBind( () => { this.AddBindings(_lblName, "Text Name"); this.AddBindings(_lblCategory, "Text Category"); this.AddBindings(_lblDesc, "Text Description"); }); }
public void SetCellContents(TreeNode node) { level = node.Level; imageView = new UIImageView { Image = UIImage.FromFile("folder1.png"), ContentMode = UIViewContentMode.Left }; imageView.SizeToFit(); titleLabel = new UILabel() { TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, Text = node.Name }; titleLabel.SizeToFit(); foreach (var v in ContentView.Subviews) { v.RemoveFromSuperview(); } ContentView.AddSubviews(imageView, titleLabel); }
public InsightsCell(NSString cellId) : base(UITableViewCellStyle.Default, cellId) { SelectionStyle = UITableViewCellSelectionStyle.Default; ContentView.BackgroundColor = UIColor.FromRGB(245, 245, 245); UIView paddingView = new UIView(new CGRect(5, 5, 5, 5)); lblInsightsDetails = new UILabel() { Font = UIFont.FromName("Futura-Medium", 14f), TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, TextAlignment = UITextAlignment.Justified, Lines = 0, LineBreakMode = UILineBreakMode.WordWrap, }; lblTimeStamp = new UILabel() { Font = UIFont.FromName("Futura-Medium", 12f), TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, TextAlignment = UITextAlignment.Justified, Lines = 0, LineBreakMode = UILineBreakMode.WordWrap, }; lblInsightsDetails.AutoresizingMask = UIViewAutoresizing.FlexibleHeight; ContentView.AddSubviews(lblTimeStamp, lblInsightsDetails); }
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; }
private void CreateLayout() { var ProfileBorder = AutoLayoutContentView.CreateListContentRoot("ListContentRoot", UIColor.LightGray, ContentView, "Helvetica-Bold"); var Details = ProfileBorder.AddContainer("Details", UIColor.White); var Photo = ProfileBorder.AddContainer("Photo", UIColor.White); ProfileBorder.AddConstraint("V:|-[Details(>=30)]-|"); ProfileBorder.AddConstraint("V:|-(>=2)-[Photo]-(>=2)-|"); ProfileBorder.AddConstraint("H:|-[Details]-(>=8)-[Photo]-26-|"); Photo.AddImage("Picture", "Alex.jpg"); Photo.AddConstraint("H:|[Picture(24)]|"); Photo.AddConstraint("V:|[Picture(32)]|"); var name = Details.AddLabelLeft("Name", "Alex Eadie", UIColor.Black, 10); var phone = Details.AddLabelLeft("Phone", "0456 234 154", UIColor.Blue, 10); Details.AddConstraint("V:|-(>=2)-[Name]-(>=2)-[Phone]-(>=2)-|"); ContentView.AddSubviews(ProfileBorder); this.DelayBind(() => { var set = this.CreateBindingSet <ListExampleTableRow, ContactDetail> (); set.Bind(phone).To(vm => vm.PhoneNumber); set.Bind(name).To(vm => vm.Name); set.Apply(); }); }
public UsersTableCell(string cellId) : base(UITableViewCellStyle.Default, cellId) { SelectionStyle = UITableViewCellSelectionStyle.Gray; ContentView.BackgroundColor = UIColor.SystemBackgroundColor; imageView = new UIImageView(); imageView.Layer.CornerRadius = 54 / 2; imageView.ClipsToBounds = true; imageView.ContentMode = UIViewContentMode.ScaleAspectFill; Title = new UILabel() { Font = UIFont.PreferredHeadline, TextColor = UIColor.LabelColor, Lines = 3 }; Email = new UILabel() { Font = UIFont.PreferredHeadline, TextColor = UIColor.SecondaryLabelColor }; UserInitials = new UILabel() { TextAlignment = UITextAlignment.Center, TextColor = UIColor.White, Font = UIFont.FromDescriptor(UIFont.PreferredTitle1.FontDescriptor, 24f) }; imageView.AddSubview(UserInitials); ContentView.AddSubviews(new UIView[] { imageView, Title, Email }); }
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; }
public CustomSolMaqCell(NSString cellId) : base(UITableViewCellStyle.Default, cellId) { SelectionStyle = UITableViewCellSelectionStyle.Gray; cantidadlabel = new UILabel() { Font = UIFont.FromName("Arial", 22f), TextColor = UIColor.FromRGB(54, 74, 97), BackgroundColor = UIColor.Clear }; equipolabel = new UILabel() { Font = UIFont.FromName("Arial", 12f), TextColor = UIColor.FromRGB(54, 74, 97), BackgroundColor = UIColor.Clear }; marcalabel = new UILabel() { Font = UIFont.FromName("Arial", 12f), TextColor = UIColor.FromRGB(54, 74, 97), BackgroundColor = UIColor.Clear }; modelolabel = new UILabel() { Font = UIFont.FromName("Arial", 12f), TextColor = UIColor.FromRGB(54, 74, 97), BackgroundColor = UIColor.Clear }; ContentView.AddSubviews(new UIView[] { cantidadlabel, equipolabel, marcalabel, modelolabel }); }
public CSectionHeader_Avail(NSString cellid) : base(cellid) { //SelectionStyle = UITableViewCellSelectionStyle.Gray; ContentView.BackgroundColor = UIColor.LightGray; string fontName = "Arial"; nfloat fontSize = 15f; lblTitle = new UILabel() { Font = UIFont.FromName(fontName, fontSize), TextColor = UIColor.Blue, TextAlignment = UITextAlignment.Left, BackgroundColor = UIColor.White, Text = "Player" }; lblSkill = new UILabel() { Font = UIFont.FromName(fontName, fontSize), TextColor = UIColor.Blue, TextAlignment = UITextAlignment.Left, BackgroundColor = UIColor.White, Text = "Fielding" }; ContentView.AddSubviews(new UIView[] { lblTitle, lblSkill }); }
public ReviewCellView(NSString cellId) : base(UITableViewCellStyle.Default, cellId) { SelectionStyle = UITableViewCellSelectionStyle.Gray; //ContentView.BackgroundColor = UIColor.FromRGB(218, 255, 127); imageView = new UIImageView(); userName = new UILabel() { Font = UIFont.FromName("Verdana", 15f), TextColor = UIColor.FromRGB(127, 51, 0), BackgroundColor = UIColor.Clear }; ReviewDate = new UILabel() { Font = UIFont.FromName("AmericanTypewriter", 10f), TextColor = UIColor.FromRGB(38, 127, 0), //TextAlignment = UITextAlignment.Center, BackgroundColor = UIColor.Clear }; Comments = new UITextView() { Font = UIFont.FromName("AmericanTypewriter", 14f), TextColor = UIColor.FromRGB(255, 127, 0), //TextAlignment = UITextAlignment.Center, BackgroundColor = UIColor.Clear }; var ratingConfig = new RatingConfig(emptyImage: UIImage.FromBundle("Stars/empty.png"), filledImage: UIImage.FromBundle("Stars/filled.png"), chosenImage: UIImage.FromBundle("Stars/chosen.png")); stars = new PDRatingView(new CGRect(150, 2, 60, 20), ratingConfig, 5.0m); ContentView.AddSubviews(new UIView[] { userName, ReviewDate, Comments, stars, imageView }); }
public CustomAsistentesCell(NSString cellId) : base(UITableViewCellStyle.Default, cellId) { icom.NuevoEventoController.stacsec = !icom.NuevoEventoController.stacsec; SelectionStyle = UITableViewCellSelectionStyle.Gray; if (icom.NuevoEventoController.stacsec) { ContentView.BackgroundColor = UIColor.FromRGB(220, 224, 231); } else { ContentView.BackgroundColor = UIColor.White; } lblasistente = new UILabel() { Font = UIFont.FromName("Arial", 15f), TextColor = UIColor.FromRGB(54, 74, 97), TextAlignment = UITextAlignment.Left, BackgroundColor = UIColor.Clear }; ContentView.AddSubviews(new UIView[] { lblasistente }); }
public ActivityListTableItem(string cellId) : base(UITableViewCellStyle.Default, cellId) { SelectionStyle = UITableViewCellSelectionStyle.Gray; //ContentView.BackgroundColor = UIColor.FromRGB (218, 255, 127); //imageView = new UIImageView(); headingLabel = new UILabel() { Font = UIFont.SystemFontOfSize(16f), TextColor = UIColor.Brown, // UIColor.FromRGB (127, 51, 0), BackgroundColor = UIColor.Clear }; subheadingLabel = new UILabel { Font = UIFont.SystemFontOfSize(12f), TextColor = UIColor.Black, TextAlignment = UITextAlignment.Left, BackgroundColor = UIColor.Clear }; activitySubHeadingLabel = new UILabel { Font = UIFont.SystemFontOfSize(10f), TextColor = UIColor.Black, TextAlignment = UITextAlignment.Left, BackgroundColor = UIColor.Clear }; ContentView.Add(headingLabel); ContentView.AddSubviews(subheadingLabel, activitySubHeadingLabel); //ContentView.Add(imageView); }