Ejemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            _disposed = true;
            if (disposing)
            {
                SetLayoutManager(null);
                var adapter = this.GetAdapter();
                SetAdapter(null);
                adapter?.Dispose();
                _layoutManager?.Dispose();
                _layoutManager = null;
            }

            base.Dispose(disposing);
        }
Ejemplo n.º 2
0
 public RecyclerViewContainer(Context context) : base(context)
 {
     SetClipToPadding(false);
     SetLayoutManager(_layoutManager = new ScrollLayoutManager(context, (int)Orientation.Vertical, false));
     SetLayoutManager(new LinearLayoutManager(context, (int)Orientation.Vertical, false));
 }