296 lines
8.8 KiB
Smali
296 lines
8.8 KiB
Smali
.class abstract Lcom/moji/index/ArticleAdapter$NormalHolder;
|
|
.super Lcom/moji/index/common/BaseHolder;
|
|
.source "ArticleAdapter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/moji/index/ArticleAdapter;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x400
|
|
name = "NormalHolder"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/index/common/BaseHolder<",
|
|
"Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/view/View;
|
|
|
|
.field protected b:Landroid/widget/TextView;
|
|
|
|
.field protected c:Landroid/widget/TextView;
|
|
|
|
.field protected d:Landroid/widget/TextView;
|
|
|
|
.field protected e:Landroid/widget/TextView;
|
|
|
|
.field final synthetic f:Lcom/moji/index/ArticleAdapter;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/index/ArticleAdapter;)V
|
|
.locals 0
|
|
|
|
.line 119
|
|
iput-object p1, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->f:Lcom/moji/index/ArticleAdapter;
|
|
|
|
invoke-direct {p0}, Lcom/moji/index/common/BaseHolder;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
.line 128
|
|
sget v0, Lcom/moji/index/R$drawable;->base_item_click_black_effect_selector:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundResource(I)V
|
|
|
|
.line 129
|
|
sget v0, Lcom/moji/index/R$id;->title:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
iput-object v0, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->b:Landroid/widget/TextView;
|
|
|
|
.line 130
|
|
iget-object v0, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->b:Landroid/widget/TextView;
|
|
|
|
iget-object v1, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->f:Lcom/moji/index/ArticleAdapter;
|
|
|
|
invoke-static {v1}, Lcom/moji/index/ArticleAdapter;->b(Lcom/moji/index/ArticleAdapter;)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
.line 131
|
|
sget v0, Lcom/moji/index/R$id;->source:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
iput-object v0, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->c:Landroid/widget/TextView;
|
|
|
|
.line 132
|
|
sget v0, Lcom/moji/index/R$id;->comment:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
iput-object v0, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->d:Landroid/widget/TextView;
|
|
|
|
.line 133
|
|
iget-object v0, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->c:Landroid/widget/TextView;
|
|
|
|
iget-object v1, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->f:Lcom/moji/index/ArticleAdapter;
|
|
|
|
invoke-static {v1}, Lcom/moji/index/ArticleAdapter;->c(Lcom/moji/index/ArticleAdapter;)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
.line 134
|
|
iget-object v0, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->d:Landroid/widget/TextView;
|
|
|
|
iget-object v1, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->f:Lcom/moji/index/ArticleAdapter;
|
|
|
|
invoke-static {v1}, Lcom/moji/index/ArticleAdapter;->c(Lcom/moji/index/ArticleAdapter;)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
.line 135
|
|
sget v0, Lcom/moji/index/R$id;->tag:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
iput-object v0, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->e:Landroid/widget/TextView;
|
|
|
|
.line 136
|
|
sget v0, Lcom/moji/index/R$id;->divider:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->a:Landroid/view/View;
|
|
|
|
.line 137
|
|
iget-object p1, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->a:Landroid/view/View;
|
|
|
|
iget-object v0, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->f:Lcom/moji/index/ArticleAdapter;
|
|
|
|
invoke-static {v0}, Lcom/moji/index/ArticleAdapter;->d(Lcom/moji/index/ArticleAdapter;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
.line 138
|
|
iget-object p1, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->a:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
const/high16 v0, 0x3f000000 # 0.5f
|
|
|
|
.line 139
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p1, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
.line 140
|
|
iget-object v0, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->a:Landroid/view/View;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;I)V
|
|
.locals 5
|
|
|
|
.line 145
|
|
iget-object p2, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->b:Landroid/widget/TextView;
|
|
|
|
iget-object v0, p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;->content_name:Ljava/lang/String;
|
|
|
|
invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 146
|
|
iget-object p2, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->c:Landroid/widget/TextView;
|
|
|
|
iget-object v0, p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;->source:Ljava/lang/String;
|
|
|
|
invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 147
|
|
iget p2, p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;->comment_num:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-lez p2, :cond_0
|
|
|
|
.line 148
|
|
iget-object p2, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->d:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p2, v0}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
.line 149
|
|
iget-object p2, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->d:Landroid/widget/TextView;
|
|
|
|
iget-object v1, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->f:Lcom/moji/index/ArticleAdapter;
|
|
|
|
invoke-static {v1}, Lcom/moji/index/ArticleAdapter;->e(Lcom/moji/index/ArticleAdapter;)Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Lcom/moji/index/R$string;->comments_num:I
|
|
|
|
const/4 v3, 0x1
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
iget v4, p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;->comment_num:I
|
|
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, v3, v0
|
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 151
|
|
:cond_0
|
|
iget-object p2, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->d:Landroid/widget/TextView;
|
|
|
|
const/4 v1, 0x4
|
|
|
|
invoke-virtual {p2, v1}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
.line 153
|
|
:goto_0
|
|
iget-object p2, p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;->tag:Ljava/lang/String;
|
|
|
|
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 154
|
|
iget-object p1, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->e:Landroid/widget/TextView;
|
|
|
|
const/16 p2, 0x8
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 156
|
|
:cond_1
|
|
iget-object p2, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->e:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p2, v0}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
.line 157
|
|
iget-object p2, p0, Lcom/moji/index/ArticleAdapter$NormalHolder;->e:Landroid/widget/TextView;
|
|
|
|
iget-object p1, p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;->tag:Ljava/lang/String;
|
|
|
|
invoke-virtual {p2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic a(Ljava/lang/Object;I)V
|
|
.locals 0
|
|
|
|
.line 119
|
|
check-cast p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/index/ArticleAdapter$NormalHolder;->a(Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;I)V
|
|
|
|
return-void
|
|
.end method
|