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


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

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

    return-void
.end method


# virtual methods
.method protected a(Landroid/view/View;)V
    .locals 4

    .line 22
    invoke-super {p0, p1}, Lcom/moji/mjad/common/view/creater/style/AbsFeedGDTVideoCreater;->a(Landroid/view/View;)V

    .line 23
    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 p1

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

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

    .line 24
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/style/AdFeedArticleMiddleGDTVideoCreater;->E:Landroid/view/View;

    const/16 v0, 0x8

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

    .line 25
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/style/AdFeedArticleMiddleGDTVideoCreater;->F:Landroid/view/View;

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

    .line 26
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/style/AdFeedArticleMiddleGDTVideoCreater;->u:Landroid/widget/ImageView;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 27
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/style/AdFeedArticleMiddleGDTVideoCreater;->u:Landroid/widget/ImageView;

    sget v1, Lcom/moji/mjad/R$drawable;->icon_ad_close_white:I

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 28
    iget-object p1, p0, Lcom/moji/mjad/common/view/creater/style/AdFeedArticleMiddleGDTVideoCreater;->D:Landroid/widget/LinearLayout;

    sget v1, Lcom/moji/mjad/R$drawable;->ad_rectangle_bg:I

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 29
    new-instance p1, Landroid/widget/RelativeLayout$LayoutParams;

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

    move-result v1

    int-to-float v1, v1

    sget v2, Lcom/moji/mjad/R$dimen;->_15dp:I

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

    move-result v2

    const/high16 v3, 0x40000000    # 2.0f

    mul-float v2, v2, v3

    sub-float/2addr v1, v2

    float-to-int v1, v1

    const/4 v2, -0x2

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

    .line 30
    sget v1, Lcom/moji/mjad/R$dimen;->_15dp:I

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

    move-result v1

    float-to-int v1, v1

    sget v2, Lcom/moji/mjad/R$dimen;->_15dp:I

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

    move-result v2

    float-to-int v2, v2

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

    .line 31
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdFeedArticleMiddleGDTVideoCreater;->D:Landroid/widget/LinearLayout;

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

    return-void
.end method
