LayoutInfoUtils

Utility class for calculating the wrapped height of given holders.

Functions

Link copied to clipboard
fun computeLinearLayoutWrappedHeight(linearLayoutManager: LinearLayoutManager, maxHeight: Int, componentTreeHolders: List<ComponentTreeHolder>): Int

Return the accumulated height of ComponentTreeHolders, or return the maxHeight if the accumulated height is higher than the maxHeight.

Link copied to clipboard
Link copied to clipboard
fun getMaxHeightInRow(start: Int, end: Int, componentTreeHolders: List<ComponentTreeHolder>): Int

Return the max height in the componentTreeHolders, the range is from position start to position end (excluded).

Link copied to clipboard