public abstract class LaneInfoHelper extends Object
ListGridLayoutManager.| 限定符和类型 | 类 | 说明 |
|---|---|---|
protected static class |
LaneInfoHelper.LaneInfoHelperCleaner |
Implements the release of the local
LaneInfoHelper object. |
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
protected long |
mNativePtr |
Obtains the native object.
|
| 构造器 | 说明 |
|---|---|
LaneInfoHelper() |
A constructor used to create a
LaneInfoHelper object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
abstract int |
getLaneCountAt(int position) |
Obtains the number of lanes occupied by the component at the specified position.
|
int |
getLaneIndex(int position,
int laneCount) |
Obtains the lane index of the component at the specified position.
|
int |
getLaneSetIndex(int providerPosition,
int laneCount) |
Obtains the lane set index of the component at the specified position.
|
long |
getNativePtr() |
Obtains the native object.
|
boolean |
isLaneIndexCacheAllowed() |
Checks whether the lane indices can be cached.
|
boolean |
isLaneSetIndexCacheAllowed() |
Checks whether the lane set indices can be cached.
|
void |
setLaneGroupIndexCacheAllowed(boolean cacheLaneGroupIndices) |
Sets whether the lane set indices can be cached.
|
void |
setLaneIndexCacheAllowed(boolean cacheLaneIndices) |
Sets whether the lane indices can be cached.
|
public LaneInfoHelper()
LaneInfoHelper object.public abstract int getLaneCountAt(int position)
position - Indicates the position of the component in the provider.public int getLaneIndex(int position,
int laneCount)
position - Indicates the position of the component in the provider.laneCount - Indicates the total number of lanes in the grid.public int getLaneSetIndex(int providerPosition,
int laneCount)
providerPosition - Indicates the position of the component in the provider.laneCount - Indicates the total number of lanes in the grid.public void setLaneIndexCacheAllowed(boolean cacheLaneIndices)
cacheLaneIndices - Specifies whether the lane indices can be cached. The value true means that the
lane indices can be cached, and false means the opposite.public boolean isLaneIndexCacheAllowed()
true if the lane indices can be cached; returns false otherwise.public void setLaneGroupIndexCacheAllowed(boolean cacheLaneGroupIndices)
cacheLaneGroupIndices - Specifies whether the lane set indices can be cached. The value true means
that the lane set indices can be cached, and false means the opposite.public boolean isLaneSetIndexCacheAllowed()
true if the lane set indices can be cached; returns false otherwise.public long getNativePtr()