Package com.xiaofeng.flowlayoutmanager
Class LayoutHelper
-
- All Implemented Interfaces:
public class LayoutHelperGeometry helpers of the visible area and of the line breaking rules. Used internally by FlowLayoutManager.
xhan
-
-
Constructor Summary
Constructors Constructor Description LayoutHelper(RecyclerView.LayoutManager layoutManager, RecyclerView recyclerView)
-
Method Summary
Modifier and Type Method Description static booleanhasItemsPerLineLimit(FlowLayoutOptions layoutOptions)static booleanhasMaxLinesLimit(FlowLayoutOptions layoutOptions)static booleanshouldStartNewline(int x, int childWidth, int leftEdge, int rightEdge, LayoutContext layoutContext)intleftVisibleEdge()intrightVisibleEdge()intvisibleAreaWidth()inttopVisibleEdge()intbottomVisibleEdge()PointlayoutStartPoint(LayoutContext layoutContext)-
-
Constructor Detail
-
LayoutHelper
LayoutHelper(RecyclerView.LayoutManager layoutManager, RecyclerView recyclerView)
-
-
Method Detail
-
hasItemsPerLineLimit
static boolean hasItemsPerLineLimit(FlowLayoutOptions layoutOptions)
-
hasMaxLinesLimit
static boolean hasMaxLinesLimit(FlowLayoutOptions layoutOptions)
-
shouldStartNewline
static boolean shouldStartNewline(int x, int childWidth, int leftEdge, int rightEdge, LayoutContext layoutContext)
-
leftVisibleEdge
int leftVisibleEdge()
-
rightVisibleEdge
int rightVisibleEdge()
-
visibleAreaWidth
int visibleAreaWidth()
-
topVisibleEdge
int topVisibleEdge()
-
bottomVisibleEdge
int bottomVisibleEdge()
-
layoutStartPoint
Point layoutStartPoint(LayoutContext layoutContext)
-
-
-
-