SmartRefreshLayout$c.smali
.class public Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;
.super Landroid/view/ViewGroup$MarginLayoutParams;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "c"
.end annotation
# instance fields
.field public a:I
.field public b:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
# direct methods
.method public constructor <init>(II)V
.registers 4
invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup$MarginLayoutParams;-><init>(II)V
const/4 v0, 0x0
iput v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;->a:I
const/4 v0, 0x0
iput-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;->b:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 7
invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup$MarginLayoutParams;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
const/4 v0, 0x0
iput v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;->a:I
const/4 v0, 0x0
iput-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;->b:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
sget-object v0, Lcom/scwang/smartrefresh/layout/a$b;->SmartRefreshLayout_Layout:[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;->SmartRefreshLayout_Layout_layout_srlBackgroundColor:I
iget v2, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;->a:I
invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getColor(II)I
move-result v1
iput v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;->a:I
sget v1, Lcom/scwang/smartrefresh/layout/a$b;->SmartRefreshLayout_Layout_layout_srlSpinnerStyle:I
invoke-virtual {v0, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v1
if-eqz v1, :cond_35
invoke-static {}, Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;->values()[Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
move-result-object v1
sget v2, Lcom/scwang/smartrefresh/layout/a$b;->SmartRefreshLayout_Layout_layout_srlSpinnerStyle:I
sget-object v3, Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;->a:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
invoke-virtual {v3}, Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;->ordinal()I
move-result v3
invoke-virtual {v0, v2, v3}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v2
aget-object v1, v1, v2
iput-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;->b:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
:cond_35
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
return-void
.end method
.method public constructor <init>(Landroid/view/ViewGroup$LayoutParams;)V
.registers 3
invoke-direct {p0, p1}, Landroid/view/ViewGroup$MarginLayoutParams;-><init>(Landroid/view/ViewGroup$LayoutParams;)V
const/4 v0, 0x0
iput v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;->a:I
const/4 v0, 0x0
iput-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$c;->b:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
return-void
.end method