167 lines
3.9 KiB
Smali
167 lines
3.9 KiB
Smali
.class public Lcom/skt/moment/widget/CongratsGradient;
|
|
.super Landroid/widget/ImageView;
|
|
.source "CongratsGradient.java"
|
|
|
|
|
|
# static fields
|
|
.field public static final b:I = -0x1
|
|
|
|
|
|
# instance fields
|
|
.field public a:Landroid/animation/ObjectAnimator;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
.line 3
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/skt/moment/widget/CongratsGradient;->b()V
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v1, v0, [F
|
|
|
|
.line 2
|
|
fill-array-data v1, :array_0
|
|
|
|
const-string v2, "alpha"
|
|
|
|
invoke-static {p0, v2, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Lcom/skt/moment/widget/CongratsGradient;->a:Landroid/animation/ObjectAnimator;
|
|
|
|
const/4 v2, -0x1
|
|
|
|
.line 3
|
|
invoke-virtual {v1, v2}, Landroid/animation/ObjectAnimator;->setRepeatCount(I)V
|
|
|
|
.line 4
|
|
iget-object v1, p0, Lcom/skt/moment/widget/CongratsGradient;->a:Landroid/animation/ObjectAnimator;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/animation/ObjectAnimator;->setRepeatMode(I)V
|
|
|
|
.line 5
|
|
iget-object v0, p0, Lcom/skt/moment/widget/CongratsGradient;->a:Landroid/animation/ObjectAnimator;
|
|
|
|
const-wide/16 v1, 0xbb8
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;
|
|
|
|
.line 6
|
|
iget-object v0, p0, Lcom/skt/moment/widget/CongratsGradient;->a:Landroid/animation/ObjectAnimator;
|
|
|
|
invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V
|
|
|
|
return-void
|
|
|
|
nop
|
|
|
|
:array_0
|
|
.array-data 4
|
|
0x0
|
|
0x3f800000 # 1.0f
|
|
.end array-data
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/skt/moment/widget/CongratsGradient;->a:Landroid/animation/ObjectAnimator;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v1, 0x1
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->isRunning()Z
|
|
|
|
move-result v0
|
|
|
|
if-ne v1, v0, :cond_1
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/skt/moment/widget/CongratsGradient;->a:Landroid/animation/ObjectAnimator;
|
|
|
|
invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->cancel()V
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
.line 4
|
|
iput-object v0, p0, Lcom/skt/moment/widget/CongratsGradient;->a:Landroid/animation/ObjectAnimator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onAttachedToWindow()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/ImageView;->onAttachedToWindow()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDetachedFromWindow()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/skt/moment/widget/CongratsGradient;->b()V
|
|
|
|
.line 2
|
|
invoke-static {p0}, Lib/d;->t(Landroid/widget/ImageView;)V
|
|
|
|
.line 3
|
|
invoke-super {p0}, Landroid/widget/ImageView;->onDetachedFromWindow()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSizeChanged(IIII)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/ImageView;->onSizeChanged(IIII)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/skt/moment/widget/CongratsGradient;->a()V
|
|
|
|
return-void
|
|
.end method
|