public LoadMoreElement (string normalCaption, string loadingCaption, Action<LoadMoreElement> tapped, UIFont font, UIColor textColor) : base ("") { NormalCaption = normalCaption; LoadingCaption = loadingCaption; _Tapped = tapped; _Font = font; cell = new UITableViewElementCell(UITableViewCellStyle.Default, Id); activityIndicator = new UIActivityIndicatorView() { ActivityIndicatorViewStyle = UIActivityIndicatorViewStyle.Gray, Hidden = true }; activityIndicator.StopAnimating(); caption = new UILabel() { Font = font, Text = NormalCaption, TextColor = textColor, BackgroundColor = UIColor.Clear, TextAlignment = UITextAlignment.Center, AdjustsFontSizeToFitWidth = false, }; Layout(); cell.ContentView.AddSubview(caption); cell.ContentView.AddSubview(activityIndicator); }
public override UITableViewElementCell NewCell() { var cell = new UITableViewElementCell(CellStyle, Id); cell.SelectionStyle = UITableViewCellSelectionStyle.Blue; return cell; }
public LoadMoreElement(string normalCaption, string loadingCaption, Action <LoadMoreElement> tapped, UIFont font, UIColor textColor) : base("") { NormalCaption = normalCaption; LoadingCaption = loadingCaption; _Tapped = tapped; _Font = font; cell = new UITableViewElementCell(UITableViewCellStyle.Default, Id); activityIndicator = new UIActivityIndicatorView() { ActivityIndicatorViewStyle = UIActivityIndicatorViewStyle.Gray, Hidden = true }; activityIndicator.StopAnimating(); caption = new UILabel() { Font = font, Text = NormalCaption, TextColor = textColor, BackgroundColor = UIColor.Clear, TextAlignment = UITextAlignment.Center, AdjustsFontSizeToFitWidth = false, }; Layout(); cell.ContentView.AddSubview(caption); cell.ContentView.AddSubview(activityIndicator); }
public override UITableViewElementCell NewCell() { var cell = new UITableViewElementCell(CellStyle, Id); cell.SelectionStyle = UITableViewCellSelectionStyle.Blue; return(cell); }
public virtual UITableViewElementCell NewCell() { var cell = new UITableViewElementCell(UITableViewCellStyle.Default, Id); cell.SelectionStyle = UITableViewCellSelectionStyle.None; return(cell); }
public override UITableViewElementCell NewCell() { var style = summarySection == -1 ? CellStyle : UITableViewCellStyle.Value1; var cell = new UITableViewElementCell(style, Id); cell.SelectionStyle = UITableViewCellSelectionStyle.Blue; return(cell); }
public virtual UITableViewElementCell NewCell() { var cell = new UITableViewElementCell(UITableViewCellStyle.Default, Id); cell.SelectionStyle = UITableViewCellSelectionStyle.None; return cell; }