Class ExpansiveLayoutManager
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.LayoutManager
-
- androidx.recyclerview.widget.LinearLayoutManager
-
- com.cheetahdigital.profile.ui.widgets.ExpansiveLayoutManager
-
- All Implemented Interfaces:
androidx.recyclerview.widget.ItemTouchHelper.ViewDropHandler
,androidx.recyclerview.widget.RecyclerView.SmoothScroller.ScrollVectorProvider
public class ExpansiveLayoutManager extends androidx.recyclerview.widget.LinearLayoutManager
ARecyclerView.LayoutManager
implementations that lays out items linearly.To be used for views with nested
RecyclerView
-
-
Field Summary
Fields Modifier and Type Field Description int[]
mMeasuredDimension
-
Constructor Summary
Constructors Constructor Description ExpansiveLayoutManager(android.content.Context context)
Default constructor forExpansiveLayoutManager
ExpansiveLayoutManager(android.content.Context context, int orientation, boolean reverseLayout)
Constructor with attributes forExpansiveLayoutManager
ExpansiveLayoutManager(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes)
-
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.LinearLayoutManager
assertNotInLayoutOrScroll, calculateExtraLayoutSpace, canScrollHorizontally, collectAdjacentPrefetchPositions, collectInitialPrefetchPositions, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScrollVectorForPosition, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, findFirstCompletelyVisibleItemPosition, findFirstVisibleItemPosition, findLastCompletelyVisibleItemPosition, findLastVisibleItemPosition, findViewByPosition, generateDefaultLayoutParams, getExtraLayoutSpace, getInitialPrefetchItemCount, getOrientation, getRecycleChildrenOnDetach, getReverseLayout, getStackFromEnd, isAutoMeasureEnabled, isLayoutRTL, isSmoothScrollbarEnabled, onDetachedFromWindow, onFocusSearchFailed, onInitializeAccessibilityEvent, onLayoutChildren, onLayoutCompleted, onRestoreInstanceState, onSaveInstanceState, prepareForDrop, scrollHorizontallyBy, scrollToPosition, scrollToPositionWithOffset, scrollVerticallyBy, setInitialPrefetchItemCount, setOrientation, setRecycleChildrenOnDetach, setReverseLayout, setSmoothScrollbarEnabled, setStackFromEnd, smoothScrollToPosition, supportsPredictiveItemAnimations
-
Methods inherited from class androidx.recyclerview.widget.RecyclerView.LayoutManager
addDisappearingView, addDisappearingView, addView, addView, assertInLayoutOrScroll, attachView, attachView, attachView, calculateItemDecorationsForChild, checkLayoutParams, chooseSize, detachAndScrapAttachedViews, detachAndScrapView, detachAndScrapViewAt, detachView, detachViewAt, endAnimation, findContainingItemView, generateLayoutParams, generateLayoutParams, getBaseline, getBottomDecorationHeight, getChildAt, getChildCount, getChildMeasureSpec, getChildMeasureSpec, 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, getProperties, getRightDecorationWidth, getRowCountForAccessibility, 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, onInitializeAccessibilityNodeInfoForItem, onInterceptFocusSearch, onItemsAdded, onItemsChanged, onItemsMoved, onItemsRemoved, onItemsUpdated, onItemsUpdated, onRequestChildFocus, onRequestChildFocus, onScrollStateChanged, performAccessibilityAction, performAccessibilityActionForItem, postOnAnimation, removeAllViews, removeAndRecycleAllViews, removeAndRecycleView, removeAndRecycleViewAt, removeCallbacks, removeDetachedView, removeView, removeViewAt, requestChildRectangleOnScreen, requestChildRectangleOnScreen, requestLayout, requestSimpleAnimationsInNextLayout, setAutoMeasureEnabled, setItemPrefetchEnabled, setMeasuredDimension, setMeasuredDimension, setMeasurementCacheEnabled, startSmoothScroll, stopIgnoringView
-
-
-
-
Constructor Detail
-
ExpansiveLayoutManager
public ExpansiveLayoutManager(android.content.Context context)
Default constructor forExpansiveLayoutManager
- Parameters:
context
- activity context
-
ExpansiveLayoutManager
public ExpansiveLayoutManager(android.content.Context context, int orientation, boolean reverseLayout)
Constructor with attributes forExpansiveLayoutManager
- Parameters:
context
- activity contextorientation
- orientation of the layout;LinearLayoutManager.HORIZONTAL
orLinearLayoutManager.VERTICAL
reverseLayout
- boolean, true or false
-
ExpansiveLayoutManager
public ExpansiveLayoutManager(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes)
-
-
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
-
-