Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public static int GetCellTypeFromContext(this INewGroupedListContent content, GroupedListCellContext context)
 {
     return content.GetCellType(context.Section, context.Row);
 }
Ejemplo n.º 4
0
 public abstract TableViewCell GetCell(GroupedListCellContext context);