approximateRangeSize
open fun approximateRangeSize(firstMeasuredItemWidth: Int, firstMeasuredItemHeight: Int, recyclerMeasuredWidth: Int, recyclerMeasuredHeight: Int): Int
This is called when the RecyclerBinder needs to calculate a range size. The returned value should be an approximate range size based on the size of the first measured item.
Return
The estimated number of items that are needed to fill one viewport of the RecyclerView.
Parameters
firstMeasuredItemWidth
The width of the first item measured while computing the range.
firstMeasuredItemHeight
The height of the first item measured while computing the range.
recyclerMeasuredWidth
The measured width of the RecyclerView. If the RecyclerView scrolls vertically this might be not significant.
recyclerMeasuredHeight
The measured height of the RecyclerView. If the RecyclerView scrolls horizontally this might be not significant.