-
- All Implemented Interfaces:
-
androidx.recyclerview.widget.RecyclerView.SmoothScroller.ScrollVectorProvider
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) public final class CustomStaggeredGridLayoutManager extends StaggeredGridLayoutManager
Custom implementation of StaggeredGridLayoutManager with more control.
-
-
Field Summary
Fields Modifier and Type Field Description private final Array<StaggeredGridLayoutManager.Span>mSpansprivate final OrientationHelpermPrimaryOrientationprivate final OrientationHelpermSecondaryOrientationprivate final BooleanmReverseLayoutprivate final BooleanmShouldReverseLayoutprivate final IntegermPendingScrollPositionprivate final IntegermPendingScrollPositionOffsetprivate final StaggeredGridLayoutManager.LazySpanLookupmLazySpanLookupprivate 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 CustomStaggeredGridLayoutManager(Integer columns, Integer orientation, Boolean scrollable)
-
Method Summary
Modifier and Type Method Description BooleancanScrollVertically()BooleancanScrollHorizontally()-
Methods inherited from class androidx.recyclerview.widget.StaggeredGridLayoutManager
addDisappearingView, addDisappearingView, addView, addView, assertInLayoutOrScroll, attachView, attachView, attachView, calculateItemDecorationsForChild, collectInitialPrefetchPositions, detachAndScrapAttachedViews, detachAndScrapView, detachAndScrapViewAt, detachView, detachViewAt, dispatchAttachedToWindow, dispatchDetachedFromWindow, endAnimation, findContainingItemView, findViewByPosition, 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, onAddFocusables, onAttachedToWindow, onDetachedFromWindow, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onInitializeAccessibilityNodeInfo, onInitializeAccessibilityNodeInfoForItem, onInitializeAccessibilityNodeInfoForItem, onInterceptFocusSearch, onItemsUpdated, onMeasure, onRequestChildFocus, onRequestChildFocus, onSmoothScrollerStopped, performAccessibilityAction, performAccessibilityAction, performAccessibilityActionForItem, performAccessibilityActionForItem, postOnAnimation, removeAllViews, removeAndRecycleAllViews, removeAndRecycleScrapInt, removeAndRecycleView, removeAndRecycleViewAt, removeCallbacks, removeDetachedView, removeView, removeViewAt, requestChildRectangleOnScreen, requestChildRectangleOnScreen, requestLayout, requestSimpleAnimationsInNextLayout, setAutoMeasureEnabled, setExactMeasureSpecsFrom, setItemPrefetchEnabled, setMeasureSpecs, setMeasuredDimension, setMeasuredDimensionFromChildren, setMeasurementCacheEnabled, setRecyclerView, shouldMeasureChild, shouldMeasureTwice, shouldReMeasureChild, startSmoothScroll, stopIgnoringView, stopSmoothScroller -
Methods inherited from class com.maxkeppeler.sheets.core.layoutmanagers.CustomStaggeredGridLayoutManager
areAllEndsEqual, areAllStartsEqual, assertNotInLayoutOrScroll, checkForGaps, checkLayoutParams, collectAdjacentPrefetchPositions, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScrollVectorForPosition, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, findFirstCompletelyVisibleItemPositions, findFirstVisibleItemClosestToEnd, findFirstVisibleItemClosestToStart, findFirstVisibleItemPositionInt, findFirstVisibleItemPositions, findLastCompletelyVisibleItemPositions, findLastVisibleItemPositions, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getFirstChildPosition, getGapStrategy, getLastChildPosition, getOrientation, getReverseLayout, getSpanCount, hasGapsToFix, invalidateSpanAssignments, isAutoMeasureEnabled, isLayoutRTL, offsetChildrenHorizontal, offsetChildrenVertical, onAdapterChanged, onDetachedFromWindow, onFocusSearchFailed, onInitializeAccessibilityEvent, onItemsAdded, onItemsChanged, onItemsMoved, onItemsRemoved, onItemsUpdated, onLayoutChildren, onLayoutCompleted, onRestoreInstanceState, onSaveInstanceState, onScrollStateChanged, prepareLayoutStateForDelta, scrollBy, scrollHorizontallyBy, scrollToPosition, scrollToPositionWithOffset, scrollVerticallyBy, setGapStrategy, setMeasuredDimension, setOrientation, setReverseLayout, setSpanCount, smoothScrollToPosition, supportsPredictiveItemAnimations, updateAnchorFromPendingData, updateAnchorInfoForLayout, updateMeasureSpecs -
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()
-
-
-
-