Пример #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _boxedView = null;
     }
     base.Dispose(disposing);
 }
Пример #2
0
 public BoxedViewRecyclerAdapter(Context context, App.Controls.BoxedView.BoxedView boxedView,
                                 RecyclerView recyclerView)
 {
     _context                 = context;
     _boxedView               = boxedView;
     _recyclerView            = recyclerView;
     _boxedView.ModelChanged += BoxedView_ModelChanged;
 }
Пример #3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _boxedView.ModelChanged -= BoxedView_ModelChanged;
         _cellCaches?.Clear();
         _cellCaches = null;
         _boxedView  = null;
         _viewTypes  = null;
         foreach (var holder in _viewHolders)
         {
             holder.Dispose();
         }
         _viewHolders.Clear();
         _viewHolders = null;
     }
     base.Dispose(disposing);
 }
Пример #4
0
 public BoxedViewSimpleCallback(App.Controls.BoxedView.BoxedView boxedView, int dragDirs, int swipeDirs)
     : base(dragDirs, swipeDirs)
 {
     _boxedView = boxedView;
 }
Пример #5
0
 public FooterViewHolder(AView view, App.Controls.BoxedView.BoxedView boxedView)
     : base(view)
 {
     TextView = view.FindViewById <TextView>(Resource.Id.FooterCellText);
 }
Пример #6
0
 public HeaderViewHolder(AView view, App.Controls.BoxedView.BoxedView boxedView)
     : base(view)
 {
     TextView = view.FindViewById <TextView>(Resource.Id.HeaderCellText);
     Border   = view.FindViewById <LinearLayout>(Resource.Id.HeaderCellBorder);
 }