public CalendarLayoutManager() { orientationHelper = OrientationHelper.CreateVerticalHelper(this); anchorInfo = new AnchorInfo(orientationHelper, anchorCount); layoutState = new LayoutState(anchorCount); }
private OrientationHelper GetVerticalHelper(RecyclerView.LayoutManager layoutManager) { return(_verticalHelper ?? (_verticalHelper = OrientationHelper.CreateVerticalHelper(layoutManager))); }
protected static OrientationHelper CreateOrientationHelper(RecyclerView.LayoutManager layoutManager) { return(layoutManager.CanScrollHorizontally() ? OrientationHelper.CreateHorizontalHelper(layoutManager) : OrientationHelper.CreateVerticalHelper(layoutManager)); }