.class public Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;
.super Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedThreeCreater;
.source "AdStyleFeedChannelThreeCreater.java"


# instance fields
.field private E:Landroid/view/View;

.field private F:Landroid/view/View;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 25
    invoke-direct {p0, p1}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedThreeCreater;-><init>(Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method public synthetic a(Ljava/lang/Object;Ljava/lang/String;)Landroid/view/View;
    .locals 0

    .line 20
    check-cast p1, Lcom/moji/mjad/common/data/AdCommon;

    invoke-virtual {p0, p1, p2}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->g(Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)Landroid/view/View;

    move-result-object p1

    return-object p1
.end method

.method protected a(Landroid/view/View;)V
    .locals 5

    .line 42
    sget v0, Lcom/moji/mjad/R$id;->tv_ad_desc: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/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->t:Landroid/widget/TextView;

    .line 43
    sget v0, Lcom/moji/mjad/R$id;->iv_ad1:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->g:Landroid/widget/ImageView;

    .line 44
    sget v0, Lcom/moji/mjad/R$id;->iv_ad2:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->C:Landroid/widget/ImageView;

    .line 45
    sget v0, Lcom/moji/mjad/R$id;->iv_ad3:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->D:Landroid/widget/ImageView;

    .line 47
    invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I

    move-result v0

    const/high16 v1, 0x41e00000    # 28.0f

    invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v1

    sub-int/2addr v0, v1

    div-int/lit8 v0, v0, 0x3

    mul-int/lit8 v1, v0, 0x18

    .line 48
    div-int/lit8 v1, v1, 0x25

    .line 49
    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v2, v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/high16 v3, 0x40800000    # 4.0f

    .line 50
    invoke-static {v3}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v3

    const/4 v4, 0x0

    invoke-virtual {v2, v4, v4, v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    .line 51
    iget-object v3, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->g:Landroid/widget/ImageView;

    invoke-virtual {v3, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 52
    iget-object v3, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->C:Landroid/widget/ImageView;

    invoke-virtual {v3, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 54
    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v2, v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 55
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->D:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 57
    sget v0, Lcom/moji/mjad/R$id;->v_line_bottom:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->E:Landroid/view/View;

    .line 58
    sget v0, Lcom/moji/mjad/R$id;->v_line_top:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->F:Landroid/view/View;

    .line 59
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->F:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 60
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->E:Landroid/view/View;

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    .line 62
    sget v0, Lcom/moji/mjad/R$id;->adTextWithTagView:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/moji/mjad/view/AdTextWithTagView;

    iput-object p1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->s:Lcom/moji/mjad/view/AdTextWithTagView;

    .line 63
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->s:Lcom/moji/mjad/view/AdTextWithTagView;

    sget v0, Lcom/moji/mjad/R$color;->ad_mask_close_normal_color:I

    const/16 v1, 0xb

    invoke-virtual {p1, v0, v1}, Lcom/moji/mjad/view/AdTextWithTagView;->a(II)Lcom/moji/mjad/view/AdTextWithTagView;

    return-void
.end method

.method public g(Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)Landroid/view/View;
    .locals 1

    .line 30
    sget v0, Lcom/moji/mjad/R$layout;->moji_ad_style_feed_channel_three:I

    invoke-virtual {p0, v0}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->a(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->n:Landroid/view/View;

    const/4 v0, 0x1

    .line 31
    iput-boolean v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->l:Z

    .line 32
    sget v0, Lcom/moji/mjad/R$dimen;->moji_ad_three_height:I

    invoke-virtual {p0, v0}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->c(I)F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->m:I

    const/4 v0, 0x0

    .line 33
    iput-boolean v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->b:Z

    .line 34
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->n:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->a(Landroid/view/View;)V

    .line 35
    invoke-virtual {p0, p1}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->a(Lcom/moji/mjad/common/data/AdCommon;)V

    .line 36
    invoke-virtual {p0, p1, p2}, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->a(Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)V

    .line 37
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/feed/AdStyleFeedChannelThreeCreater;->n:Landroid/view/View;

    return-object p1
.end method
