public class TransformState extends Object
Modifier and Type | Field and Description |
---|---|
protected View |
mTransformedView |
Constructor and Description |
---|
TransformState() |
Modifier and Type | Method and Description |
---|---|
void |
abortTransformation() |
void |
appear(float transformationAmount,
com.android.systemui.statusbar.TransformableView otherView) |
static TransformState |
createFrom(View view) |
void |
disappear(float transformationAmount,
com.android.systemui.statusbar.TransformableView otherView) |
int[] |
getLaidOutLocationOnScreen() |
int[] |
getLocationOnScreen() |
float |
getTransformationStartScaleX() |
float |
getTransformationStartScaleY() |
float |
getTransformationStartX() |
float |
getTransformationStartY() |
View |
getTransformedView() |
void |
initFrom(View view) |
static TransformState |
obtain() |
void |
prepareFadeIn() |
void |
recycle() |
protected void |
reset() |
protected void |
resetTransformedView() |
protected boolean |
sameAs(TransformState otherState) |
static void |
setClippingDeactivated(View transformedView,
boolean deactivated) |
void |
setTransformationEndX(float transformationEndX) |
void |
setTransformationEndY(float transformationEndY) |
void |
setTransformationStartX(float transformationStartX) |
void |
setTransformationStartY(float transformationStartY) |
void |
setVisible(boolean visible,
boolean force) |
protected boolean |
transformScale() |
void |
transformViewFrom(TransformState otherState,
float transformationAmount)
Transforms the
mTransformedView from the given transformviewstate |
void |
transformViewFullyFrom(TransformState otherState,
float transformationAmount) |
void |
transformViewFullyTo(TransformState otherState,
float transformationAmount) |
boolean |
transformViewTo(TransformState otherState,
float transformationAmount)
Transforms the
mTransformedView to the given transformviewstate |
void |
transformViewVerticalFrom(TransformState otherState,
float transformationAmount) |
void |
transformViewVerticalFrom(TransformState otherState,
com.android.systemui.statusbar.ViewTransformationHelper.CustomTransformation customTransformation,
float transformationAmount) |
void |
transformViewVerticalTo(TransformState otherState,
float transformationAmount) |
void |
transformViewVerticalTo(TransformState otherState,
com.android.systemui.statusbar.ViewTransformationHelper.CustomTransformation customTransformation,
float transformationAmount) |
protected View mTransformedView
public void initFrom(View view)
public void transformViewFrom(TransformState otherState, float transformationAmount)
mTransformedView
from the given transformviewstateotherState
- the state to transform fromtransformationAmount
- how much to transformpublic void transformViewFullyFrom(TransformState otherState, float transformationAmount)
public void transformViewVerticalFrom(TransformState otherState, com.android.systemui.statusbar.ViewTransformationHelper.CustomTransformation customTransformation, float transformationAmount)
public void transformViewVerticalFrom(TransformState otherState, float transformationAmount)
protected boolean transformScale()
public boolean transformViewTo(TransformState otherState, float transformationAmount)
mTransformedView
to the given transformviewstateotherState
- the state to transform fromtransformationAmount
- how much to transformpublic void transformViewFullyTo(TransformState otherState, float transformationAmount)
public void transformViewVerticalTo(TransformState otherState, com.android.systemui.statusbar.ViewTransformationHelper.CustomTransformation customTransformation, float transformationAmount)
public void transformViewVerticalTo(TransformState otherState, float transformationAmount)
public static void setClippingDeactivated(View transformedView, boolean deactivated)
public int[] getLaidOutLocationOnScreen()
public int[] getLocationOnScreen()
protected boolean sameAs(TransformState otherState)
public void appear(float transformationAmount, com.android.systemui.statusbar.TransformableView otherView)
public void disappear(float transformationAmount, com.android.systemui.statusbar.TransformableView otherView)
public static TransformState createFrom(View view)
public void recycle()
public void setTransformationEndY(float transformationEndY)
public void setTransformationEndX(float transformationEndX)
public float getTransformationStartX()
public float getTransformationStartY()
public float getTransformationStartScaleX()
public float getTransformationStartScaleY()
public void setTransformationStartX(float transformationStartX)
public void setTransformationStartY(float transformationStartY)
protected void reset()
public void setVisible(boolean visible, boolean force)
public void prepareFadeIn()
protected void resetTransformedView()
public void abortTransformation()
public static TransformState obtain()
public View getTransformedView()