Class DynamicFlexboxLayoutManager
java.lang.Object
androidx.recyclerview.widget.RecyclerView.LayoutManager
com.google.android.flexbox.FlexboxLayoutManager
com.pranavpandey.android.dynamic.support.recyclerview.widget.DynamicFlexboxLayoutManager
- All Implemented Interfaces:
RecyclerView.SmoothScroller.ScrollVectorProvider
public class DynamicFlexboxLayoutManager
extends com.google.android.flexbox.FlexboxLayoutManager
A
FlexboxLayoutManager to fix RecyclerView issues.-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.android.flexbox.FlexboxLayoutManager
com.google.android.flexbox.FlexboxLayoutManager.LayoutParamsNested classes/interfaces inherited from class androidx.recyclerview.widget.RecyclerView.LayoutManager
RecyclerView.LayoutManager.LayoutPrefetchRegistry, RecyclerView.LayoutManager.Properties -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDynamicFlexboxLayoutManager(Context context) DynamicFlexboxLayoutManager(Context context, int flexDirection) DynamicFlexboxLayoutManager(Context context, int flexDirection, int flexWrap) DynamicFlexboxLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidintintintintintintvoidvoidremoveViewAt(int arg0) booleanMethods inherited from class com.google.android.flexbox.FlexboxLayoutManager
canScrollHorizontally, canScrollVertically, checkLayoutParams, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScrollVectorForPosition, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, findFirstCompletelyVisibleItemPosition, findFirstVisibleItemPosition, findLastCompletelyVisibleItemPosition, findLastVisibleItemPosition, generateDefaultLayoutParams, generateLayoutParams, getAlignContent, getAlignItems, getChildHeightMeasureSpec, getChildWidthMeasureSpec, getDecorationLengthCrossAxis, getDecorationLengthMainAxis, getFlexDirection, getFlexItemAt, getFlexItemCount, getFlexLines, getFlexLinesInternal, getFlexWrap, getJustifyContent, getLargestMainSize, getMaxLine, getRecycleChildrenOnDetach, getReorderedFlexItemAt, getSumOfCrossSize, isAutoMeasureEnabled, isMainAxisDirectionHorizontal, onAdapterChanged, onAttachedToWindow, onDetachedFromWindow, onItemsAdded, onItemsMoved, onItemsRemoved, onItemsUpdated, onItemsUpdated, onLayoutChildren, onLayoutCompleted, onNewFlexItemAdded, onNewFlexLineAdded, onRestoreInstanceState, onSaveInstanceState, scrollHorizontallyBy, scrollToPosition, scrollVerticallyBy, setAlignContent, setAlignItems, setFlexDirection, setFlexLines, setFlexWrap, setJustifyContent, setMaxLine, setRecycleChildrenOnDetach, smoothScrollToPosition, updateViewCacheMethods inherited from class androidx.recyclerview.widget.RecyclerView.LayoutManager
addDisappearingView, addDisappearingView, addView, addView, assertInLayoutOrScroll, assertNotInLayoutOrScroll, attachView, attachView, attachView, calculateItemDecorationsForChild, chooseSize, collectAdjacentPrefetchPositions, collectInitialPrefetchPositions, detachAndScrapAttachedViews, detachAndScrapView, detachAndScrapViewAt, detachView, detachViewAt, endAnimation, findContainingItemView, findViewByPosition, 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, onAddFocusables, onDetachedFromWindow, onFocusSearchFailed, onInitializeAccessibilityEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onInitializeAccessibilityNodeInfoForItem, onInterceptFocusSearch, onItemsChanged, onMeasure, 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
-
Field Details
-
NOT_SET
static final int NOT_SET- See Also:
-
-
Constructor Details
-
DynamicFlexboxLayoutManager
-
DynamicFlexboxLayoutManager
-
DynamicFlexboxLayoutManager
-
DynamicFlexboxLayoutManager
public DynamicFlexboxLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
-
-
Method Details
-
supportsPredictiveItemAnimations
public boolean supportsPredictiveItemAnimations()- Overrides:
supportsPredictiveItemAnimationsin classRecyclerView.LayoutManager
-
addView
-
addView
-
removeAllViews
void removeAllViews() -
removeViewAt
void removeViewAt(int arg0) -
getPaddingTop
int getPaddingTop() -
getPaddingLeft
int getPaddingLeft() -
getPaddingRight
int getPaddingRight() -
getPaddingBottom
int getPaddingBottom() -
getPaddingStart
int getPaddingStart() -
getPaddingEnd
int getPaddingEnd()
-