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)); }
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); }