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


# instance fields
.field private c:Lcom/moji/imageview/CertificateRoundImageView;


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

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

    invoke-virtual {p0, p1, p2}, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->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 34
    sget v0, Lcom/moji/mjad/R$id;->iv_ad_livecomment_headimg:I

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

    move-result-object v0

    check-cast v0, Lcom/moji/imageview/CertificateRoundImageView;

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->c:Lcom/moji/imageview/CertificateRoundImageView;

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

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

    move-result-object v0

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

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->o:Lcom/moji/mjad/view/AdTagView;

    .line 36
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->o:Lcom/moji/mjad/view/AdTagView;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Lcom/moji/mjad/view/AdTagView;->a(I)Lcom/moji/mjad/view/AdTagView;

    .line 37
    sget v0, Lcom/moji/mjad/R$id;->iv_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/ImageView;

    iput-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->p:Landroid/widget/ImageView;

    .line 38
    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/AdStyleLiveCommentEvelenCreater;->q:Landroid/widget/RelativeLayout;

    .line 39
    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/AdStyleLiveCommentEvelenCreater;->u:Landroid/widget/ImageView;

    .line 40
    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/AdStyleLiveCommentEvelenCreater;->v:Lcom/moji/mjad/view/IAbstractMask;

    .line 41
    sget v0, Lcom/moji/mjad/R$id;->tv_moji_ad_title_livecomment: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/AdStyleLiveCommentEvelenCreater;->r:Landroid/widget/TextView;

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

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

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->t:Landroid/widget/TextView;

    return-void
.end method

.method public a(Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)V
    .locals 0

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

    .line 58
    iget-object p2, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->c:Lcom/moji/imageview/CertificateRoundImageView;

    if-eqz p2, :cond_0

    if-eqz p1, :cond_0

    iget-object p2, p1, Lcom/moji/mjad/common/data/AdCommon;->iconInfo:Lcom/moji/mjad/base/data/AdIconInfo;

    if-eqz p2, :cond_0

    iget-object p2, p1, Lcom/moji/mjad/common/data/AdCommon;->iconInfo:Lcom/moji/mjad/base/data/AdIconInfo;

    iget-object p2, p2, Lcom/moji/mjad/base/data/AdIconInfo;->iconUrl:Ljava/lang/String;

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p2

    if-nez p2, :cond_0

    .line 59
    iget-object p2, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->e:Landroid/content/Context;

    invoke-static {p2}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;

    move-result-object p2

    iget-object p1, p1, Lcom/moji/mjad/common/data/AdCommon;->iconInfo:Lcom/moji/mjad/base/data/AdIconInfo;

    iget-object p1, p1, Lcom/moji/mjad/base/data/AdIconInfo;->iconUrl:Ljava/lang/String;

    invoke-virtual {p2, p1}, Lcom/squareup/picasso/Picasso;->a(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;

    move-result-object p1

    sget p2, Lcom/moji/mjad/R$drawable;->img_head_livecomment:I

    invoke-virtual {p1, p2}, Lcom/squareup/picasso/RequestCreator;->a(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object p1

    invoke-virtual {p1}, Lcom/squareup/picasso/RequestCreator;->b()Lcom/squareup/picasso/RequestCreator;

    move-result-object p1

    invoke-virtual {p1}, Lcom/squareup/picasso/RequestCreator;->f()Lcom/squareup/picasso/RequestCreator;

    move-result-object p1

    sget p2, Lcom/moji/mjad/R$drawable;->img_head_livecomment:I

    invoke-virtual {p1, p2}, Lcom/squareup/picasso/RequestCreator;->b(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object p1

    iget-object p2, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->c:Lcom/moji/imageview/CertificateRoundImageView;

    invoke-virtual {p1, p2}, Lcom/squareup/picasso/RequestCreator;->a(Landroid/widget/ImageView;)V

    :cond_0
    return-void
.end method

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

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

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

    move-result-object v0

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

    .line 48
    invoke-virtual {p0}, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->a()I

    move-result v0

    int-to-float v0, v0

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

    invoke-virtual {p0, v1}, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->c(I)F

    move-result v1

    const/high16 v2, 0x40000000    # 2.0f

    mul-float v1, v1, v2

    sub-float/2addr v0, v1

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

    invoke-virtual {p0, v1}, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->c(I)F

    move-result v1

    sub-float/2addr v0, v1

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

    invoke-virtual {p0, v1}, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->c(I)F

    move-result v1

    sub-float/2addr v0, v1

    float-to-int v0, v0

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

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

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

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

    .line 51
    iget-object p2, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->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 52
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleLiveCommentEvelenCreater;->n:Landroid/view/View;

    return-object p1
.end method
