public class ListState extends Object
ListComponent. This class provides the
information for internal submodules of the ListComponent to use as the status context.| 构造器 | 说明 |
|---|---|
ListState() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getDeletedNotLaidItemCountSincePreviousLayout() |
Obtains the number of components that are not laid out but have been deleted from the provider after the
previous layout.
|
long |
getFocusedListItemId() |
Obtains the ID of the component that gains focus.
|
int |
getFocusedListItemPosition() |
Obtains the position of the component that gains focus.
|
int |
getFocusedSubChildViewId() |
Obtains the ID of the child component that gains focus.
|
int |
getLayoutStateStep() |
Obtains the layout state of the
ListComponent. |
int |
getListItemCount() |
Obtains the number of components in the provider.
|
int |
getPreviousLaidLayoutItemCount() |
Obtains the number of components in the provider in the previous layout.
|
int |
getSurplusScrollHorizontal() |
Obtains the remaining horizontal distance to scroll for the animation that is being scrolled.
|
int |
getSurplusScrollVertical() |
Obtains the remaining vertical distance to scroll for the animation that is being scrolled.
|
int |
getTargetScrollPosition() |
Obtains the position to which the component is scrolled.
|
boolean |
isDateSetStructureModified() |
Checks whether data changes after the last layout.
|
boolean |
isInListMeasuringState() |
Checks whether this
ListComponent is measuring the layout. |
boolean |
isInPreLayout() |
Checks whether the
ListComponent is in pre-layout state. |
boolean |
isOperaSimpleAnimations() |
Checks whether this
ListComponent runs simple animations during layout. |
boolean |
isTrackOldChangeOwner() |
Checks whether to trace the original
ComponentOwner if data changes and the change animation is
executed. |
boolean |
willOperaPredictiveAnimations() |
Checks whether this
ListComponent runs predictive animations during layout and pre-process the
animations in the pre-layout phase. |
public int getTargetScrollPosition()
public int getPreviousLaidLayoutItemCount()
public int getDeletedNotLaidItemCountSincePreviousLayout()
public int getLayoutStateStep()
ListComponent.public int getListItemCount()
public boolean isDateSetStructureModified()
true if the data changes; returns false otherwise.public boolean isInPreLayout()
ListComponent is in pre-layout state.true if the ListComponent is in pre-layout state; returns false
otherwise.public boolean isTrackOldChangeOwner()
ComponentOwner if data changes and the change animation is
executed.true if the original ComponentOwner needs to be traced; returns false
otherwise.public boolean isInListMeasuringState()
ListComponent is measuring the layout.true if the ListComponent is measuring the layout; returns false
otherwise.public boolean isOperaSimpleAnimations()
ListComponent runs simple animations during layout.true if the ListComponent runs simple animations during layout; returns
false otherwise.public boolean willOperaPredictiveAnimations()
ListComponent runs predictive animations during layout and pre-process the
animations in the pre-layout phase.true if the ListComponent runs predictive animations during layout and
pre-process the animations in the pre-layout phase; returns false otherwise.public int getFocusedListItemPosition()
public long getFocusedListItemId()
public int getFocusedSubChildViewId()
0.public int getSurplusScrollHorizontal()
0.public int getSurplusScrollVertical()
0.