コード例 #1
0
        private void RecylerUpdateView(RecyclerView _recyclerView)
        {
            //Create our layout manager
            SimpleItemDecorator itemDecor = new SimpleItemDecorator(this);

            _recyclerView.AddItemDecoration(itemDecor);

            _recyclerView.SetLayoutManager(new GridLayoutManager(this, 2, 1, false));
        }
コード例 #2
0
        private void InitCategoriesRecyclerview(RecyclerView _recyclerView)
        {
            //Create our layout manager
            SimpleItemDecorator itemDecor = new SimpleItemDecorator(this);

            _recyclerView.AddItemDecoration(itemDecor);

            var layoutManager = new GridLayoutManager(this, 2, 1, false);

            _recyclerView.SetLayoutManager(layoutManager);
        }