295 lines
9.5 KiB
Smali
295 lines
9.5 KiB
Smali
.class public Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;
|
|
.super Landroid/animation/AnimatorListenerAdapter;
|
|
.source "TranslationAnimationCreator.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/transition/Transition$TransitionListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/transition/TranslationAnimationCreator;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "TransitionPositionListener"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final mMovingView:Landroid/view/View;
|
|
|
|
.field public mPausedX:F
|
|
|
|
.field public mPausedY:F
|
|
|
|
.field public final mStartX:I
|
|
|
|
.field public final mStartY:I
|
|
|
|
.field public final mTerminalX:F
|
|
|
|
.field public final mTerminalY:F
|
|
|
|
.field public mTransitionPosition:[I
|
|
|
|
.field public final mViewInHierarchy:Landroid/view/View;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/view/View;Landroid/view/View;IIFF)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Landroid/animation/AnimatorListenerAdapter;-><init>()V
|
|
|
|
iput-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mMovingView:Landroid/view/View;
|
|
|
|
iput-object p2, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mViewInHierarchy:Landroid/view/View;
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mMovingView:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTranslationX()F
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr p3, p1
|
|
|
|
iput p3, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mStartX:I
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mMovingView:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTranslationY()F
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr p4, p1
|
|
|
|
iput p4, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mStartY:I
|
|
|
|
iput p5, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mTerminalX:F
|
|
|
|
iput p6, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mTerminalY:F
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mViewInHierarchy:Landroid/view/View;
|
|
|
|
sget p2, Landroidx/transition/R$id;->transition_position:I
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, [I
|
|
|
|
iput-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mTransitionPosition:[I
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mTransitionPosition:[I
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mViewInHierarchy:Landroid/view/View;
|
|
|
|
sget p2, Landroidx/transition/R$id;->transition_position:I
|
|
|
|
const/4 p3, 0x0
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onAnimationCancel(Landroid/animation/Animator;)V
|
|
.locals 3
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mTransitionPosition:[I
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x2
|
|
|
|
new-array p1, p1, [I
|
|
|
|
iput-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mTransitionPosition:[I
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mTransitionPosition:[I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iget v1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mStartX:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
iget-object v2, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mMovingView:Landroid/view/View;
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getTranslationX()F
|
|
|
|
move-result v2
|
|
|
|
add-float/2addr v2, v1
|
|
|
|
invoke-static {v2}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v1
|
|
|
|
aput v1, p1, v0
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mTransitionPosition:[I
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iget v1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mStartY:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
iget-object v2, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mMovingView:Landroid/view/View;
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getTranslationY()F
|
|
|
|
move-result v2
|
|
|
|
add-float/2addr v2, v1
|
|
|
|
invoke-static {v2}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v1
|
|
|
|
aput v1, p1, v0
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mViewInHierarchy:Landroid/view/View;
|
|
|
|
sget v0, Landroidx/transition/R$id;->transition_position:I
|
|
|
|
iget-object v1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mTransitionPosition:[I
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onAnimationPause(Landroid/animation/Animator;)V
|
|
.locals 1
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mMovingView:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTranslationX()F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mPausedX:F
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mMovingView:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTranslationY()F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mPausedY:F
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mMovingView:Landroid/view/View;
|
|
|
|
iget v0, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mTerminalX:F
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setTranslationX(F)V
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mMovingView:Landroid/view/View;
|
|
|
|
iget v0, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mTerminalY:F
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setTranslationY(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onAnimationResume(Landroid/animation/Animator;)V
|
|
.locals 1
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mMovingView:Landroid/view/View;
|
|
|
|
iget v0, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mPausedX:F
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setTranslationX(F)V
|
|
|
|
iget-object p1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mMovingView:Landroid/view/View;
|
|
|
|
iget v0, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mPausedY:F
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setTranslationY(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTransitionCancel(Landroidx/transition/Transition;)V
|
|
.locals 0
|
|
.param p1 # Landroidx/transition/Transition;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTransitionEnd(Landroidx/transition/Transition;)V
|
|
.locals 2
|
|
.param p1 # Landroidx/transition/Transition;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mMovingView:Landroid/view/View;
|
|
|
|
iget v1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mTerminalX:F
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setTranslationX(F)V
|
|
|
|
iget-object v0, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mMovingView:Landroid/view/View;
|
|
|
|
iget v1, p0, Landroidx/transition/TranslationAnimationCreator$TransitionPositionListener;->mTerminalY:F
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setTranslationY(F)V
|
|
|
|
invoke-virtual {p1, p0}, Landroidx/transition/Transition;->removeListener(Landroidx/transition/Transition$TransitionListener;)Landroidx/transition/Transition;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTransitionPause(Landroidx/transition/Transition;)V
|
|
.locals 0
|
|
.param p1 # Landroidx/transition/Transition;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTransitionResume(Landroidx/transition/Transition;)V
|
|
.locals 0
|
|
.param p1 # Landroidx/transition/Transition;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTransitionStart(Landroidx/transition/Transition;)V
|
|
.locals 0
|
|
.param p1 # Landroidx/transition/Transition;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
return-void
|
|
.end method
|