Esempio n. 1
0
        private void Initialize(RecycleAdapter adapter, RecycleLayoutManager layoutManager)
        {
            FocusGroup = true;
            SetKeyboardNavigationSupport(true);
            Scrolling += OnScrolling;

            this.adapter = adapter;
            this.adapter.OnDataChanged += OnAdapterDataChanged;

            this.layoutManager           = layoutManager;
            this.layoutManager.Container = ContentContainer;
            this.layoutManager.ItemSize  = this.adapter.CreateRecycleItem().Size;
            this.layoutManager.DataCount = this.adapter.Data.Count;

            InitializeItems();
        }
Esempio n. 2
0
 public RecyclerView(RecycleAdapter adapter, RecycleLayoutManager layoutManager)
 {
     Initialize(adapter, layoutManager);
 }