public abstract class ListLayoutManager extends LayoutManager
ListComponent.| 构造器 | 说明 |
|---|---|
ListLayoutManager() |
Default constructor used to create a
ListLayoutManager object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
allowScrollHorizontally() |
Checks whether horizontal scrolling is allowed.
|
boolean |
allowScrollVertically() |
Checks whether vertical scrolling is allowed.
|
int |
getOrientation() |
Obtains the layout orientation.
|
boolean |
isPreloadWorkerEnabled() |
Checks whether the preloading function is enabled.
|
boolean |
isScrollingSmoothly() |
Checks whether this
ListComponent is being smoothly scrolled. |
void |
setOrientation(int orientation) |
Sets the layout orientation.
|
void |
setPreloadWorkerEnabled(boolean enabled) |
Sets whether to enable the preloading function.
|
public ListLayoutManager()
ListLayoutManager object.public final void setPreloadWorkerEnabled(boolean enabled)
enabled - Specifies whether to enable the preloading function. The value true means to enable the
preloading function, and false means the opposite.public final boolean isPreloadWorkerEnabled()
true if the preloading function is enabled; returns false otherwise.public boolean allowScrollHorizontally()
By default, horizontal scrolling is not allowed.
true if the current content can be scrolled horizontally; returns false
otherwise.public boolean allowScrollVertically()
By default, vertical scrolling is not allowed.
true if the current content can be scrolled vertically; returns false otherwise.public boolean isScrollingSmoothly()
ListComponent is being smoothly scrolled.true if the ListComponent is being smoothly scrolled; returns false
otherwise.public void setOrientation(int orientation)
setOrientation 在类中 LayoutManagerorientation - Indicates the layout orientation to set.public int getOrientation()
getOrientation 在类中 LayoutManager