LayoutInfoUtils
Utility class for calculating the wrapped height of given holders.
Functions
Link copied to clipboard
open fun computeLinearLayoutWrappedHeight(linearLayoutManager: LinearLayoutManager, maxHeight: Int, componentTreeHolders: List<ComponentTreeHolder>): Int
Return the accumulated height of ComponentTreeHolders, or return the {@param maxHeight} if the accumulated height is higher than the {@param maxHeight}.
Link copied to clipboard
Link copied to clipboard
open fun getMaxHeightInRow(start: Int, end: Int, componentTreeHolders: List<ComponentTreeHolder>): Int
Return the max height in the {@param componentTreeHolders}, the range is from position {@param * start} to position {@param end} (excluded).
Link copied to clipboard