public class LayoutInfoUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
computeLinearLayoutWrappedHeight(LinearLayoutManager linearLayoutManager,
int maxHeight,
java.util.List<ComponentTreeHolder> componentTreeHolders)
Return the accumulated height of ComponentTreeHolders, or return the if the
accumulated height is higher than the .
|
static int |
getBottomDecorationHeight(RecyclerView.LayoutManager layoutManager,
int position) |
static int |
getMaxHeightInRow(int start,
int end,
java.util.List<ComponentTreeHolder> componentTreeHolders)
Return the max height in the , the range is from position to position (excluded).
|
static int |
getTopDecorationHeight(RecyclerView.LayoutManager layoutManager,
int position) |
public static int getTopDecorationHeight(RecyclerView.LayoutManager layoutManager, int position)
public static int getBottomDecorationHeight(RecyclerView.LayoutManager layoutManager, int position)
public static int computeLinearLayoutWrappedHeight(LinearLayoutManager linearLayoutManager, int maxHeight, java.util.List<ComponentTreeHolder> componentTreeHolders)
public static int getMaxHeightInRow(int start, int end, java.util.List<ComponentTreeHolder> componentTreeHolders)