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);
		}
Esempio n. 2
0
		public override UITableViewElementCell NewCell()
		{
			var cell = new UITableViewElementCell(CellStyle, Id);
			cell.SelectionStyle = UITableViewCellSelectionStyle.Blue;
			
			return cell;
		}
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        public override UITableViewElementCell NewCell()
        {
            var cell = new UITableViewElementCell(CellStyle, Id);

            cell.SelectionStyle = UITableViewCellSelectionStyle.Blue;

            return(cell);
        }
Esempio n. 5
0
        public virtual UITableViewElementCell NewCell()
        {
            var cell = new UITableViewElementCell(UITableViewCellStyle.Default, Id);

            cell.SelectionStyle = UITableViewCellSelectionStyle.None;

            return(cell);
        }
Esempio n. 6
0
        public override UITableViewElementCell NewCell()
        {
            var style = summarySection == -1 ? CellStyle : UITableViewCellStyle.Value1;

            var cell = new UITableViewElementCell(style, Id);

            cell.SelectionStyle = UITableViewCellSelectionStyle.Blue;

            return(cell);
        }
Esempio n. 7
0
		public virtual UITableViewElementCell NewCell()
		{
			var cell = new UITableViewElementCell(UITableViewCellStyle.Default, Id);
			cell.SelectionStyle = UITableViewCellSelectionStyle.None;

			return cell;
		}