|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.support.v4.widget.AutoScrollHelper
android.support.v4.widget.ListViewAutoScrollHelper
public class ListViewAutoScrollHelper
An implementation of AutoScrollHelper
that knows how to scroll
through a ListView
.
Field Summary |
---|
Fields inherited from class android.support.v4.widget.AutoScrollHelper |
---|
EDGE_TYPE_INSIDE, EDGE_TYPE_INSIDE_EXTEND, EDGE_TYPE_OUTSIDE, NO_MAX, NO_MIN, RELATIVE_UNSPECIFIED |
Constructor Summary | |
---|---|
ListViewAutoScrollHelper(android.widget.ListView target)
|
Method Summary | |
---|---|
boolean |
canTargetScrollHorizontally(int direction)
Override this method to return whether the target view can be scrolled horizontally in a certain direction. |
boolean |
canTargetScrollVertically(int direction)
Override this method to return whether the target view can be scrolled vertically in a certain direction. |
void |
scrollTargetBy(int deltaX,
int deltaY)
Override this method to scroll the target view by the specified number of pixels. |
Methods inherited from class android.support.v4.widget.AutoScrollHelper |
---|
isEnabled, isExclusive, onTouch, setActivationDelay, setEdgeType, setEnabled, setExclusive, setMaximumEdges, setMaximumVelocity, setMinimumVelocity, setRampDownDuration, setRampUpDuration, setRelativeEdges, setRelativeVelocity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListViewAutoScrollHelper(android.widget.ListView target)
Method Detail |
---|
public void scrollTargetBy(int deltaX, int deltaY)
AutoScrollHelper
scrollTargetBy
in class AutoScrollHelper
deltaX
- The number of pixels to scroll by horizontally.deltaY
- The number of pixels to scroll by vertically.public boolean canTargetScrollHorizontally(int direction)
AutoScrollHelper
canTargetScrollHorizontally
in class AutoScrollHelper
direction
- Negative to check scrolling left, positive to check
scrolling right.
public boolean canTargetScrollVertically(int direction)
AutoScrollHelper
canTargetScrollVertically
in class AutoScrollHelper
direction
- Negative to check scrolling up, positive to check
scrolling down.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |