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


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

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

    return-void
.end method

.method static synthetic a(Lcom/moji/mjad/common/view/creater/style/AdStyleOneCreater;Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)V
    .locals 0

    .line 24
    invoke-super {p0, p1, p2}, Lcom/moji/mjad/common/view/creater/AbsAdImageViewCreater;->a(Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)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/AdStyleOneCreater;->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 36
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleOneCreater;->n:Landroid/view/View;

    sget v1, Lcom/moji/mjad/R$id;->iv_moji_ad_icon:I

    invoke-virtual {v0, v1}, 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/AdStyleOneCreater;->o:Lcom/moji/mjad/view/AdTagView;

    .line 37
    iget-object v0, p0, Lcom/moji/mjad/common/view/creater/style/AdStyleOneCreater;->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 38
    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/AdStyleOneCreater;->p:Landroid/widget/ImageView;

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

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

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

    return-void
.end method

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

    if-eqz p1, :cond_1

    .line 56
    iget-object v0, p1, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    sget-object v1, Lcom/moji/mjad/enumdata/MojiAdPosition;->POS_BELOW_CITY_SELECTION:Lcom/moji/mjad/enumdata/MojiAdPosition;

    if-ne v0, v1, :cond_1

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

    invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 58
    instance-of v1, v0, Landroid/view/ViewGroup;

    if-eqz v1, :cond_0

    move-object v1, v0

    check-cast v1, Landroid/view/ViewGroup;

    .line 59
    invoke-virtual {v1}, Landroid/view/ViewGroup;->getVisibility()I

    move-result v2

    if-nez v2, :cond_0

    .line 60
    new-instance v2, Landroid/view/animation/AlphaAnimation;

    const/high16 v3, 0x3f800000    # 1.0f

    const/4 v4, 0x0

    invoke-direct {v2, v3, v4}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V

    const-wide/16 v3, 0x12c

    .line 61
    invoke-virtual {v2, v3, v4}, Landroid/view/animation/AlphaAnimation;->setDuration(J)V

    const/4 v3, 0x1

    .line 62
    invoke-virtual {v2, v3}, Landroid/view/animation/AlphaAnimation;->setFillAfter(Z)V

    .line 64
    new-instance v3, Lcom/moji/mjad/common/view/creater/style/AdStyleOneCreater$1;

    invoke-direct {v3, p0, v0, p1, p2}, Lcom/moji/mjad/common/view/creater/style/AdStyleOneCreater$1;-><init>(Lcom/moji/mjad/common/view/creater/style/AdStyleOneCreater;Landroid/view/ViewParent;Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)V

    invoke-virtual {v2, v3}, Landroid/view/animation/AlphaAnimation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 81
    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_0

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

    goto :goto_0

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

    :goto_0
    return-void
.end method

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

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

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

    move-result-object v0

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

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

    move-result v0

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

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

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

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

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

    return-object p1
.end method
