public class ListGridLayoutManager extends ListLinearLayoutManager
ListLayoutManager and implements the grid layout of the ListComponent.| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
DEFAULT_LANE_COUNT |
Indicates the default number of lanes.
|
HORIZONTAL, INVALID_OFFSET, VERTICAL| 构造器 | 说明 |
|---|---|
ListGridLayoutManager() |
Default constructor used to create a
ListGridLayoutManager instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
protected void |
createNativePtr() |
|
int |
getLaneCount() |
Obtains the number of lanes in the layout.
|
LaneInfoHelper |
getLaneInfoHelper() |
Obtains the
LaneInfoHelper instance that saves the lane information of each component. |
boolean |
isReckonScrollbarInfoWithLanes() |
Checks whether the lane information is used to calculate the display information of the scroll bar.
|
void |
setLaneCount(int laneCount) |
Sets the number of lanes for the layout.
|
void |
setLaneInfoHelper(LaneInfoHelper laneInfoHelper) |
Sets a
LaneInfoHelper instance to save the lane information of each component. |
void |
setLoadFromEnd(boolean loadFromEnd) |
Sets whether to load the components from the bottom.
|
void |
setReckonScrollbarInfoWithLanes(boolean reckonScrollbarInfoWithLanes) |
Sets whether to use the lane information to calculate the display information of the scroll bar.
|
allowScrollHorizontally, allowScrollVertically, getOrientation, isPreloadWorkerEnabled, isScrollingSmoothly, setOrientation, setPreloadWorkerEnabledfindFirstCompletelyVisibleComponentPosition, findFirstVisibleComponentPosition, findLastCompletelyVisibleChildComponentPosition, findLastVisibleChildComponentPosition, getFirstTimePreloadNum, getLayoutOrientation, getLoadFromEnd, getMaxScale, getMinScale, getReverseLayoutChild, getScaleInterpolator, isSmoothScrollbarAllowed, scrollToPositionWithDelta, setFirstTimePreloadNum, setLayoutOrientation, setMaxScale, setMinScale, setReverseLayoutChild, setScaleInterpolator, setSmoothScrollbarAllowedpublic static final int DEFAULT_LANE_COUNT
public ListGridLayoutManager()
ListGridLayoutManager instance.protected void createNativePtr()
public void setLaneInfoHelper(LaneInfoHelper laneInfoHelper)
LaneInfoHelper instance to save the lane information of each component.laneInfoHelper - Indicates the LaneInfoHelper instance to set.public void setLoadFromEnd(boolean loadFromEnd)
setLoadFromEnd 在类中 ListLinearLayoutManagerloadFromEnd - Specifies whether to load the components from the bottom. The value true means to
load them from the bottom, and false means the opposite.public void setLaneCount(int laneCount)
laneCount - Indicates the number of lanes to set.public int getLaneCount()
public LaneInfoHelper getLaneInfoHelper()
LaneInfoHelper instance that saves the lane information of each component.LaneInfoHelper instance used by this ListGridLayoutManager.public void setReckonScrollbarInfoWithLanes(boolean reckonScrollbarInfoWithLanes)
reckonScrollbarInfoWithLanes - Specifies whether to use the lane information to calculate the display
information of the scroll bar. The value true means to use the lane information for calculation,
and false means the opposite.public boolean isReckonScrollbarInfoWithLanes()
true if the lane information is used to calculate the display information of the scroll
bar; returns false otherwise.