a.smali
.class public abstract Lcom/scwang/smartrefresh/layout/e/a;
.super Landroid/widget/RelativeLayout;
# interfaces
.implements Lcom/scwang/smartrefresh/layout/a/f;
# instance fields
.field protected v:Landroid/view/View;
.field protected w:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
# direct methods
.method protected constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.registers 4
invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method protected constructor <init>(Landroid/view/View;)V
.registers 5
.param p1 # Landroid/view/View;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
const/4 v1, 0x0
const/4 v2, 0x0
invoke-direct {p0, v0, v1, v2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
iput-object p1, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
return-void
.end method
# virtual methods
.method public getSpinnerStyle()Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
.registers 3
.annotation build Landroid/support/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->w:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
if-eqz v0, :cond_7
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->w:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
:goto_6
return-object v0
:cond_7
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
instance-of v0, v0, Lcom/scwang/smartrefresh/layout/a/f;
if-eqz v0, :cond_16
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
check-cast v0, Lcom/scwang/smartrefresh/layout/a/f;
invoke-interface {v0}, Lcom/scwang/smartrefresh/layout/a/f;->getSpinnerStyle()Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
move-result-object v0
goto :goto_6
:cond_16
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
if-eqz v0, :cond_42
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v1
instance-of v0, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;
if-eqz v0, :cond_32
move-object v0, v1
check-cast v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;->b:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
iput-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->w:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->w:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
if-eqz v0, :cond_32
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->w:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
goto :goto_6
:cond_32
if-eqz v1, :cond_42
iget v0, v1, Landroid/view/ViewGroup$LayoutParams;->height:I
if-eqz v0, :cond_3d
iget v0, v1, Landroid/view/ViewGroup$LayoutParams;->height:I
const/4 v1, -0x1
if-ne v0, v1, :cond_42
:cond_3d
sget-object v0, Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;->b:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
iput-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->w:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
goto :goto_6
:cond_42
sget-object v0, Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;->a:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
iput-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->w:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
goto :goto_6
.end method
.method public getView()Landroid/view/View;
.registers 2
.annotation build Landroid/support/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
if-nez v0, :cond_5
:goto_4
return-object p0
:cond_5
iget-object p0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
goto :goto_4
.end method
.method public isSupportHorizontalDrag()Z
.registers 2
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
instance-of v0, v0, Lcom/scwang/smartrefresh/layout/a/f;
if-eqz v0, :cond_12
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
check-cast v0, Lcom/scwang/smartrefresh/layout/a/f;
invoke-interface {v0}, Lcom/scwang/smartrefresh/layout/a/f;->isSupportHorizontalDrag()Z
move-result v0
if-eqz v0, :cond_12
const/4 v0, 0x1
:goto_11
return v0
:cond_12
const/4 v0, 0x0
goto :goto_11
.end method
.method public onFinish(Lcom/scwang/smartrefresh/layout/a/h;Z)I
.registers 4
.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/e/a;->v:Landroid/view/View;
instance-of v0, v0, Lcom/scwang/smartrefresh/layout/a/f;
if-eqz v0, :cond_f
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
check-cast v0, Lcom/scwang/smartrefresh/layout/a/f;
invoke-interface {v0, p1, p2}, Lcom/scwang/smartrefresh/layout/a/f;->onFinish(Lcom/scwang/smartrefresh/layout/a/h;Z)I
move-result v0
:goto_e
return v0
:cond_f
const/4 v0, 0x0
goto :goto_e
.end method
.method public onHorizontalDrag(FII)V
.registers 5
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
instance-of v0, v0, Lcom/scwang/smartrefresh/layout/a/f;
if-eqz v0, :cond_d
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
check-cast v0, Lcom/scwang/smartrefresh/layout/a/f;
invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smartrefresh/layout/a/f;->onHorizontalDrag(FII)V
:cond_d
return-void
.end method
.method public onInitialized(Lcom/scwang/smartrefresh/layout/a/g;II)V
.registers 6
.param p1 # Lcom/scwang/smartrefresh/layout/a/g;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
instance-of v0, v0, Lcom/scwang/smartrefresh/layout/a/f;
if-eqz v0, :cond_e
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
check-cast v0, Lcom/scwang/smartrefresh/layout/a/f;
invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smartrefresh/layout/a/f;->onInitialized(Lcom/scwang/smartrefresh/layout/a/g;II)V
:cond_d
:goto_d
return-void
:cond_e
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
if-eqz v0, :cond_d
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
instance-of v1, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;
if-eqz v1, :cond_d
check-cast v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;
iget v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;->a:I
invoke-interface {p1, p0, v0}, Lcom/scwang/smartrefresh/layout/a/g;->a(Lcom/scwang/smartrefresh/layout/a/f;I)Lcom/scwang/smartrefresh/layout/a/g;
goto :goto_d
.end method
.method public onMoving(ZFIII)V
.registers 12
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
instance-of v0, v0, Lcom/scwang/smartrefresh/layout/a/f;
if-eqz v0, :cond_12
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
check-cast v0, Lcom/scwang/smartrefresh/layout/a/f;
move v1, p1
move v2, p2
move v3, p3
move v4, p4
move v5, p5
invoke-interface/range {v0 .. v5}, Lcom/scwang/smartrefresh/layout/a/f;->onMoving(ZFIII)V
:cond_12
return-void
.end method
.method public onReleased(Lcom/scwang/smartrefresh/layout/a/h;II)V
.registers 5
.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/e/a;->v:Landroid/view/View;
instance-of v0, v0, Lcom/scwang/smartrefresh/layout/a/f;
if-eqz v0, :cond_d
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
check-cast v0, Lcom/scwang/smartrefresh/layout/a/f;
invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smartrefresh/layout/a/f;->onReleased(Lcom/scwang/smartrefresh/layout/a/h;II)V
:cond_d
return-void
.end method
.method public onStartAnimator(Lcom/scwang/smartrefresh/layout/a/h;II)V
.registers 5
.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/e/a;->v:Landroid/view/View;
instance-of v0, v0, Lcom/scwang/smartrefresh/layout/a/f;
if-eqz v0, :cond_d
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
check-cast v0, Lcom/scwang/smartrefresh/layout/a/f;
invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smartrefresh/layout/a/f;->onStartAnimator(Lcom/scwang/smartrefresh/layout/a/h;II)V
:cond_d
return-void
.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 5
.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
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
instance-of v0, v0, Lcom/scwang/smartrefresh/layout/a/f;
if-eqz v0, :cond_d
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
check-cast v0, Lcom/scwang/smartrefresh/layout/a/f;
invoke-interface {v0, p1, p2, p3}, Lcom/scwang/smartrefresh/layout/a/f;->onStateChanged(Lcom/scwang/smartrefresh/layout/a/h;Lcom/scwang/smartrefresh/layout/constant/RefreshState;Lcom/scwang/smartrefresh/layout/constant/RefreshState;)V
:cond_d
return-void
.end method
.method public varargs setPrimaryColors([I)V
.registers 3
.param p1 # [I
.annotation build Landroid/support/annotation/ColorInt;
.end annotation
.end param
.annotation runtime Ljava/lang/Deprecated;
.end annotation
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
instance-of v0, v0, Lcom/scwang/smartrefresh/layout/a/f;
if-eqz v0, :cond_d
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/e/a;->v:Landroid/view/View;
check-cast v0, Lcom/scwang/smartrefresh/layout/a/f;
invoke-interface {v0, p1}, Lcom/scwang/smartrefresh/layout/a/f;->setPrimaryColors([I)V
:cond_d
return-void
.end method