a.smali
.class public Lcom/scwang/smartrefresh/layout/c/a;
.super Lcom/scwang/smartrefresh/layout/e/a;
# interfaces
.implements Lcom/scwang/smartrefresh/layout/a/e;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/scwang/smartrefresh/layout/c/a$a;
}
.end annotation
# instance fields
.field protected a:I
.field protected b:I
.field protected c:Z
.field protected d:Z
.field protected e:Z
.field protected f:Z
.field protected g:Landroid/graphics/Path;
.field protected h:Landroid/graphics/Paint;
.field protected i:I
.field protected j:I
.field protected k:I
.field protected l:F
.field protected m:F
.field protected n:F
.field protected o:F
.field protected p:I
.field protected q:F
.field protected r:F
.field protected s:F
.field protected t:Landroid/animation/Animator;
.field protected u:Landroid/graphics/RectF;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Lcom/scwang/smartrefresh/layout/c/a;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 4
const/4 v0, 0x0
invoke-direct {p0, p1, p2, v0}, Lcom/scwang/smartrefresh/layout/c/a;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.registers 10
const/4 v0, 0x0
const/4 v5, -0x1
const/high16 v4, 0x40e00000 # 7.0f
const/4 v3, 0x0
invoke-direct {p0, p1, p2, p3}, Lcom/scwang/smartrefresh/layout/e/a;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
iput-boolean v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->f:Z
iput v5, p0, Lcom/scwang/smartrefresh/layout/c/a;->k:I
iput v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->p:I
iput v3, p0, Lcom/scwang/smartrefresh/layout/c/a;->q:F
iput v3, p0, Lcom/scwang/smartrefresh/layout/c/a;->r:F
iput v3, p0, Lcom/scwang/smartrefresh/layout/c/a;->s:F
new-instance v0, Landroid/graphics/RectF;
invoke-direct {v0, v3, v3, v3, v3}, Landroid/graphics/RectF;-><init>(FFFF)V
iput-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->u:Landroid/graphics/RectF;
sget-object v0, Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;->b:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
iput-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->w:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
new-instance v0, Lcom/scwang/smartrefresh/layout/g/b;
invoke-direct {v0}, Lcom/scwang/smartrefresh/layout/g/b;-><init>()V
new-instance v1, Landroid/graphics/Path;
invoke-direct {v1}, Landroid/graphics/Path;-><init>()V
iput-object v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->g:Landroid/graphics/Path;
new-instance v1, Landroid/graphics/Paint;
invoke-direct {v1}, Landroid/graphics/Paint;-><init>()V
iput-object v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
iget-object v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
const/4 v2, 0x1
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setAntiAlias(Z)V
invoke-virtual {v0, v4}, Lcom/scwang/smartrefresh/layout/g/b;->b(F)I
move-result v1
int-to-float v1, v1
iput v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->n:F
const/high16 v1, 0x41a00000 # 20.0f
invoke-virtual {v0, v1}, Lcom/scwang/smartrefresh/layout/g/b;->b(F)I
move-result v1
int-to-float v1, v1
iput v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->q:F
invoke-virtual {v0, v4}, Lcom/scwang/smartrefresh/layout/g/b;->b(F)I
move-result v1
int-to-float v1, v1
iput v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->r:F
iget-object v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
const/high16 v2, 0x40400000 # 3.0f
invoke-virtual {v0, v2}, Lcom/scwang/smartrefresh/layout/g/b;->b(F)I
move-result v2
int-to-float v2, v2
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setStrokeWidth(F)V
const/high16 v1, 0x42c80000 # 100.0f
invoke-virtual {v0, v1}, Lcom/scwang/smartrefresh/layout/g/b;->b(F)I
move-result v0
invoke-virtual {p0, v0}, Landroid/view/View;->setMinimumHeight(I)V
invoke-virtual {p0}, Landroid/view/View;->isInEditMode()Z
move-result v0
if-eqz v0, :cond_af
const/16 v0, 0x3e8
iput v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->i:I
const/high16 v0, 0x3f800000 # 1.0f
iput v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->s:F
const/16 v0, 0x10e
iput v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->p:I
:goto_76
sget-object v0, Lcom/scwang/smartrefresh/layout/a$b;->BezierRadarHeader:[I
invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object v0
sget v1, Lcom/scwang/smartrefresh/layout/a$b;->BezierRadarHeader_srlEnableHorizontalDrag:I
iget-boolean v2, p0, Lcom/scwang/smartrefresh/layout/c/a;->f:Z
invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v1
iput-boolean v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->f:Z
sget v1, Lcom/scwang/smartrefresh/layout/a$b;->BezierRadarHeader_srlAccentColor:I
invoke-virtual {v0, v1, v5}, Landroid/content/res/TypedArray;->getColor(II)I
move-result v1
invoke-virtual {p0, v1}, Lcom/scwang/smartrefresh/layout/c/a;->b(I)Lcom/scwang/smartrefresh/layout/c/a;
sget v1, Lcom/scwang/smartrefresh/layout/a$b;->BezierRadarHeader_srlPrimaryColor:I
const v2, -0xddddde
invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getColor(II)I
move-result v1
invoke-virtual {p0, v1}, Lcom/scwang/smartrefresh/layout/c/a;->a(I)Lcom/scwang/smartrefresh/layout/c/a;
sget v1, Lcom/scwang/smartrefresh/layout/a$b;->BezierRadarHeader_srlAccentColor:I
invoke-virtual {v0, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v1
iput-boolean v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->d:Z
sget v1, Lcom/scwang/smartrefresh/layout/a$b;->BezierRadarHeader_srlPrimaryColor:I
invoke-virtual {v0, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v1
iput-boolean v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->c:Z
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
return-void
:cond_af
iput v3, p0, Lcom/scwang/smartrefresh/layout/c/a;->s:F
goto :goto_76
.end method
# virtual methods
.method public a(I)Lcom/scwang/smartrefresh/layout/c/a;
.registers 3
.param p1 # I
.annotation build Landroid/support/annotation/ColorInt;
.end annotation
.end param
iput p1, p0, Lcom/scwang/smartrefresh/layout/c/a;->b:I
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->c:Z
return-object p0
.end method
.method protected a(Landroid/graphics/Canvas;I)V
.registers 9
const/4 v5, 0x0
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->g:Landroid/graphics/Path;
invoke-virtual {v0}, Landroid/graphics/Path;->reset()V
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->g:Landroid/graphics/Path;
iget v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->i:I
int-to-float v1, v1
invoke-virtual {v0, v5, v1}, Landroid/graphics/Path;->lineTo(FF)V
iget-object v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->g:Landroid/graphics/Path;
iget v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->k:I
if-ltz v0, :cond_39
iget v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->k:I
int-to-float v0, v0
:goto_17
iget v2, p0, Lcom/scwang/smartrefresh/layout/c/a;->i:I
iget v3, p0, Lcom/scwang/smartrefresh/layout/c/a;->j:I
add-int/2addr v2, v3
int-to-float v2, v2
int-to-float v3, p2
iget v4, p0, Lcom/scwang/smartrefresh/layout/c/a;->i:I
int-to-float v4, v4
invoke-virtual {v1, v0, v2, v3, v4}, Landroid/graphics/Path;->quadTo(FFFF)V
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->g:Landroid/graphics/Path;
int-to-float v1, p2
invoke-virtual {v0, v1, v5}, Landroid/graphics/Path;->lineTo(FF)V
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
iget v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->b:I
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->g:Landroid/graphics/Path;
iget-object v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V
return-void
:cond_39
div-int/lit8 v0, p2, 0x2
int-to-float v0, v0
goto :goto_17
.end method
.method protected a(Landroid/graphics/Canvas;II)V
.registers 24
move-object/from16 v0, p0
iget v2, v0, Lcom/scwang/smartrefresh/layout/c/a;->l:F
const/4 v3, 0x0
cmpl-float v2, v2, v3
if-lez v2, :cond_d8
move-object/from16 v0, p0
iget-object v2, v0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
move-object/from16 v0, p0
iget v3, v0, Lcom/scwang/smartrefresh/layout/c/a;->a:I
invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setColor(I)V
invoke-static/range {p3 .. p3}, Lcom/scwang/smartrefresh/layout/g/b;->a(I)F
move-result v3
div-int/lit8 v2, p2, 0x7
int-to-float v2, v2
move-object/from16 v0, p0
iget v4, v0, Lcom/scwang/smartrefresh/layout/c/a;->m:F
mul-float/2addr v4, v2
move-object/from16 v0, p0
iget v2, v0, Lcom/scwang/smartrefresh/layout/c/a;->m:F
const/high16 v5, 0x3f800000 # 1.0f
cmpl-float v2, v2, v5
if-lez v2, :cond_ca
move-object/from16 v0, p0
iget v2, v0, Lcom/scwang/smartrefresh/layout/c/a;->m:F
const/high16 v5, 0x3f800000 # 1.0f
sub-float/2addr v2, v5
div-int/lit8 v5, p2, 0x7
int-to-float v5, v5
mul-float/2addr v2, v5
move-object/from16 v0, p0
iget v5, v0, Lcom/scwang/smartrefresh/layout/c/a;->m:F
div-float/2addr v2, v5
:goto_3a
sub-float/2addr v4, v2
move/from16 v0, p3
int-to-float v5, v0
move-object/from16 v0, p0
iget v2, v0, Lcom/scwang/smartrefresh/layout/c/a;->m:F
const/high16 v6, 0x3f800000 # 1.0f
cmpl-float v2, v2, v6
if-lez v2, :cond_cd
move-object/from16 v0, p0
iget v2, v0, Lcom/scwang/smartrefresh/layout/c/a;->m:F
const/high16 v6, 0x3f800000 # 1.0f
sub-float/2addr v2, v6
move/from16 v0, p3
int-to-float v6, v0
mul-float/2addr v2, v6
const/high16 v6, 0x40000000 # 2.0f
div-float/2addr v2, v6
move-object/from16 v0, p0
iget v6, v0, Lcom/scwang/smartrefresh/layout/c/a;->m:F
div-float/2addr v2, v6
:goto_5b
sub-float/2addr v5, v2
const/4 v2, 0x0
:goto_5d
const/4 v6, 0x7
if-ge v2, v6, :cond_cf
const/high16 v6, 0x3f800000 # 1.0f
int-to-float v7, v2
add-float/2addr v6, v7
const/high16 v7, 0x40800000 # 4.0f
sub-float/2addr v6, v7
const/high16 v7, 0x437f0000 # 255.0f
const/high16 v8, 0x3f800000 # 1.0f
const/high16 v9, 0x40000000 # 2.0f
invoke-static {v6}, Ljava/lang/Math;->abs(F)F
move-result v10
const/high16 v11, 0x40e00000 # 7.0f
div-float/2addr v10, v11
mul-float/2addr v9, v10
sub-float/2addr v8, v9
mul-float/2addr v7, v8
move-object/from16 v0, p0
iget-object v8, v0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
move-object/from16 v0, p0
iget v9, v0, Lcom/scwang/smartrefresh/layout/c/a;->l:F
mul-float/2addr v7, v9
float-to-double v10, v7
const-wide/high16 v12, 0x3ff0000000000000L # 1.0
const-wide/high16 v14, 0x3ff0000000000000L # 1.0
float-to-double v0, v3
move-wide/from16 v16, v0
const-wide/high16 v18, 0x4089000000000000L # 800.0
div-double v16, v16, v18
const-wide/high16 v18, 0x3ff0000000000000L # 1.0
add-double v16, v16, v18
const-wide/high16 v18, 0x402e000000000000L # 15.0
invoke-static/range {v16 .. v19}, Ljava/lang/Math;->pow(DD)D
move-result-wide v16
div-double v14, v14, v16
sub-double/2addr v12, v14
mul-double/2addr v10, v12
double-to-int v7, v10
invoke-virtual {v8, v7}, Landroid/graphics/Paint;->setAlpha(I)V
move-object/from16 v0, p0
iget v7, v0, Lcom/scwang/smartrefresh/layout/c/a;->n:F
const/high16 v8, 0x3f800000 # 1.0f
const/high16 v9, 0x3f800000 # 1.0f
const/high16 v10, 0x41200000 # 10.0f
div-float v10, v3, v10
const/high16 v11, 0x3f800000 # 1.0f
add-float/2addr v10, v11
div-float/2addr v9, v10
sub-float/2addr v8, v9
mul-float/2addr v7, v8
div-int/lit8 v8, p2, 0x2
int-to-float v8, v8
const/high16 v9, 0x40000000 # 2.0f
div-float v9, v7, v9
sub-float/2addr v8, v9
mul-float/2addr v6, v4
add-float/2addr v6, v8
const/high16 v8, 0x40000000 # 2.0f
div-float v8, v5, v8
move-object/from16 v0, p0
iget-object v9, v0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
move-object/from16 v0, p1
invoke-virtual {v0, v6, v8, v7, v9}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V
add-int/lit8 v2, v2, 0x1
goto :goto_5d
:cond_ca
const/4 v2, 0x0
goto/16 :goto_3a
:cond_cd
const/4 v2, 0x0
goto :goto_5b
:cond_cf
move-object/from16 v0, p0
iget-object v2, v0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
const/16 v3, 0xff
invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setAlpha(I)V
:cond_d8
return-void
.end method
.method public b(I)Lcom/scwang/smartrefresh/layout/c/a;
.registers 3
.param p1 # I
.annotation build Landroid/support/annotation/ColorInt;
.end annotation
.end param
iput p1, p0, Lcom/scwang/smartrefresh/layout/c/a;->a:I
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->d:Z
return-object p0
.end method
.method protected b(Landroid/graphics/Canvas;II)V
.registers 12
const/high16 v2, 0x43870000 # 270.0f
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->t:Landroid/animation/Animator;
if-nez v0, :cond_c
invoke-virtual {p0}, Landroid/view/View;->isInEditMode()Z
move-result v0
if-eqz v0, :cond_ac
:cond_c
iget v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->q:F
iget v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->s:F
mul-float v6, v0, v1
iget v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->r:F
iget v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->s:F
mul-float v7, v0, v1
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
iget v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->a:I
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
div-int/lit8 v0, p2, 0x2
int-to-float v0, v0
div-int/lit8 v1, p3, 0x2
int-to-float v1, v1
iget-object v3, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
invoke-virtual {p1, v0, v1, v6, v3}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
div-int/lit8 v0, p2, 0x2
int-to-float v0, v0
div-int/lit8 v1, p3, 0x2
int-to-float v1, v1
add-float v3, v6, v7
iget-object v4, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
invoke-virtual {p1, v0, v1, v3, v4}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
iget v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->b:I
const v3, 0xffffff
and-int/2addr v1, v3
const/high16 v3, 0x55000000
or-int/2addr v1, v3
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->u:Landroid/graphics/RectF;
div-int/lit8 v1, p2, 0x2
int-to-float v1, v1
sub-float/2addr v1, v6
div-int/lit8 v3, p3, 0x2
int-to-float v3, v3
sub-float/2addr v3, v6
div-int/lit8 v4, p2, 0x2
int-to-float v4, v4
add-float/2addr v4, v6
div-int/lit8 v5, p3, 0x2
int-to-float v5, v5
add-float/2addr v5, v6
invoke-virtual {v0, v1, v3, v4, v5}, Landroid/graphics/RectF;->set(FFFF)V
iget-object v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->u:Landroid/graphics/RectF;
iget v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->p:I
int-to-float v3, v0
const/4 v4, 0x1
iget-object v5, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
move-object v0, p1
invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V
add-float v0, v6, v7
iget-object v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
sget-object v3, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;
invoke-virtual {v1, v3}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
iget-object v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->u:Landroid/graphics/RectF;
div-int/lit8 v3, p2, 0x2
int-to-float v3, v3
sub-float/2addr v3, v0
div-int/lit8 v4, p3, 0x2
int-to-float v4, v4
sub-float/2addr v4, v0
div-int/lit8 v5, p2, 0x2
int-to-float v5, v5
add-float/2addr v5, v0
div-int/lit8 v6, p3, 0x2
int-to-float v6, v6
add-float/2addr v0, v6
invoke-virtual {v1, v3, v4, v5, v0}, Landroid/graphics/RectF;->set(FFFF)V
iget-object v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->u:Landroid/graphics/RectF;
iget v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->p:I
int-to-float v3, v0
const/4 v4, 0x0
iget-object v5, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
move-object v0, p1
invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
:cond_ac
return-void
.end method
.method protected c(Landroid/graphics/Canvas;II)V
.registers 8
iget v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->o:F
const/4 v1, 0x0
cmpl-float v0, v0, v1
if-lez v0, :cond_1b
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
iget v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->a:I
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
div-int/lit8 v0, p2, 0x2
int-to-float v0, v0
div-int/lit8 v1, p3, 0x2
int-to-float v1, v1
iget v2, p0, Lcom/scwang/smartrefresh/layout/c/a;->o:F
iget-object v3, p0, Lcom/scwang/smartrefresh/layout/c/a;->h:Landroid/graphics/Paint;
invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V
:cond_1b
return-void
.end method
.method protected dispatchDraw(Landroid/graphics/Canvas;)V
.registers 4
invoke-virtual {p0}, Landroid/view/View;->getWidth()I
move-result v0
invoke-virtual {p0}, Landroid/view/View;->getHeight()I
move-result v1
invoke-virtual {p0, p1, v0}, Lcom/scwang/smartrefresh/layout/c/a;->a(Landroid/graphics/Canvas;I)V
invoke-virtual {p0, p1, v0, v1}, Lcom/scwang/smartrefresh/layout/c/a;->a(Landroid/graphics/Canvas;II)V
invoke-virtual {p0, p1, v0, v1}, Lcom/scwang/smartrefresh/layout/c/a;->b(Landroid/graphics/Canvas;II)V
invoke-virtual {p0, p1, v0, v1}, Lcom/scwang/smartrefresh/layout/c/a;->c(Landroid/graphics/Canvas;II)V
invoke-super {p0, p1}, Lcom/scwang/smartrefresh/layout/e/a;->dispatchDraw(Landroid/graphics/Canvas;)V
return-void
.end method
.method public isSupportHorizontalDrag()Z
.registers 2
iget-boolean v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->f:Z
return v0
.end method
.method protected onDetachedFromWindow()V
.registers 2
invoke-super {p0}, Lcom/scwang/smartrefresh/layout/e/a;->onDetachedFromWindow()V
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->t:Landroid/animation/Animator;
if-eqz v0, :cond_14
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->t:Landroid/animation/Animator;
invoke-virtual {v0}, Landroid/animation/Animator;->removeAllListeners()V
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->t:Landroid/animation/Animator;
invoke-virtual {v0}, Landroid/animation/Animator;->end()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->t:Landroid/animation/Animator;
:cond_14
return-void
.end method
.method public onFinish(Lcom/scwang/smartrefresh/layout/a/h;Z)I
.registers 7
.param p1 # Lcom/scwang/smartrefresh/layout/a/h;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->t:Landroid/animation/Animator;
if-eqz v0, :cond_11
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->t:Landroid/animation/Animator;
invoke-virtual {v0}, Landroid/animation/Animator;->removeAllListeners()V
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->t:Landroid/animation/Animator;
invoke-virtual {v0}, Landroid/animation/Animator;->end()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->t:Landroid/animation/Animator;
:cond_11
invoke-virtual {p0}, Landroid/view/View;->getWidth()I
move-result v0
invoke-virtual {p0}, Landroid/view/View;->getHeight()I
move-result v1
mul-int/2addr v0, v0
mul-int/2addr v1, v1
add-int/2addr v0, v1
int-to-double v0, v0
invoke-static {v0, v1}, Ljava/lang/Math;->sqrt(D)D
move-result-wide v0
double-to-float v0, v0
const/4 v1, 0x2
new-array v1, v1, [F
const/4 v2, 0x0
const/4 v3, 0x0
aput v3, v1, v2
const/4 v2, 0x1
aput v0, v1, v2
invoke-static {v1}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
move-result-object v0
const-wide/16 v2, 0x190
invoke-virtual {v0, v2, v3}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
new-instance v1, Lcom/scwang/smartrefresh/layout/c/a$a;
const/4 v2, 0x3
invoke-direct {v1, p0, v2}, Lcom/scwang/smartrefresh/layout/c/a$a;-><init>(Lcom/scwang/smartrefresh/layout/c/a;B)V
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->start()V
const/16 v0, 0x190
return v0
.end method
.method public onHorizontalDrag(FII)V
.registers 6
iput p2, p0, Lcom/scwang/smartrefresh/layout/c/a;->k:I
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x10
if-lt v0, v1, :cond_c
invoke-virtual {p0}, Landroid/view/View;->postInvalidateOnAnimation()V
:goto_b
return-void
:cond_c
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
goto :goto_b
.end method
.method public onMoving(ZFIII)V
.registers 9
if-nez p1, :cond_6
iget-boolean v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->e:Z
if-eqz v0, :cond_20
:cond_6
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->e:Z
invoke-static {p4, p3}, Ljava/lang/Math;->min(II)I
move-result v0
iput v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->i:I
const v0, 0x3ff33333 # 1.9f
const/4 v1, 0x0
sub-int v2, p3, p4
invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I
move-result v1
int-to-float v1, v1
mul-float/2addr v0, v1
float-to-int v0, v0
iput v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->j:I
iput p2, p0, Lcom/scwang/smartrefresh/layout/c/a;->m:F
:cond_20
return-void
.end method
.method public onReleased(Lcom/scwang/smartrefresh/layout/a/h;II)V
.registers 15
.param p1 # Lcom/scwang/smartrefresh/layout/a/h;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
const/4 v10, 0x4
const/4 v9, 0x3
const/4 v8, 0x1
const/4 v7, 0x2
const/4 v6, 0x0
iput p2, p0, Lcom/scwang/smartrefresh/layout/c/a;->i:I
iput-boolean v6, p0, Lcom/scwang/smartrefresh/layout/c/a;->e:Z
new-array v0, v7, [I
fill-array-data v0, :array_aa
invoke-static {v0}, Landroid/animation/ValueAnimator;->ofInt([I)Landroid/animation/ValueAnimator;
move-result-object v0
const-wide/16 v2, 0x2d0
invoke-virtual {v0, v2, v3}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
const/4 v1, -0x1
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setRepeatCount(I)V
new-instance v1, Landroid/view/animation/AccelerateDecelerateInterpolator;
invoke-direct {v1}, Landroid/view/animation/AccelerateDecelerateInterpolator;-><init>()V
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
new-instance v1, Lcom/scwang/smartrefresh/layout/c/a$a;
invoke-direct {v1, p0, v10}, Lcom/scwang/smartrefresh/layout/c/a$a;-><init>(Lcom/scwang/smartrefresh/layout/c/a;B)V
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
new-instance v1, Landroid/view/animation/DecelerateInterpolator;
invoke-direct {v1}, Landroid/view/animation/DecelerateInterpolator;-><init>()V
new-array v2, v7, [F
fill-array-data v2, :array_b2
invoke-static {v2}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
move-result-object v2
invoke-virtual {v2, v1}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
new-instance v3, Lcom/scwang/smartrefresh/layout/c/a$a;
invoke-direct {v3, p0, v7}, Lcom/scwang/smartrefresh/layout/c/a$a;-><init>(Lcom/scwang/smartrefresh/layout/c/a;B)V
invoke-virtual {v2, v3}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
new-array v3, v7, [F
fill-array-data v3, :array_ba
invoke-static {v3}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
move-result-object v3
invoke-virtual {v2, v1}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
new-instance v4, Lcom/scwang/smartrefresh/layout/c/a$a;
invoke-direct {v4, p0, v6}, Lcom/scwang/smartrefresh/layout/c/a$a;-><init>(Lcom/scwang/smartrefresh/layout/c/a;B)V
invoke-virtual {v3, v4}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
new-instance v4, Landroid/animation/AnimatorSet;
invoke-direct {v4}, Landroid/animation/AnimatorSet;-><init>()V
new-array v5, v9, [Landroid/animation/Animator;
aput-object v2, v5, v6
aput-object v3, v5, v8
aput-object v0, v5, v7
invoke-virtual {v4, v5}, Landroid/animation/AnimatorSet;->playSequentially([Landroid/animation/Animator;)V
invoke-virtual {v4}, Landroid/animation/AnimatorSet;->start()V
const/4 v0, 0x6
new-array v0, v0, [I
iget v2, p0, Lcom/scwang/smartrefresh/layout/c/a;->j:I
aput v2, v0, v6
aput v6, v0, v8
iget v2, p0, Lcom/scwang/smartrefresh/layout/c/a;->j:I
int-to-float v2, v2
const v3, 0x3f4ccccd # 0.8f
mul-float/2addr v2, v3
float-to-int v2, v2
neg-int v2, v2
aput v2, v0, v7
aput v6, v0, v9
iget v2, p0, Lcom/scwang/smartrefresh/layout/c/a;->j:I
int-to-float v2, v2
const v3, 0x3ecccccd # 0.4f
mul-float/2addr v2, v3
float-to-int v2, v2
neg-int v2, v2
aput v2, v0, v10
const/4 v2, 0x5
aput v6, v0, v2
invoke-static {v0}, Landroid/animation/ValueAnimator;->ofInt([I)Landroid/animation/ValueAnimator;
move-result-object v0
new-instance v2, Lcom/scwang/smartrefresh/layout/c/a$a;
invoke-direct {v2, p0, v8}, Lcom/scwang/smartrefresh/layout/c/a$a;-><init>(Lcom/scwang/smartrefresh/layout/c/a;B)V
invoke-virtual {v0, v2}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
const-wide/16 v2, 0x320
invoke-virtual {v0, v2, v3}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->start()V
iput-object v4, p0, Lcom/scwang/smartrefresh/layout/c/a;->t:Landroid/animation/Animator;
return-void
nop
:array_aa
.array-data 4
0x0
0x168
.end array-data
:array_b2
.array-data 4
0x3f800000 # 1.0f
0x0
.end array-data
:array_ba
.array-data 4
0x0
0x3f800000 # 1.0f
.end array-data
.end method
.method public onStateChanged(Lcom/scwang/smartrefresh/layout/a/h;Lcom/scwang/smartrefresh/layout/constant/RefreshState;Lcom/scwang/smartrefresh/layout/constant/RefreshState;)V
.registers 7
.param p1 # Lcom/scwang/smartrefresh/layout/a/h;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
.param p2 # Lcom/scwang/smartrefresh/layout/constant/RefreshState;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
.param p3 # Lcom/scwang/smartrefresh/layout/constant/RefreshState;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
const/4 v2, 0x0
sget-object v0, Lcom/scwang/smartrefresh/layout/c/a$1;->a:[I
invoke-virtual {p3}, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->ordinal()I
move-result v1
aget v0, v0, v1
packed-switch v0, :pswitch_data_16
:goto_c
return-void
:pswitch_d
const/high16 v0, 0x3f800000 # 1.0f
iput v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->l:F
iput v2, p0, Lcom/scwang/smartrefresh/layout/c/a;->s:F
iput v2, p0, Lcom/scwang/smartrefresh/layout/c/a;->o:F
goto :goto_c
:pswitch_data_16
.packed-switch 0x1
:pswitch_d
:pswitch_d
.end packed-switch
.end method
.method public varargs setPrimaryColors([I)V
.registers 5
.param p1 # [I
.annotation build Landroid/support/annotation/ColorInt;
.end annotation
.end param
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const/4 v2, 0x1
const/4 v1, 0x0
array-length v0, p1
if-lez v0, :cond_10
iget-boolean v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->c:Z
if-nez v0, :cond_10
aget v0, p1, v1
invoke-virtual {p0, v0}, Lcom/scwang/smartrefresh/layout/c/a;->a(I)Lcom/scwang/smartrefresh/layout/c/a;
iput-boolean v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->c:Z
:cond_10
array-length v0, p1
if-le v0, v2, :cond_1e
iget-boolean v0, p0, Lcom/scwang/smartrefresh/layout/c/a;->d:Z
if-nez v0, :cond_1e
aget v0, p1, v2
invoke-virtual {p0, v0}, Lcom/scwang/smartrefresh/layout/c/a;->b(I)Lcom/scwang/smartrefresh/layout/c/a;
iput-boolean v1, p0, Lcom/scwang/smartrefresh/layout/c/a;->d:Z
:cond_1e
return-void
.end method