com.mobeta.android.dslv.DragSortListView.DragScrollProfile |
Interface for controlling
scroll speed as a function of touch position and time. Use
setDragScrollProfile(DragScrollProfile)
to
set custom profile.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return a scroll speed in pixels/millisecond.
|
Return a scroll speed in pixels/millisecond. Always return a positive number.
w | Normalized position in scroll region (i.e. w \in [0,1]). Small w typically means slow scrolling. |
---|---|
t | Time (in milliseconds) since start of scroll (handy if you want scroll acceleration). |