.class public abstract Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;
.super Landroid/widget/RelativeLayout;
.source "BaseMultiAdViewGroup.java"


# instance fields
.field protected a:Landroid/content/Context;

.field protected b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;


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

    .line 21
    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    .line 22
    iput-object p1, p0, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;->a:Landroid/content/Context;

    const/16 p1, 0xd

    .line 23
    invoke-virtual {p0, p1}, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;->setGravity(I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    .line 27
    invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 28
    iput-object p1, p0, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;->a:Landroid/content/Context;

    .line 29
    invoke-direct {p0, p1, p2}, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 33
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 34
    iput-object p1, p0, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;->a:Landroid/content/Context;

    .line 35
    invoke-direct {p0, p1, p2}, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method private a(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    .line 46
    new-instance v0, Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    invoke-direct {v0}, Lcom/moji/mjad/common/config/AdCommonParamsBuilder;-><init>()V

    iput-object v0, p0, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    const/16 v0, 0xd

    .line 47
    invoke-virtual {p0, v0}, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;->setGravity(I)V

    if-eqz p2, :cond_0

    if-eqz p1, :cond_0

    .line 49
    sget-object v0, Lcom/moji/mjad/R$styleable;->Mj_Ad:[I

    invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 51
    sget p2, Lcom/moji/mjad/R$styleable;->Mj_Ad_position:I

    const/4 v0, -0x1

    invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result p2

    .line 52
    iget-object v0, p0, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    invoke-static {p2}, Lcom/moji/launchserver/AdCommonInterface$AdPosition;->valueOf(I)Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    move-result-object p2

    invoke-virtual {v0, p2}, Lcom/moji/mjad/common/config/AdCommonParamsBuilder;->a(Lcom/moji/launchserver/AdCommonInterface$AdPosition;)Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    .line 53
    invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V

    .line 56
    :cond_0
    iget-object p1, p0, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;->b:Lcom/moji/mjad/common/config/AdCommonParamsBuilder;

    invoke-virtual {p0, p1}, Lcom/moji/mjad/common/view/multi/BaseMultiAdViewGroup;->a(Lcom/moji/mjad/common/config/AdCommonParamsBuilder;)V

    return-void
.end method


# virtual methods
.method protected abstract a(Lcom/moji/mjad/common/config/AdCommonParamsBuilder;)V
.end method
