-
- All Implemented Interfaces:
-
androidx.recyclerview.widget.ItemTouchHelper.ViewDropHandler,androidx.recyclerview.widget.RecyclerView.SmoothScroller.ScrollVectorProvider
public final class ScrollDurationManger extends LinearLayoutManagerScrollDurationManger
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegermOrientationprivate final OrientationHelpermOrientationHelperprivate final BooleanmShouldReverseLayoutprivate final IntegermPendingScrollPositionprivate final IntegermPendingScrollPositionOffsetprivate final LinearLayoutManager.SavedStatemPendingSavedStateprivate final LinearLayoutManager.AnchorInfomAnchorInfoprivate final ChildHelpermChildHelperprivate final RecyclerViewmRecyclerViewprivate final ViewBoundsCheckmHorizontalBoundCheckprivate final ViewBoundsCheckmVerticalBoundCheckprivate final RecyclerView.SmoothScrollermSmoothScrollerprivate final BooleanmRequestedSimpleAnimationsprivate final BooleanmIsAttachedToWindowprivate final BooleanmAutoMeasureprivate final IntegermPrefetchMaxCountObservedprivate final BooleanmPrefetchMaxObservedInInitialPrefetch
-
Constructor Summary
Constructors Constructor Description ScrollDurationManger(ViewPager2 viewPager2, Integer scrollDuration, LinearLayoutManager linearLayoutManager)
-
Method Summary
Modifier and Type Method Description UnitsmoothScrollToPosition(RecyclerView recyclerView, RecyclerView.State state, Integer position)BooleanperformAccessibilityAction(RecyclerView.Recycler recycler, RecyclerView.State state, Integer action, Bundle args)UnitonInitializeAccessibilityNodeInfo(RecyclerView.Recycler recycler, RecyclerView.State state, AccessibilityNodeInfoCompat info)BooleanrequestChildRectangleOnScreen(RecyclerView parent, View child, Rect rect, Boolean immediate, Boolean focusedChildVisible)-
Methods inherited from class androidx.recyclerview.widget.LinearLayoutManager
addDisappearingView, addDisappearingView, addView, addView, assertInLayoutOrScroll, attachView, attachView, attachView, calculateItemDecorationsForChild, checkLayoutParams, detachAndScrapAttachedViews, detachAndScrapView, detachAndScrapViewAt, detachView, detachViewAt, dispatchAttachedToWindow, dispatchDetachedFromWindow, endAnimation, findContainingItemView, generateLayoutParams, generateLayoutParams, getBaseline, getBottomDecorationHeight, getChildAt, getChildCount, getClipToPadding, getColumnCountForAccessibility, getDecoratedBottom, getDecoratedBoundsWithMargins, getDecoratedLeft, getDecoratedMeasuredHeight, getDecoratedMeasuredWidth, getDecoratedRight, getDecoratedTop, getFocusedChild, getHeight, getHeightMode, getItemCount, getItemViewType, getLayoutDirection, getLeftDecorationWidth, getMinimumHeight, getMinimumWidth, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getPosition, getRightDecorationWidth, getRowCountForAccessibility, getSelectionModeForAccessibility, getTopDecorationHeight, getTransformedBoundingBox, getWidth, getWidthMode, hasFlexibleChildInBothOrientations, hasFocus, ignoreView, isAttachedToWindow, isFocused, isItemPrefetchEnabled, isLayoutHierarchical, isMeasurementCacheEnabled, isSmoothScrolling, isViewPartiallyVisible, layoutDecorated, layoutDecoratedWithMargins, measureChild, measureChildWithMargins, moveView, offsetChildrenHorizontal, offsetChildrenVertical, onAdapterChanged, onAddFocusables, onAttachedToWindow, onDetachedFromWindow, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onInitializeAccessibilityNodeInfoForItem, onInitializeAccessibilityNodeInfoForItem, onInterceptFocusSearch, onItemsAdded, onItemsChanged, onItemsMoved, onItemsRemoved, onItemsUpdated, onItemsUpdated, onMeasure, onRequestChildFocus, onRequestChildFocus, onScrollStateChanged, onSmoothScrollerStopped, performAccessibilityAction, performAccessibilityActionForItem, performAccessibilityActionForItem, postOnAnimation, removeAllViews, removeAndRecycleAllViews, removeAndRecycleScrapInt, removeAndRecycleView, removeAndRecycleViewAt, removeCallbacks, removeDetachedView, removeView, removeViewAt, requestChildRectangleOnScreen, requestLayout, requestSimpleAnimationsInNextLayout, setAutoMeasureEnabled, setExactMeasureSpecsFrom, setItemPrefetchEnabled, setMeasureSpecs, setMeasuredDimension, setMeasuredDimension, setMeasuredDimensionFromChildren, setMeasurementCacheEnabled, setRecyclerView, shouldMeasureChild, shouldReMeasureChild, startSmoothScroll, stopIgnoringView, stopSmoothScroller -
Methods inherited from class com.liecoder.framework.banner.manager.ScrollDurationManger
assertNotInLayoutOrScroll, canScrollHorizontally, canScrollVertically, collectAdjacentPrefetchPositions, collectInitialPrefetchPositions, collectPrefetchPositionsForLayoutState, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScrollVectorForPosition, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, convertFocusDirectionToLayoutDirection, createLayoutState, ensureLayoutState, fill, findFirstCompletelyVisibleItemPosition, findFirstVisibleChildClosestToEnd, findFirstVisibleChildClosestToStart, findFirstVisibleItemPosition, findLastCompletelyVisibleItemPosition, findLastVisibleItemPosition, findOnePartiallyOrCompletelyInvisibleChild, findOneVisibleChild, findReferenceChild, findViewByPosition, generateDefaultLayoutParams, getExtraLayoutSpace, getInitialPrefetchItemCount, getOrientation, getRecycleChildrenOnDetach, getReverseLayout, getStackFromEnd, isAutoMeasureEnabled, isLayoutRTL, isSmoothScrollbarEnabled, layoutChunk, onAnchorReady, onDetachedFromWindow, onFocusSearchFailed, onInitializeAccessibilityEvent, onLayoutChildren, onLayoutCompleted, onRestoreInstanceState, onSaveInstanceState, prepareForDrop, resolveIsInfinite, scrollBy, scrollHorizontallyBy, scrollToPosition, scrollToPositionWithOffset, scrollVerticallyBy, setInitialPrefetchItemCount, setOrientation, setRecycleChildrenOnDetach, setReverseLayout, setSmoothScrollbarEnabled, setStackFromEnd, shouldMeasureTwice, supportsPredictiveItemAnimations, validateChildOrder -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ScrollDurationManger
ScrollDurationManger(ViewPager2 viewPager2, Integer scrollDuration, LinearLayoutManager linearLayoutManager)
-
-
Method Detail
-
smoothScrollToPosition
Unit smoothScrollToPosition(RecyclerView recyclerView, RecyclerView.State state, Integer position)
-
performAccessibilityAction
Boolean performAccessibilityAction(RecyclerView.Recycler recycler, RecyclerView.State state, Integer action, Bundle args)
-
onInitializeAccessibilityNodeInfo
Unit onInitializeAccessibilityNodeInfo(RecyclerView.Recycler recycler, RecyclerView.State state, AccessibilityNodeInfoCompat info)
-
requestChildRectangleOnScreen
Boolean requestChildRectangleOnScreen(RecyclerView parent, View child, Rect rect, Boolean immediate, Boolean focusedChildVisible)
-
-
-
-