public static class TaskStackLayoutAlgorithm.StackState extends Object
Modifier and Type | Field and Description |
---|---|
static TaskStackLayoutAlgorithm.StackState |
FREEFORM_ONLY |
int |
freeformBackgroundAlpha |
float |
freeformHeightPct |
static TaskStackLayoutAlgorithm.StackState |
SPLIT |
static TaskStackLayoutAlgorithm.StackState |
STACK_ONLY |
Modifier and Type | Method and Description |
---|---|
void |
computeRects(Rect freeformRectOut,
Rect stackRectOut,
Rect taskStackBounds,
int topMargin,
int freeformGap,
int stackBottomOffset)
Computes the freeform and stack rect for this state.
|
static TaskStackLayoutAlgorithm.StackState |
getStackStateForStack(TaskStack stack)
Resolves the stack state for the layout given a task stack.
|
public static final TaskStackLayoutAlgorithm.StackState FREEFORM_ONLY
public static final TaskStackLayoutAlgorithm.StackState STACK_ONLY
public static final TaskStackLayoutAlgorithm.StackState SPLIT
public final float freeformHeightPct
public final int freeformBackgroundAlpha
public static TaskStackLayoutAlgorithm.StackState getStackStateForStack(TaskStack stack)
public void computeRects(Rect freeformRectOut, Rect stackRectOut, Rect taskStackBounds, int topMargin, int freeformGap, int stackBottomOffset)
freeformRectOut
- the freeform rect to be written outstackRectOut
- the stack rect, we only write out the top of the stacktaskStackBounds
- the full rect that the freeform rect can take up