Beispiel #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));
        }
Beispiel #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);
        }
Beispiel #3
0
 public abstract TableViewCell GetCell(PlainListCellContext context);