public CalendarLayoutManager()
 {
     orientationHelper = OrientationHelper.CreateVerticalHelper(this);
     anchorInfo        = new AnchorInfo(orientationHelper, anchorCount);
     layoutState       = new LayoutState(anchorCount);
 }
Exemple #2
0
 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));
 }