public sealed override Android.Views.View GetChildView(int groupPosition, int childPosition, bool isLastChild, Android.Views.View convertView, ViewGroup parent) { var context = new GroupedListCellContext() { ReusableCell = convertView.AsCell(), Row = childPosition, Section = groupPosition, IsExpanded = isLastChild, Parent = parent.AsView() }; return(GetCell(context)); }
public sealed override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var cellType = GetCellType(indexPath.Section, indexPath.Row); var context = new GroupedListCellContext() { ReusableCell = tableView.DequeueReusableCell(cellType.ToString()).AsCell(), Row = indexPath.Row, Section = indexPath.Section }; var cell = GetCell(context); _lastCell = cell; _lastIndexPath = indexPath; return(cell); }
public static int GetCellTypeFromContext(this INewGroupedListContent content, GroupedListCellContext context) { return content.GetCellType(context.Section, context.Row); }
public abstract TableViewCell GetCell(GroupedListCellContext context);