GridLayoutInfo

Constructors

Link copied to clipboard
constructor(gridLayoutManager: GridLayoutManager)
constructor(context: Context, spanCount: Int, orientation: Int, reverseLayout: Boolean, allowGridMeasuresOverride: Boolean)
constructor(context: Context, spanCount: Int, orientation: Int, reverseLayout: Boolean)
constructor(context: Context, spanCount: Int)

Properties

Link copied to clipboard
val OVERRIDE_SIZE: String = "OVERRIDE_SIZE"

Functions

Link copied to clipboard
open fun approximateRangeSize(firstMeasuredItemWidth: Int, firstMeasuredItemHeight: Int, recyclerMeasuredWidth: Int, recyclerMeasuredHeight: Int): Int
This is called when the RecyclerBinder needs to calculate a range size.
Link copied to clipboard
open fun computeWrappedHeight(maxHeight: Int, componentTreeHolders: List<ComponentTreeHolder>): Int
Link copied to clipboard
open fun createViewportFiller(measuredWidth: Int, measuredHeight: Int): GridLayoutInfo.ViewportFiller
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getChildHeightSpec(heightSpec: Int, renderInfo: RenderInfo): Int
Link copied to clipboard
open fun getChildWidthSpec(widthSpec: Int, renderInfo: RenderInfo): Int
Link copied to clipboard
open fun getItemCount(): Int
Link copied to clipboard
Link copied to clipboard
This is the main scrolling direction that the LayoutManager passed to this binder will use.
Link copied to clipboard
open fun scrollToPositionWithOffset(position: Int, offset: Int)
RecyclerBinder delegates scrolling responsibilities to the LayoutInfo, as the varied LayoutManagers wrapped by a LayoutInfo lack a common scrolling interface.
Link copied to clipboard