protected internal virtual CellRecyclerView CreateRowHeaderRecyclerView() { CellRecyclerView recyclerView = new CellRecyclerView(Context); // Set layout manager recyclerView.SetLayoutManager(GetRowHeaderLayoutManager()); // Set layout params FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(mRowHeaderWidth, FrameLayout.LayoutParams.WrapContent); layoutParams.TopMargin = mColumnHeaderHeight; recyclerView.LayoutParameters = layoutParams; if (IsShowVerticalSeparators()) { // Add vertical item decoration to display row line recyclerView.AddItemDecoration(GetVerticalItemDecoration()); } return(recyclerView); }
protected internal virtual CellRecyclerView CreateCellRecyclerView() { CellRecyclerView recyclerView = new CellRecyclerView(Context); // Disable multitouch recyclerView.MotionEventSplittingEnabled = false; // Set layout manager recyclerView.SetLayoutManager(GetCellLayoutManager()); // Set layout params FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WrapContent, FrameLayout.LayoutParams.WrapContent); layoutParams.LeftMargin = mRowHeaderWidth; layoutParams.TopMargin = mColumnHeaderHeight; recyclerView.LayoutParameters = layoutParams; if (IsShowVerticalSeparators()) { // Add vertical item decoration to display row line on center recycler view recyclerView.AddItemDecoration(GetVerticalItemDecoration()); } return(recyclerView); }