Class ExpansiveGridLayoutManager
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.LayoutManager
-
- androidx.recyclerview.widget.LinearLayoutManager
-
- androidx.recyclerview.widget.GridLayoutManager
-
- com.cheetahdigital.profile.ui.widgets.ExpansiveGridLayoutManager
-
- All Implemented Interfaces:
androidx.recyclerview.widget.ItemTouchHelper.ViewDropHandler
,androidx.recyclerview.widget.RecyclerView.SmoothScroller.ScrollVectorProvider
public class ExpansiveGridLayoutManager extends androidx.recyclerview.widget.GridLayoutManager
ARecyclerView.LayoutManager
implementations that lays out items in a grid.To be used for views with nested
RecyclerView
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class androidx.recyclerview.widget.GridLayoutManager
androidx.recyclerview.widget.GridLayoutManager.DefaultSpanSizeLookup, androidx.recyclerview.widget.GridLayoutManager.LayoutParams, androidx.recyclerview.widget.GridLayoutManager.SpanSizeLookup
-
-
Constructor Summary
Constructors Constructor Description ExpansiveGridLayoutManager(android.content.Context context, int spanCount)
Constructor forExpansiveGridLayoutManager
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canScrollVertically()
void
onMeasure(androidx.recyclerview.widget.RecyclerView.Recycler recycler, androidx.recyclerview.widget.RecyclerView.State state, int widthSpec, int heightSpec)
-
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, setUsingSpansToEstimateScrollbarDimensions, supportsPredictiveItemAnimations
-
Methods inherited from class androidx.recyclerview.widget.LinearLayoutManager
assertNotInLayoutOrScroll, calculateExtraLayoutSpace, canScrollHorizontally, 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, smoothScrollToPosition
-
Methods 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, 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 Detail
-
ExpansiveGridLayoutManager
public ExpansiveGridLayoutManager(android.content.Context context, int spanCount)
Constructor forExpansiveGridLayoutManager
- Parameters:
context
- activity contextspanCount
- number of columns
-
-
Method Detail
-
canScrollVertically
public boolean canScrollVertically()
- Overrides:
canScrollVertically
in classandroidx.recyclerview.widget.LinearLayoutManager
-
onMeasure
public void onMeasure(androidx.recyclerview.widget.RecyclerView.Recycler recycler, androidx.recyclerview.widget.RecyclerView.State state, int widthSpec, int heightSpec)
- Overrides:
onMeasure
in classandroidx.recyclerview.widget.RecyclerView.LayoutManager
-
-