Lines Matching refs:layoutManager

65         RecyclerView.LayoutManager layoutManager = mRecyclerView.getLayoutManager();
66 if (layoutManager == null) {
75 && snapFromFling(layoutManager, velocityX, velocityY);
148 * @param layoutManager The {@link RecyclerView.LayoutManager} associated with the attached
155 private boolean snapFromFling(@NonNull RecyclerView.LayoutManager layoutManager, int velocityX,
157 if (!(layoutManager instanceof RecyclerView.SmoothScroller.ScrollVectorProvider)) {
161 RecyclerView.SmoothScroller smoothScroller = createScroller(layoutManager);
166 int targetPosition = findTargetSnapPosition(layoutManager, velocityX, velocityY);
172 layoutManager.startSmoothScroll(smoothScroller);
185 RecyclerView.LayoutManager layoutManager = mRecyclerView.getLayoutManager();
186 if (layoutManager == null) {
189 View snapView = findSnapView(layoutManager);
193 int[] snapDistance = calculateDistanceToFinalSnap(layoutManager, snapView);
202 * @param layoutManager The {@link RecyclerView.LayoutManager} associated with the attached
208 protected RecyclerView.SmoothScroller createScroller(RecyclerView.LayoutManager layoutManager) {
209 return createSnapScroller(layoutManager);
215 * @param layoutManager The {@link RecyclerView.LayoutManager} associated with the attached
223 protected LinearSmoothScroller createSnapScroller(RecyclerView.LayoutManager layoutManager) {
224 if (!(layoutManager instanceof RecyclerView.SmoothScroller.ScrollVectorProvider)) {
258 * @param layoutManager the {@link RecyclerView.LayoutManager} associated with the attached
267 public abstract int[] calculateDistanceToFinalSnap(@NonNull RecyclerView.LayoutManager layoutManager,
280 * @param layoutManager the {@link RecyclerView.LayoutManager} associated with the attached
287 public abstract View findSnapView(RecyclerView.LayoutManager layoutManager);
292 * @param layoutManager the {@link RecyclerView.LayoutManager} associated with the attached
300 public abstract int findTargetSnapPosition(RecyclerView.LayoutManager layoutManager, int velocityX,