177 lines
4.8 KiB
Smali
177 lines
4.8 KiB
Smali
.class Lcom/moji/index/ArticleAdapter$ArticleThreeHolder;
|
|
.super Lcom/moji/index/ArticleAdapter$NormalHolder;
|
|
.source "ArticleAdapter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/moji/index/ArticleAdapter;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x2
|
|
name = "ArticleThreeHolder"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/index/ArticleAdapter;
|
|
|
|
.field private g:Landroid/widget/LinearLayout;
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Lcom/moji/index/ArticleAdapter;)V
|
|
.locals 0
|
|
|
|
.line 89
|
|
iput-object p1, p0, Lcom/moji/index/ArticleAdapter$ArticleThreeHolder;->a:Lcom/moji/index/ArticleAdapter;
|
|
|
|
invoke-direct {p0, p1}, Lcom/moji/index/ArticleAdapter$NormalHolder;-><init>(Lcom/moji/index/ArticleAdapter;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Lcom/moji/index/ArticleAdapter;Lcom/moji/index/ArticleAdapter$1;)V
|
|
.locals 0
|
|
|
|
.line 89
|
|
invoke-direct {p0, p1}, Lcom/moji/index/ArticleAdapter$ArticleThreeHolder;-><init>(Lcom/moji/index/ArticleAdapter;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(I)I
|
|
.locals 0
|
|
|
|
.line 114
|
|
sget p1, Lcom/moji/index/R$layout;->article_item_3:I
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public a(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
.line 94
|
|
invoke-super {p0, p1}, Lcom/moji/index/ArticleAdapter$NormalHolder;->a(Landroid/view/View;)V
|
|
|
|
.line 95
|
|
sget v0, Lcom/moji/index/R$id;->image_container:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/LinearLayout;
|
|
|
|
iput-object p1, p0, Lcom/moji/index/ArticleAdapter$ArticleThreeHolder;->g:Landroid/widget/LinearLayout;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;I)V
|
|
.locals 5
|
|
|
|
.line 100
|
|
invoke-super {p0, p1, p2}, Lcom/moji/index/ArticleAdapter$NormalHolder;->a(Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;I)V
|
|
|
|
.line 101
|
|
iget-object p2, p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;->picture_path_list:Ljava/util/List;
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
iget-object p2, p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;->picture_path_list:Ljava/util/List;
|
|
|
|
invoke-interface {p2}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result p2
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 102
|
|
:goto_0
|
|
iget-object v1, p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;->picture_path_list:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
const/4 v1, 0x3
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
.line 103
|
|
iget-object v1, p0, Lcom/moji/index/ArticleAdapter$ArticleThreeHolder;->g:Landroid/widget/LinearLayout;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/widget/ImageView;
|
|
|
|
.line 104
|
|
new-instance v2, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
iget-object v3, p0, Lcom/moji/index/ArticleAdapter$ArticleThreeHolder;->a:Lcom/moji/index/ArticleAdapter;
|
|
|
|
invoke-static {v3}, Lcom/moji/index/ArticleAdapter;->a(Lcom/moji/index/ArticleAdapter;)I
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, -0x1
|
|
|
|
invoke-direct {v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
|
|
|
|
const/high16 v3, 0x40a00000 # 5.0f
|
|
|
|
.line 105
|
|
invoke-static {v3}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v2, p2, p2, v3, p2}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V
|
|
|
|
.line 106
|
|
invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 107
|
|
iget-object v2, p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;->picture_path_list:Ljava/util/List;
|
|
|
|
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
sget v3, Lcom/moji/index/R$drawable;->zaker_default_image:I
|
|
|
|
invoke-static {v1, v2, v3}, Lcom/moji/tool/ImageTool;->a(Landroid/widget/ImageView;Ljava/lang/String;I)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic a(Ljava/lang/Object;I)V
|
|
.locals 0
|
|
|
|
.line 89
|
|
check-cast p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/index/ArticleAdapter$ArticleThreeHolder;->a(Lcom/moji/http/index/IndexResp$IndexRegionListBean$IndexContentListBean;I)V
|
|
|
|
return-void
|
|
.end method
|