Esempio n. 1
0
        public static AView GetCell(Cell item, AView convertView, ViewGroup parent, Context context, View view)
        {
            CellRenderer renderer = CellRenderer.GetRenderer(item);

            if (renderer == null)
            {
                renderer            = Registrar.Registered.GetHandlerForObject <CellRenderer>(item);
                renderer.ParentView = view;
            }

            AView result = renderer.GetCell(item, convertView, parent, context);

            if (view is TableView)
            {
                UpdateMinimumHeightFromParent(context, result, (TableView)view);
            }
            else if (view is ListView)
            {
                UpdateMinimumHeightFromParent(context, result, (ListView)view);
            }

            return(result);
        }
Esempio n. 2
0
 public RendererHolder(CellRenderer renderer)
 {
     _rendererRef = new WeakReference <CellRenderer>(renderer);
 }
Esempio n. 3
0
 internal static void SetRenderer(BindableObject cell, CellRenderer renderer)
 {
     cell.SetValue(RendererProperty, renderer);
 }