771 lines
17 KiB
Smali
771 lines
17 KiB
Smali
.class public Lcom/moji/FooterView;
|
|
.super Landroid/widget/RelativeLayout;
|
|
.source "FooterView.java"
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/view/View;
|
|
|
|
.field private b:Landroid/widget/TextView;
|
|
|
|
.field private c:I
|
|
|
|
.field private d:Landroid/view/View;
|
|
|
|
.field private e:Z
|
|
|
|
.field private f:I
|
|
|
|
.field private g:I
|
|
|
|
.field private h:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 58
|
|
invoke-direct {p0, p1, v0}, Lcom/moji/FooterView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 62
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/moji/FooterView;-><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
|
|
.locals 0
|
|
|
|
.line 66
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 67
|
|
invoke-direct {p0, p1, p2}, Lcom/moji/FooterView;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
.line 78
|
|
sget v0, Lcom/moji/widget/R$layout;->bottom_loading_layout:I
|
|
|
|
invoke-static {p1, v0, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
.line 80
|
|
sget p1, Lcom/moji/widget/R$id;->pb_loading:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/FooterView;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/moji/FooterView;->a:Landroid/view/View;
|
|
|
|
.line 81
|
|
sget p1, Lcom/moji/widget/R$id;->tv_footer:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/FooterView;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
iput-object p1, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
.line 82
|
|
sget p1, Lcom/moji/widget/R$id;->ll_root:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/FooterView;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/moji/FooterView;->d:Landroid/view/View;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
.line 72
|
|
invoke-direct {p0, p1}, Lcom/moji/FooterView;->b(Landroid/content/Context;)V
|
|
|
|
.line 74
|
|
invoke-direct {p0, p1}, Lcom/moji/FooterView;->a(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private b(Landroid/content/Context;)V
|
|
.locals 3
|
|
|
|
.line 87
|
|
new-instance v0, Landroid/view/View;
|
|
|
|
invoke-direct {v0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 88
|
|
sget p1, Lcom/moji/widget/R$id;->v_line:I
|
|
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setId(I)V
|
|
|
|
.line 89
|
|
new-instance p1, Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
const/high16 v1, 0x3f000000 # 0.5f
|
|
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, -0x1
|
|
|
|
invoke-direct {p1, v2, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V
|
|
|
|
const/high16 v1, 0x41200000 # 10.0f
|
|
|
|
.line 90
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p1, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I
|
|
|
|
.line 91
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
const-string p1, "#0d000000"
|
|
|
|
.line 92
|
|
invoke-static {p1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
.line 93
|
|
invoke-virtual {p0, v0}, Lcom/moji/FooterView;->addView(Landroid/view/View;)V
|
|
|
|
const/4 p1, 0x4
|
|
|
|
.line 94
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private f()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x2
|
|
|
|
.line 228
|
|
iput v0, p0, Lcom/moji/FooterView;->c:I
|
|
|
|
.line 229
|
|
iget-object v0, p0, Lcom/moji/FooterView;->a:Landroid/view/View;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 230
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->b()V
|
|
|
|
.line 231
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
sget v1, Lcom/moji/widget/R$string;->fail_by_net:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private f(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroid/support/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x2
|
|
|
|
.line 235
|
|
iput v0, p0, Lcom/moji/FooterView;->c:I
|
|
|
|
.line 236
|
|
iget-object v0, p0, Lcom/moji/FooterView;->a:Landroid/view/View;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 237
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->b()V
|
|
|
|
.line 238
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private setMsgRightDrawable(I)V
|
|
.locals 3
|
|
.param p1 # I
|
|
.annotation build Landroid/support/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 106
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Lcom/moji/widget/R$dimen;->_4dp:I
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result v1
|
|
|
|
float-to-int v1, v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setCompoundDrawablePadding(I)V
|
|
|
|
.line 107
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1, v1, p1, v1}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 98
|
|
iput v0, p0, Lcom/moji/FooterView;->c:I
|
|
|
|
.line 99
|
|
iget-object v0, p0, Lcom/moji/FooterView;->a:Landroid/view/View;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 100
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
sget v1, Lcom/moji/widget/R$string;->footer_loading:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
.line 101
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroid/support/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 119
|
|
iput v0, p0, Lcom/moji/FooterView;->c:I
|
|
|
|
.line 120
|
|
iget-object v0, p0, Lcom/moji/FooterView;->a:Landroid/view/View;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 121
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->b()V
|
|
|
|
.line 122
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(II)V
|
|
.locals 0
|
|
.param p2 # I
|
|
.annotation build Landroid/support/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 220
|
|
:pswitch_0
|
|
invoke-direct {p0, p2}, Lcom/moji/FooterView;->f(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 214
|
|
:pswitch_1
|
|
invoke-virtual {p0, p2}, Lcom/moji/FooterView;->d(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 211
|
|
:pswitch_2
|
|
invoke-virtual {p0, p2}, Lcom/moji/FooterView;->c(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 217
|
|
:pswitch_3
|
|
invoke-virtual {p0, p2}, Lcom/moji/FooterView;->b(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 208
|
|
:pswitch_4
|
|
invoke-virtual {p0, p2}, Lcom/moji/FooterView;->a(I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 0
|
|
|
|
.line 165
|
|
iput-boolean p1, p0, Lcom/moji/FooterView;->e:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 3
|
|
|
|
.line 114
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1, v1, v1, v1}, Landroid/widget/TextView;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 115
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Lcom/moji/widget/R$dimen;->zero:I
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result v1
|
|
|
|
float-to-int v1, v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setCompoundDrawablePadding(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroid/support/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x2
|
|
|
|
.line 133
|
|
iput v0, p0, Lcom/moji/FooterView;->c:I
|
|
|
|
.line 134
|
|
iget-object v0, p0, Lcom/moji/FooterView;->a:Landroid/view/View;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 135
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->b()V
|
|
|
|
.line 136
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x2
|
|
|
|
.line 126
|
|
iput v0, p0, Lcom/moji/FooterView;->c:I
|
|
|
|
.line 127
|
|
iget-object v0, p0, Lcom/moji/FooterView;->a:Landroid/view/View;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 128
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->b()V
|
|
|
|
.line 129
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
iget v1, p0, Lcom/moji/FooterView;->h:I
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
sget v1, Lcom/moji/widget/R$string;->footer_fail:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v1, p0, Lcom/moji/FooterView;->h:I
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroid/support/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x3
|
|
|
|
.line 149
|
|
iput v0, p0, Lcom/moji/FooterView;->c:I
|
|
|
|
.line 150
|
|
iget-object v0, p0, Lcom/moji/FooterView;->a:Landroid/view/View;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 151
|
|
iget-boolean v0, p0, Lcom/moji/FooterView;->e:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 152
|
|
sget v0, Lcom/moji/widget/R$drawable;->icon_loadmore:I
|
|
|
|
invoke-direct {p0, v0}, Lcom/moji/FooterView;->setMsgRightDrawable(I)V
|
|
|
|
.line 154
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x3
|
|
|
|
.line 140
|
|
iput v0, p0, Lcom/moji/FooterView;->c:I
|
|
|
|
.line 141
|
|
iget-object v0, p0, Lcom/moji/FooterView;->a:Landroid/view/View;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 142
|
|
iget-boolean v0, p0, Lcom/moji/FooterView;->e:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 143
|
|
sget v0, Lcom/moji/widget/R$drawable;->icon_loadmore:I
|
|
|
|
invoke-direct {p0, v0}, Lcom/moji/FooterView;->setMsgRightDrawable(I)V
|
|
|
|
.line 145
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
sget v1, Lcom/moji/widget/R$string;->footer_load_more_2:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d(I)V
|
|
.locals 2
|
|
.param p1 # I
|
|
.annotation build Landroid/support/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x4
|
|
|
|
.line 169
|
|
iput v0, p0, Lcom/moji/FooterView;->c:I
|
|
|
|
.line 170
|
|
iget-object v0, p0, Lcom/moji/FooterView;->a:Landroid/view/View;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 171
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->b()V
|
|
|
|
.line 172
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public e()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x4
|
|
|
|
.line 158
|
|
iput v0, p0, Lcom/moji/FooterView;->c:I
|
|
|
|
.line 159
|
|
iget-object v0, p0, Lcom/moji/FooterView;->a:Landroid/view/View;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 160
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->b()V
|
|
|
|
.line 161
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
iget v1, p0, Lcom/moji/FooterView;->f:I
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
sget v1, Lcom/moji/widget/R$string;->footer_load_complete:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v1, p0, Lcom/moji/FooterView;->f:I
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public e(I)V
|
|
.locals 0
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 198
|
|
:pswitch_0
|
|
invoke-direct {p0}, Lcom/moji/FooterView;->f()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 192
|
|
:pswitch_1
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->e()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 189
|
|
:pswitch_2
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->d()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 195
|
|
:pswitch_3
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->c()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 186
|
|
:pswitch_4
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->a()V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public getStatus()I
|
|
.locals 1
|
|
|
|
.line 180
|
|
iget v0, p0, Lcom/moji/FooterView;->c:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public setCompeteResId(I)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroid/support/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 44
|
|
iput p1, p0, Lcom/moji/FooterView;->f:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setNetFailedResId(I)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroid/support/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 48
|
|
iput p1, p0, Lcom/moji/FooterView;->g:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setServerFailResId(I)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroid/support/annotation/StringRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 52
|
|
iput p1, p0, Lcom/moji/FooterView;->h:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextColor(I)V
|
|
.locals 2
|
|
|
|
.line 258
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/FooterView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1, p1}, Lcom/moji/tool/DeviceTool;->a(Landroid/content/Context;I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextSize(I)V
|
|
.locals 2
|
|
|
|
.line 254
|
|
iget-object v0, p0, Lcom/moji/FooterView;->b:Landroid/widget/TextView;
|
|
|
|
int-to-float p1, p1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1, p1}, Landroid/widget/TextView;->setTextSize(IF)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVisibility(I)V
|
|
.locals 1
|
|
|
|
.line 243
|
|
invoke-super {p0, p1}, Landroid/widget/RelativeLayout;->setVisibility(I)V
|
|
|
|
.line 244
|
|
iget-object v0, p0, Lcom/moji/FooterView;->d:Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 245
|
|
iget-object v0, p0, Lcom/moji/FooterView;->d:Landroid/view/View;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|