public class StackStateAnimator extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ANIMATION_DELAY_HEADS_UP |
static int |
ANIMATION_DELAY_PER_ELEMENT_DARK |
static int |
ANIMATION_DELAY_PER_ELEMENT_GO_TO_FULL_SHADE |
static int |
ANIMATION_DELAY_PER_ELEMENT_INTERRUPTING |
static int |
ANIMATION_DELAY_PER_ELEMENT_MANUAL |
static int |
ANIMATION_DURATION_APPEAR_DISAPPEAR |
static int |
ANIMATION_DURATION_CLOSE_REMOTE_INPUT |
static int |
ANIMATION_DURATION_DIMMED_ACTIVATED |
static int |
ANIMATION_DURATION_GO_TO_FULL_SHADE |
static int |
ANIMATION_DURATION_HEADS_UP_APPEAR |
static int |
ANIMATION_DURATION_HEADS_UP_DISAPPEAR |
static int |
ANIMATION_DURATION_STANDARD |
static int |
DELAY_EFFECT_MAX_INDEX_DIFFERENCE |
NotificationStackScrollLayout |
mHostLayout |
Constructor and Description |
---|
StackStateAnimator(NotificationStackScrollLayout hostLayout) |
Modifier and Type | Method and Description |
---|---|
void |
animateOverScrollToAmount(float targetAmount,
boolean onTop,
boolean isRubberbanded) |
void |
cancelOverScrollAnimators(boolean onTop) |
static <T> T |
getChildTag(View child,
int tag) |
static int |
getFinalActualHeight(com.android.systemui.statusbar.ExpandableView view)
Get the end value of the height animation running on a view or the actualHeight
if no animation is running.
|
static float |
getFinalTranslationY(View view)
Get the end value of the yTranslation animation running on a view or the yTranslation
if no animation is running.
|
boolean |
isRunning() |
static void |
removeFromOverlay(View changingView) |
void |
setHeadsUpAppearHeightBottom(int headsUpAppearHeightBottom) |
void |
setShadeExpanded(boolean shadeExpanded) |
void |
startAnimationForEvents(ArrayList<com.android.systemui.statusbar.stack.NotificationStackScrollLayout.AnimationEvent> mAnimationEvents,
StackScrollState finalState,
long additionalDelay) |
void |
startStackAnimations(com.android.systemui.statusbar.ExpandableView child,
StackViewState viewState,
StackScrollState finalState,
int i,
long fixedDelay)
Start an animation to the given
StackViewState . |
void |
startViewAnimations(View child,
ViewState viewState,
long delay,
long duration)
Start an animation to a new
ViewState . |
public static final int ANIMATION_DURATION_STANDARD
public static final int ANIMATION_DURATION_GO_TO_FULL_SHADE
public static final int ANIMATION_DURATION_APPEAR_DISAPPEAR
public static final int ANIMATION_DURATION_DIMMED_ACTIVATED
public static final int ANIMATION_DURATION_CLOSE_REMOTE_INPUT
public static final int ANIMATION_DURATION_HEADS_UP_APPEAR
public static final int ANIMATION_DURATION_HEADS_UP_DISAPPEAR
public static final int ANIMATION_DELAY_PER_ELEMENT_INTERRUPTING
public static final int ANIMATION_DELAY_PER_ELEMENT_MANUAL
public static final int ANIMATION_DELAY_PER_ELEMENT_GO_TO_FULL_SHADE
public static final int ANIMATION_DELAY_PER_ELEMENT_DARK
public static final int DELAY_EFFECT_MAX_INDEX_DIFFERENCE
public static final int ANIMATION_DELAY_HEADS_UP
public NotificationStackScrollLayout mHostLayout
public StackStateAnimator(NotificationStackScrollLayout hostLayout)
public boolean isRunning()
public void startAnimationForEvents(ArrayList<com.android.systemui.statusbar.stack.NotificationStackScrollLayout.AnimationEvent> mAnimationEvents, StackScrollState finalState, long additionalDelay)
public void startStackAnimations(com.android.systemui.statusbar.ExpandableView child, StackViewState viewState, StackScrollState finalState, int i, long fixedDelay)
StackViewState
.child
- the child to start the animation onviewState
- the StackViewState
of the view to animate tofinalState
- the final state after the animationi
- the index of the view; only relevant if the view is the speed bump and is
ignored otherwisefixedDelay
- a fixed delay if desired or -1 if the delay should be calculatedpublic void startViewAnimations(View child, ViewState viewState, long delay, long duration)
ViewState
.child
- the child to start the animation onviewState
- the StackViewState
of the view to animate todelay
- a fixed delayduration
- the duration of the animationpublic static <T> T getChildTag(View child, int tag)
public static void removeFromOverlay(View changingView)
public void animateOverScrollToAmount(float targetAmount, boolean onTop, boolean isRubberbanded)
public void cancelOverScrollAnimators(boolean onTop)
public static int getFinalActualHeight(com.android.systemui.statusbar.ExpandableView view)
public static float getFinalTranslationY(View view)
public void setHeadsUpAppearHeightBottom(int headsUpAppearHeightBottom)
public void setShadeExpanded(boolean shadeExpanded)