Class BadgeGridLayoutManager

  • All Implemented Interfaces:
    androidx.recyclerview.widget.ItemTouchHelper.ViewDropHandler, androidx.recyclerview.widget.RecyclerView.SmoothScroller.ScrollVectorProvider

    public class BadgeGridLayoutManager
    extends androidx.recyclerview.widget.GridLayoutManager
    Layout manager
    • 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
      • Nested classes/interfaces inherited from class androidx.recyclerview.widget.LinearLayoutManager

        androidx.recyclerview.widget.LinearLayoutManager.LayoutChunkResult, androidx.recyclerview.widget.LinearLayoutManager.SavedState
      • Nested classes/interfaces inherited from class androidx.recyclerview.widget.RecyclerView.LayoutManager

        androidx.recyclerview.widget.RecyclerView.LayoutManager.LayoutPrefetchRegistry, androidx.recyclerview.widget.RecyclerView.LayoutManager.Properties
    • Field Summary

      • Fields inherited from class androidx.recyclerview.widget.GridLayoutManager

        DEFAULT_SPAN_COUNT
      • Fields inherited from class androidx.recyclerview.widget.LinearLayoutManager

        HORIZONTAL, INVALID_OFFSET, VERTICAL
    • Constructor Summary

      Constructors 
      Constructor Description
      BadgeGridLayoutManager​(android.content.Context context, int spanCount)  
      BadgeGridLayoutManager​(android.content.Context context, int spanCount, boolean canScrollVertically)  
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BadgeGridLayoutManager

        public BadgeGridLayoutManager​(android.content.Context context,
                                      int spanCount)
      • BadgeGridLayoutManager

        public BadgeGridLayoutManager​(android.content.Context context,
                                      int spanCount,
                                      boolean canScrollVertically)
    • Method Detail

      • canScrollVertically

        public boolean canScrollVertically()
        Overrides:
        canScrollVertically in class androidx.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 class androidx.recyclerview.widget.RecyclerView.LayoutManager