protected static OrientationHelper CreateOrientationHelper(RecyclerView.LayoutManager layoutManager)
 {
     return(layoutManager.CanScrollHorizontally()
                         ? OrientationHelper.CreateHorizontalHelper(layoutManager)
                         : OrientationHelper.CreateVerticalHelper(layoutManager));
 }
コード例 #2
0
 private OrientationHelper GetHorizontalHelper(RecyclerView.LayoutManager layoutManager)
 {
     return(_horizontalHelper ?? (_horizontalHelper = OrientationHelper.CreateHorizontalHelper(layoutManager)));
 }
コード例 #3
0
 private OrientationHelper getHorizontalHelper(RecyclerView.LayoutManager layoutManager)
 => horizontalHelper ?? (horizontalHelper = OrientationHelper.CreateHorizontalHelper(layoutManager));