public class QSAnimator extends Object implements QSTile.Host.Callback, PagedTileLayout.PageListener, TouchAnimator.Listener, View.OnLayoutChangeListener, View.OnAttachStateChangeListener, TunerService.Tunable
Modifier and Type | Field and Description |
---|---|
static float |
EXPANDED_TILE_DELAY |
Constructor and Description |
---|
QSAnimator(QSContainer container,
QuickQSPanel quickPanel,
QSPanel panel) |
Modifier and Type | Method and Description |
---|---|
void |
onAnimationAtEnd()
Called when the animator moves into a position of "0".
|
void |
onAnimationAtStart()
Called when the animator moves into a position of "0".
|
void |
onAnimationStarted()
Called when the animator moves out of the start or end position and is in a transient
state.
|
void |
onLayoutChange(View v,
int left,
int top,
int right,
int bottom,
int oldLeft,
int oldTop,
int oldRight,
int oldBottom)
Called when the layout bounds of a view changes due to layout processing.
|
void |
onPageChanged(boolean isFirst) |
void |
onRtlChanged() |
void |
onTilesChanged() |
void |
onTuningChanged(String key,
String newValue) |
void |
onViewAttachedToWindow(View v)
Called when the view is attached to a window.
|
void |
onViewDetachedFromWindow(View v)
Called when the view is detached from a window.
|
void |
setHost(QSTileHost qsh) |
void |
setOnKeyguard(boolean onKeyguard) |
void |
setPosition(float position) |
public static final float EXPANDED_TILE_DELAY
public QSAnimator(QSContainer container, QuickQSPanel quickPanel, QSPanel panel)
public void onRtlChanged()
public void setOnKeyguard(boolean onKeyguard)
public void setHost(QSTileHost qsh)
public void onViewAttachedToWindow(View v)
View.OnAttachStateChangeListener
onViewAttachedToWindow
in interface View.OnAttachStateChangeListener
v
- The view that was attachedpublic void onViewDetachedFromWindow(View v)
View.OnAttachStateChangeListener
onViewDetachedFromWindow
in interface View.OnAttachStateChangeListener
v
- The view that was detachedpublic void onTuningChanged(String key, String newValue)
onTuningChanged
in interface TunerService.Tunable
public void onPageChanged(boolean isFirst)
onPageChanged
in interface PagedTileLayout.PageListener
public void setPosition(float position)
public void onAnimationAtStart()
TouchAnimator.Listener
onAnimationAtStart
in interface TouchAnimator.Listener
public void onAnimationAtEnd()
TouchAnimator.Listener
onAnimationAtEnd
in interface TouchAnimator.Listener
public void onAnimationStarted()
TouchAnimator.Listener
onAnimationStarted
in interface TouchAnimator.Listener
public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom)
View.OnLayoutChangeListener
onLayoutChange
in interface View.OnLayoutChangeListener
v
- The view whose bounds have changed.left
- The new value of the view's left property.top
- The new value of the view's top property.right
- The new value of the view's right property.bottom
- The new value of the view's bottom property.oldLeft
- The previous value of the view's left property.oldTop
- The previous value of the view's top property.oldRight
- The previous value of the view's right property.oldBottom
- The previous value of the view's bottom property.public void onTilesChanged()
onTilesChanged
in interface QSTile.Host.Callback