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 a:I
.field public b:Lcom/scwang/smartrefresh/layout/constant/b;
# direct methods
.method public constructor <init>(II)V
.registers 3
.line 9
invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup$MarginLayoutParams;-><init>(II)V
const/4 p1, 0x0
.line 10
iput p1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->a:I
const/4 p1, 0x0
.line 11
iput-object p1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->b:Lcom/scwang/smartrefresh/layout/constant/b;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 5
.line 1
invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup$MarginLayoutParams;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
const/4 v0, 0x0
.line 2
iput v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->a:I
const/4 v0, 0x0
.line 3
iput-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->b:Lcom/scwang/smartrefresh/layout/constant/b;
.line 4
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 p1
.line 5
sget p2, Lcom/scwang/smartrefresh/layout/R$styleable;->SmartRefreshLayout_Layout_layout_srlBackgroundColor:I
iget v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->a:I
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getColor(II)I
move-result p2
iput p2, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->a:I
.line 6
sget p2, Lcom/scwang/smartrefresh/layout/R$styleable;->SmartRefreshLayout_Layout_layout_srlSpinnerStyle:I
invoke-virtual {p1, p2}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result p2
if-eqz p2, :cond_31
.line 7
sget-object p2, Lcom/scwang/smartrefresh/layout/constant/b;->f:[Lcom/scwang/smartrefresh/layout/constant/b;
sget v0, Lcom/scwang/smartrefresh/layout/R$styleable;->SmartRefreshLayout_Layout_layout_srlSpinnerStyle:I
sget-object v1, Lcom/scwang/smartrefresh/layout/constant/b;->a:Lcom/scwang/smartrefresh/layout/constant/b;
iget v1, v1, Lcom/scwang/smartrefresh/layout/constant/b;->g:I
invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v0
aget-object p2, p2, v0
iput-object p2, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$LayoutParams;->b:Lcom/scwang/smartrefresh/layout/constant/b;
.line 8
:cond_31
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
return-void
.end method