Exemplo n.º 1
0
        public override UIKit.UITableViewCell GetCell(Xamarin.Forms.Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv)
        {
            var tvc = tv.DequeueReusableCell("BrandCell");

            if (tvc == null)
            {
                tv.RegisterNibForCellReuse(BrandCell.Nib, "BrandCell");
                tvc = tv.DequeueReusableCell("BrandCell");
            }
            //tvc.Cell = item;

            //WireUpForceUpdateSizeRequested(item, tvc, tv);

            //tvc.TextLabel.Text = item.ToString();

            //UpdateBackground(tvc, item);
            return(tvc);
        }
        public override UIKit.UITableViewCell GetCell(UIKit.UITableView tv)
        {
            var cell = tv.DequeueReusableCell(CellKey);

            if (SignInButton == null)
            {
                SignInButton = new Google.SignIn.SignInButton {
                    Frame   = new CoreGraphics.CGRect(20, 0, tv.Frame.Width - 40, 44),
                    Enabled = this.Enabled,
                };
            }

            if (cell == null)
            {
                cell = new UIKit.UITableViewCell(UIKit.UITableViewCellStyle.Default, CellKey);
                cell.Add(SignInButton);
            }

            return(cell);
        }
Exemplo n.º 3
0
        public override UIKit.UIView GetViewForFooter(UIKit.UITableView tableView, nint section)
        {
            var footer = tableView.DequeueReusableCell(SideMenuFooterLogo.Key) as SideMenuFooterLogo;

            return(footer);
        }