ListViewAutoScrollHelper
public
class
ListViewAutoScrollHelper
extends AutoScrollHelper
An implementation of AutoScrollHelper
that knows how to scroll
through a ListView
.
Summary
Public methods |
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.
|
Inherited methods |
From
class
android.support.v4.widget.AutoScrollHelper
|
From
class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long millis, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long millis)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
|
From
interface
android.view.View.OnTouchListener
|
Public constructors
ListViewAutoScrollHelper
ListViewAutoScrollHelper (ListView target)
Parameters |
target |
ListView
|
Public methods
canTargetScrollHorizontally
boolean canTargetScrollHorizontally (int direction)
Override this method to return whether the target view can be scrolled
horizontally in a certain direction.
Parameters |
direction |
int :
Negative to check scrolling left, positive to check
scrolling right. |
Returns |
boolean |
true if the target view is able to horizontally scroll in the
specified direction.
|
canTargetScrollVertically
boolean canTargetScrollVertically (int direction)
Override this method to return whether the target view can be scrolled
vertically in a certain direction.
Parameters |
direction |
int :
Negative to check scrolling up, positive to check
scrolling down. |
Returns |
boolean |
true if the target view is able to vertically scroll in the
specified direction.
|
scrollTargetBy
void scrollTargetBy (int deltaX,
int deltaY)
Override this method to scroll the target view by the specified number of
pixels.
Parameters |
deltaX |
int :
The number of pixels to scroll by horizontally. |
deltaY |
int :
The number of pixels to scroll by vertically.
|