示例#1
0
        public sealed override Android.Views.View GetView(int position, Android.Views.View convertView, ViewGroup parent)
        {
            var context = new PlainListCellContext()
            {
                ReusableCell = convertView.AsCell(),
                Row          = position,
                Parent       = parent.AsView()
            };

            return(GetCell(context));
        }
示例#2
0
        public sealed override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            var position = indexPath.Row;
            var typeIdx  = GetCellType(position);
            var cell     = tableView.DequeueReusableCell(typeIdx.ToString());
            var context  = new PlainListCellContext()
            {
                ReusableCell = cell.AsCell(),
                Row          = position
            };
            var tableViewCell = GetCell(context);

            _lastCell      = tableViewCell;
            _lastIndexPath = indexPath;
            return(tableViewCell);
        }
示例#3
0
 public abstract TableViewCell GetCell(PlainListCellContext context);