Class DynamicGridLayoutManager
java.lang.Object
androidx.recyclerview.widget.RecyclerView.LayoutManager
androidx.recyclerview.widget.LinearLayoutManager
androidx.recyclerview.widget.GridLayoutManager
com.pranavpandey.android.dynamic.support.recyclerview.widget.DynamicGridLayoutManager
- All Implemented Interfaces:
ItemTouchHelper.ViewDropHandler,RecyclerView.SmoothScroller.ScrollVectorProvider
A
GridLayoutManager to fix RecyclerView issues.-
Nested Class Summary
Nested classes/interfaces inherited from class androidx.recyclerview.widget.GridLayoutManager
GridLayoutManager.DefaultSpanSizeLookup, GridLayoutManager.LayoutParams, GridLayoutManager.SpanSizeLookupNested classes/interfaces inherited from class androidx.recyclerview.widget.LinearLayoutManager
LinearLayoutManager.LayoutChunkResult, LinearLayoutManager.SavedStateNested classes/interfaces inherited from class androidx.recyclerview.widget.RecyclerView.LayoutManager
RecyclerView.LayoutManager.LayoutPrefetchRegistry, RecyclerView.LayoutManager.Properties -
Field Summary
Fields inherited from class androidx.recyclerview.widget.GridLayoutManager
DEFAULT_SPAN_COUNTFields inherited from class androidx.recyclerview.widget.LinearLayoutManager
HORIZONTAL, INVALID_OFFSET, VERTICAL -
Constructor Summary
ConstructorsConstructorDescriptionDynamicGridLayoutManager(Context context, int spanCount) DynamicGridLayoutManager(Context context, int spanCount, int orientation, boolean reverseLayout) DynamicGridLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) -
Method Summary
Methods inherited from class androidx.recyclerview.widget.GridLayoutManager
checkLayoutParams, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeVerticalScrollOffset, computeVerticalScrollRange, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getColumnCountForAccessibility, getRowCountForAccessibility, getSpanCount, getSpanSizeLookup, isUsingSpansToEstimateScrollbarDimensions, onFocusSearchFailed, onInitializeAccessibilityNodeInfoForItem, onItemsAdded, onItemsChanged, onItemsMoved, onItemsRemoved, onItemsUpdated, onLayoutChildren, onLayoutCompleted, scrollHorizontallyBy, scrollVerticallyBy, setMeasuredDimension, setSpanCount, setSpanSizeLookup, setStackFromEnd, setUsingSpansToEstimateScrollbarDimensionsMethods inherited from class androidx.recyclerview.widget.LinearLayoutManager
assertNotInLayoutOrScroll, calculateExtraLayoutSpace, canScrollHorizontally, canScrollVertically, collectAdjacentPrefetchPositions, collectInitialPrefetchPositions, computeHorizontalScrollExtent, computeScrollVectorForPosition, computeVerticalScrollExtent, findFirstCompletelyVisibleItemPosition, findFirstVisibleItemPosition, findLastCompletelyVisibleItemPosition, findLastVisibleItemPosition, findViewByPosition, getExtraLayoutSpace, getInitialPrefetchItemCount, getOrientation, getRecycleChildrenOnDetach, getReverseLayout, getStackFromEnd, isAutoMeasureEnabled, isLayoutRTL, isSmoothScrollbarEnabled, onDetachedFromWindow, onInitializeAccessibilityEvent, onRestoreInstanceState, onSaveInstanceState, prepareForDrop, scrollToPosition, scrollToPositionWithOffset, setInitialPrefetchItemCount, setOrientation, setRecycleChildrenOnDetach, setReverseLayout, setSmoothScrollbarEnabled, smoothScrollToPositionMethods inherited from class androidx.recyclerview.widget.RecyclerView.LayoutManager
addDisappearingView, addDisappearingView, addView, addView, assertInLayoutOrScroll, attachView, attachView, attachView, calculateItemDecorationsForChild, chooseSize, detachAndScrapAttachedViews, detachAndScrapView, detachAndScrapViewAt, detachView, detachViewAt, endAnimation, findContainingItemView, getBaseline, getBottomDecorationHeight, getChildAt, getChildCount, getChildMeasureSpec, getChildMeasureSpec, getClipToPadding, getDecoratedBottom, getDecoratedBoundsWithMargins, getDecoratedLeft, getDecoratedMeasuredHeight, getDecoratedMeasuredWidth, getDecoratedRight, getDecoratedTop, getFocusedChild, getHeight, getHeightMode, getItemCount, getItemViewType, getLayoutDirection, getLeftDecorationWidth, getMinimumHeight, getMinimumWidth, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getPosition, getProperties, getRightDecorationWidth, getSelectionModeForAccessibility, getTopDecorationHeight, getTransformedBoundingBox, getWidth, getWidthMode, hasFocus, ignoreView, isAttachedToWindow, isFocused, isItemPrefetchEnabled, isLayoutHierarchical, isMeasurementCacheEnabled, isSmoothScrolling, isViewPartiallyVisible, layoutDecorated, layoutDecoratedWithMargins, measureChild, measureChildWithMargins, moveView, offsetChildrenHorizontal, offsetChildrenVertical, onAdapterChanged, onAddFocusables, onAttachedToWindow, onDetachedFromWindow, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onInterceptFocusSearch, onItemsUpdated, onMeasure, onRequestChildFocus, onRequestChildFocus, onScrollStateChanged, performAccessibilityAction, performAccessibilityActionForItem, postOnAnimation, removeAllViews, removeAndRecycleAllViews, removeAndRecycleView, removeAndRecycleViewAt, removeCallbacks, removeDetachedView, removeView, removeViewAt, requestChildRectangleOnScreen, requestChildRectangleOnScreen, requestLayout, requestSimpleAnimationsInNextLayout, setAutoMeasureEnabled, setItemPrefetchEnabled, setMeasuredDimension, setMeasurementCacheEnabled, startSmoothScroll, stopIgnoringView
-
Constructor Details
-
DynamicGridLayoutManager
public DynamicGridLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) -
DynamicGridLayoutManager
-
DynamicGridLayoutManager
public DynamicGridLayoutManager(Context context, int spanCount, int orientation, boolean reverseLayout)
-
-
Method Details
-
supportsPredictiveItemAnimations
public boolean supportsPredictiveItemAnimations()- Overrides:
supportsPredictiveItemAnimationsin classGridLayoutManager
-