public class TaskStackViewScroller extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
TaskStackViewScroller.TaskStackViewScrollerCallbacks |
Constructor and Description |
---|
TaskStackViewScroller(Context context,
TaskStackViewScroller.TaskStackViewScrollerCallbacks cb,
TaskStackLayoutAlgorithm layoutAlgorithm) |
Modifier and Type | Method and Description |
---|---|
boolean |
boundScroll()
Bounds the current scroll if necessary
|
void |
dump(String prefix,
PrintWriter writer) |
void |
fling(float downScrollP,
int downY,
int y,
int velY,
int minY,
int maxY,
int overscroll)
Starts a fling that is coordinated with the
TaskStackViewTouchHandler . |
float |
getStackScroll()
Gets the current stack scroll
|
float |
setDeltaStackScroll(float downP,
float deltaP)
Sets the current stack scroll immediately, and returns the difference between the target
scroll and the actual scroll after accounting for the effect on the focus state.
|
void |
setStackScroll(float s)
Sets the current stack scroll immediately.
|
void |
setStackScroll(float newScroll,
AnimationProps animation)
Sets the current stack scroll, but indicates to the callback the preferred animation to
update to this new scroll.
|
boolean |
setStackScrollToInitialState()
Sets the current stack scroll to the initial state when you first enter recents.
|
public TaskStackViewScroller(Context context, TaskStackViewScroller.TaskStackViewScrollerCallbacks cb, TaskStackLayoutAlgorithm layoutAlgorithm)
public float getStackScroll()
public void setStackScroll(float s)
public float setDeltaStackScroll(float downP, float deltaP)
public void setStackScroll(float newScroll, AnimationProps animation)
public boolean setStackScrollToInitialState()
public void fling(float downScrollP, int downY, int y, int velY, int minY, int maxY, int overscroll)
TaskStackViewTouchHandler
.public boolean boundScroll()
public void dump(String prefix, PrintWriter writer)