示例#1
0
        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);
        }
示例#2
0
 public void UpdateCell(BusyCell cell)
 {
     HeadingLabel.Text      = cell.Text;
     HeadingLabel.TextColor = cell.TextColour.ToUIColor();
 }