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.
|
[Expand]
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 o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
From interface
android.view.View.OnTouchListener
|
Public Constructors
public
ListViewAutoScrollHelper
(ListView target)
Public Methods
public
boolean
canTargetScrollHorizontally
(int direction)
Override this method to return whether the target view can be scrolled
horizontally in a certain direction.
Parameters
direction
| Negative to check scrolling left, positive to check
scrolling right. |
Returns
- true if the target view is able to horizontally scroll in the
specified direction.
public
boolean
canTargetScrollVertically
(int direction)
Override this method to return whether the target view can be scrolled
vertically in a certain direction.
Parameters
direction
| Negative to check scrolling up, positive to check
scrolling down. |
Returns
- true if the target view is able to vertically scroll in the
specified direction.
public
void
scrollTargetBy
(int deltaX, int deltaY)
Override this method to scroll the target view by the specified number of
pixels.
Parameters
deltaX
| The number of pixels to scroll by horizontally. |
deltaY
| The number of pixels to scroll by vertically.
|