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