-
- All Implemented Interfaces:
-
androidx.recyclerview.widget.ItemTouchHelper.ViewDropHandler,androidx.recyclerview.widget.RecyclerView.SmoothScroller.ScrollVectorProvider
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) public final class CustomGridLayoutManager extends GridLayoutManager
Custom implementation of GridLayoutManager with more control.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CustomGridLayoutManager(Context ctx, Integer columns, Boolean scrollable, Integer orientation)
-
Method Summary
Modifier and Type Method Description BooleancanScrollHorizontally()BooleancanScrollVertically()-
Methods inherited from class androidx.recyclerview.widget.LinearLayoutManager
addDisappearingView, addDisappearingView, addView, addView, assertInLayoutOrScroll, attachView, attachView, attachView, calculateItemDecorationsForChild, detachAndScrapAttachedViews, detachAndScrapView, detachAndScrapViewAt, detachView, detachViewAt, dispatchAttachedToWindow, dispatchDetachedFromWindow, endAnimation, findContainingItemView, getBaseline, getBottomDecorationHeight, getChildAt, getChildCount, getClipToPadding, getDecoratedBottom, getDecoratedBoundsWithMargins, getDecoratedLeft, getDecoratedMeasuredHeight, getDecoratedMeasuredWidth, getDecoratedRight, getDecoratedTop, getFocusedChild, getHeight, getHeightMode, getItemCount, getItemViewType, getLayoutDirection, getLeftDecorationWidth, getMinimumHeight, getMinimumWidth, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getPosition, getRightDecorationWidth, 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, onInterceptFocusSearch, 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, setMeasuredDimensionFromChildren, setMeasurementCacheEnabled, setRecyclerView, shouldMeasureChild, shouldReMeasureChild, startSmoothScroll, stopIgnoringView, stopSmoothScroller -
Methods inherited from class com.maxkeppeler.sheets.core.layoutmanagers.CustomGridLayoutManager
checkLayoutParams, collectPrefetchPositionsForLayoutState, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeVerticalScrollOffset, computeVerticalScrollRange, findReferenceChild, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getColumnCountForAccessibility, getRowCountForAccessibility, getSpaceForSpanRange, getSpanCount, getSpanSizeLookup, isUsingSpansToEstimateScrollbarDimensions, layoutChunk, onAnchorReady, onFocusSearchFailed, onInitializeAccessibilityNodeInfoForItem, onItemsAdded, onItemsChanged, onItemsMoved, onItemsRemoved, onItemsUpdated, onLayoutChildren, onLayoutCompleted, scrollHorizontallyBy, scrollVerticallyBy, setMeasuredDimension, setSpanCount, setSpanSizeLookup, setStackFromEnd, setUsingSpansToEstimateScrollbarDimensions, supportsPredictiveItemAnimations -
Methods inherited from class androidx.recyclerview.widget.GridLayoutManager
assertNotInLayoutOrScroll, calculateExtraLayoutSpace, collectAdjacentPrefetchPositions, collectInitialPrefetchPositions, computeHorizontalScrollExtent, computeScrollVectorForPosition, computeVerticalScrollExtent, convertFocusDirectionToLayoutDirection, createLayoutState, ensureLayoutState, fill, findFirstCompletelyVisibleItemPosition, findFirstVisibleChildClosestToEnd, findFirstVisibleChildClosestToStart, findFirstVisibleItemPosition, findLastCompletelyVisibleItemPosition, findLastVisibleItemPosition, findOnePartiallyOrCompletelyInvisibleChild, findOneVisibleChild, findViewByPosition, getExtraLayoutSpace, getInitialPrefetchItemCount, getOrientation, getRecycleChildrenOnDetach, getReverseLayout, getStackFromEnd, isAutoMeasureEnabled, isLayoutRTL, isSmoothScrollbarEnabled, onDetachedFromWindow, onInitializeAccessibilityEvent, onRestoreInstanceState, onSaveInstanceState, prepareForDrop, resolveIsInfinite, scrollBy, scrollToPosition, scrollToPositionWithOffset, setInitialPrefetchItemCount, setOrientation, setRecycleChildrenOnDetach, setReverseLayout, setSmoothScrollbarEnabled, shouldMeasureTwice, smoothScrollToPosition, validateChildOrder -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
canScrollHorizontally
Boolean canScrollHorizontally()
-
canScrollVertically
Boolean canScrollVertically()
-
-
-
-