public BusyiOSCell(string cellId, BusyCell cell) : base(UITableViewCellStyle.Default, cellId) { NativeCell = cell; SelectionStyle = UITableViewCellSelectionStyle.None; HeadingLabel = new UILabel() { BackgroundColor = UIColor.Clear, TextColor = UIColor.Black, }; BusyIndicatorView = new UIActivityIndicatorView() { }; BusyIndicatorView.HidesWhenStopped = false; BusyIndicatorView.Color = UIColor.Black; BusyIndicatorView.StartAnimating(); ContentView.Add(HeadingLabel); ContentView.Add(BusyIndicatorView); }
public void UpdateCell(BusyCell cell) { HeadingLabel.Text = cell.Text; HeadingLabel.TextColor = cell.TextColour.ToUIColor(); }