-
- All Implemented Interfaces:
-
androidx.recyclerview.widget.ItemTouchHelper.ViewDropHandler,androidx.recyclerview.widget.RecyclerView.SmoothScroller.ScrollVectorProvider
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) public final class CustomLinearLayoutManager extends LinearLayoutManager
Custom implementation of LinearLayoutManager with more control.
-
-
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 CustomLinearLayoutManager(Context context, Boolean scrollable, Integer orientation, Boolean reverseLayout)
-
Method Summary
Modifier and Type Method Description BooleancanScrollVertically()BooleancanScrollHorizontally()-
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, onInitializeAccessibilityNodeInfo, onInitializeAccessibilityNodeInfoForItem, onInitializeAccessibilityNodeInfoForItem, onInterceptFocusSearch, onItemsAdded, onItemsChanged, onItemsMoved, onItemsRemoved, onItemsUpdated, onItemsUpdated, onMeasure, onRequestChildFocus, onRequestChildFocus, onScrollStateChanged, onSmoothScrollerStopped, performAccessibilityAction, performAccessibilityAction, performAccessibilityActionForItem, performAccessibilityActionForItem, postOnAnimation, removeAllViews, removeAndRecycleAllViews, removeAndRecycleScrapInt, removeAndRecycleView, removeAndRecycleViewAt, removeCallbacks, removeDetachedView, removeView, removeViewAt, requestChildRectangleOnScreen, requestChildRectangleOnScreen, requestLayout, requestSimpleAnimationsInNextLayout, setAutoMeasureEnabled, setExactMeasureSpecsFrom, setItemPrefetchEnabled, setMeasureSpecs, setMeasuredDimension, setMeasuredDimension, setMeasuredDimensionFromChildren, setMeasurementCacheEnabled, setRecyclerView, shouldMeasureChild, shouldReMeasureChild, startSmoothScroll, stopIgnoringView, stopSmoothScroller -
Methods inherited from class com.maxkeppeler.sheets.core.layoutmanagers.CustomLinearLayoutManager
assertNotInLayoutOrScroll, calculateExtraLayoutSpace, 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, smoothScrollToPosition, supportsPredictiveItemAnimations, validateChildOrder -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
canScrollVertically
Boolean canScrollVertically()
-
canScrollHorizontally
Boolean canScrollHorizontally()
-
-
-
-