SmartRefreshLayout$LayoutParams.smali
.class public Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;
.super Landroid/view/ViewGroup$MarginLayoutParams;
.source "SmartRefreshLayout.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "LayoutParams"
.end annotation
# instance fields
.field public backgroundColor:I
.field public spinnerStyle:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(II)V
.registers 4
.param p1, "width" # I
.param p2, "height" # I
.line 1766
invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup$MarginLayoutParams;-><init>(II)V
.line 1777
const/4 v0, 0x0
iput v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->backgroundColor:I
.line 1778
const/4 v0, 0x0
iput-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->spinnerStyle:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
.line 1767
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 7
.param p1, "context" # Landroid/content/Context;
.param p2, "attrs" # Landroid/util/AttributeSet;
.line 1756
invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup$MarginLayoutParams;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 1777
const/4 v0, 0x0
iput v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->backgroundColor:I
.line 1778
const/4 v0, 0x0
iput-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->spinnerStyle:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
.line 1757
sget-object v0, Lcom/scwang/smartrefresh/layout/R$styleable;->SmartRefreshLayout_Layout:[I
invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object v0
.line 1758
.local v0, "ta":Landroid/content/res/TypedArray;
sget v1, Lcom/scwang/smartrefresh/layout/R$styleable;->SmartRefreshLayout_Layout_layout_srlBackgroundColor:I
iget v2, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->backgroundColor:I
invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getColor(II)I
move-result v1
iput v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->backgroundColor:I
.line 1759
sget v1, Lcom/scwang/smartrefresh/layout/R$styleable;->SmartRefreshLayout_Layout_layout_srlSpinnerStyle:I
invoke-virtual {v0, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result v1
if-eqz v1, :cond_31
.line 1760
sget-object v1, Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;->values:[Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
sget v2, Lcom/scwang/smartrefresh/layout/R$styleable;->SmartRefreshLayout_Layout_layout_srlSpinnerStyle:I
sget-object v3, Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;->Translate:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
iget v3, v3, Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;->ordinal:I
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$LayoutParams;->spinnerStyle:Lcom/scwang/smartrefresh/layout/constant/SpinnerStyle;
.line 1762
:cond_31
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
.line 1763
return-void
.end method