.class public Lcom/moji/mjad/common/view/creater/style/AdStyleArtCryFiveCreater;
.super Lcom/moji/mjad/common/view/creater/AbsAdCrystalViewCreater;
.source "AdStyleArtCryFiveCreater.java"


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

    .line 28
    invoke-direct {p0, p1}, Lcom/moji/mjad/common/view/creater/AbsAdCrystalViewCreater;-><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 21
    check-cast p1, Lcom/moji/mjad/common/data/AdCommon;

    invoke-virtual {p0, p1, p2}, Lcom/moji/mjad/common/view/creater/style/AdStyleArtCryFiveCreater;->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 2

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleArtCryFiveCreater;->q:Landroid/widget/RelativeLayout;

    .line 34
    sget v0, Lcom/moji/mjad/R$id;->tv_moji_ad_content: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/style/AdStyleArtCryFiveCreater;->t:Landroid/widget/TextView;

    .line 35
    sget v0, Lcom/moji/mjad/R$id;->iv_moji_ad_close: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/style/AdStyleArtCryFiveCreater;->u:Landroid/widget/ImageView;

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

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

    move-result-object v0

    check-cast v0, Lcom/moji/mjad/view/AdCommonMaskView;

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleArtCryFiveCreater;->v:Lcom/moji/mjad/view/IAbstractMask;

    .line 38
    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/style/AdStyleArtCryFiveCreater;->s:Lcom/moji/mjad/view/AdTextWithTagView;

    .line 39
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleArtCryFiveCreater;->s:Lcom/moji/mjad/view/AdTextWithTagView;

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

    const/16 v1, 0x10

    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 3

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

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

    move-result-object v0

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

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

    move-result v0

    int-to-float v0, v0

    sget v1, Lcom/moji/mjad/R$dimen;->_5dp:I

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

    move-result v1

    const/high16 v2, 0x40000000    # 2.0f

    mul-float v1, v1, v2

    sub-float/2addr v0, v1

    float-to-int v0, v0

    iput v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleArtCryFiveCreater;->j:I

    .line 47
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleArtCryFiveCreater;->n:Landroid/view/View;

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

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

    .line 49
    iget-object p2, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleArtCryFiveCreater;->u:Landroid/widget/ImageView;

    invoke-static {p1, p2}, Lcom/moji/mjad/util/AdUtil;->a(Lcom/moji/mjad/common/data/AdCommon;Landroid/widget/ImageView;)V

    .line 50
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleArtCryFiveCreater;->n:Landroid/view/View;

    return-object p1
.end method
