.class public abstract Lcom/moji/mjad/base/view/BaseAdViewGroup;
.super Landroid/widget/RelativeLayout;
.source "BaseAdViewGroup.java"


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

.field protected b:Lcom/moji/launchserver/AdCommonInterface$AdPosition;


# 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/base/view/BaseAdViewGroup;->a:Landroid/content/Context;

    const/16 p1, 0xd

    .line 23
    invoke-virtual {p0, p1}, Lcom/moji/mjad/base/view/BaseAdViewGroup;->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/base/view/BaseAdViewGroup;->a:Landroid/content/Context;

    .line 29
    invoke-direct {p0, p1, p2}, Lcom/moji/mjad/base/view/BaseAdViewGroup;->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/base/view/BaseAdViewGroup;->a:Landroid/content/Context;

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

    return-void
.end method

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

    const/16 v0, 0xd

    .line 39
    invoke-virtual {p0, v0}, Lcom/moji/mjad/base/view/BaseAdViewGroup;->setGravity(I)V

    const/4 v0, -0x1

    if-eqz p2, :cond_0

    if-eqz p1, :cond_0

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

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

    move-result-object p1

    if-eqz p1, :cond_0

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

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

    move-result p2

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

    move-result-object p2

    iput-object p2, p0, Lcom/moji/mjad/base/view/BaseAdViewGroup;->b:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

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

    :cond_0
    const/4 p1, 0x0

    .line 48
    invoke-virtual {p0, v0, p1}, Lcom/moji/mjad/base/view/BaseAdViewGroup;->a(ILcom/moji/mjad/common/listener/AbsCommonViewVisibleListenerImpl;)V

    return-void
.end method


# virtual methods
.method public a(ILcom/moji/launchserver/AdCommonInterface$AdPosition;Lcom/moji/mjad/common/listener/AbsCommonViewVisibleListenerImpl;)V
    .locals 0

    .line 64
    iput-object p2, p0, Lcom/moji/mjad/base/view/BaseAdViewGroup;->b:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    .line 65
    invoke-virtual {p0, p1, p3}, Lcom/moji/mjad/base/view/BaseAdViewGroup;->a(ILcom/moji/mjad/common/listener/AbsCommonViewVisibleListenerImpl;)V

    return-void
.end method

.method protected abstract a(ILcom/moji/mjad/common/listener/AbsCommonViewVisibleListenerImpl;)V
.end method

.method public a(Lcom/moji/launchserver/AdCommonInterface$AdPosition;)V
    .locals 1

    const/4 v0, 0x0

    .line 52
    invoke-virtual {p0, p1, v0}, Lcom/moji/mjad/base/view/BaseAdViewGroup;->a(Lcom/moji/launchserver/AdCommonInterface$AdPosition;Lcom/moji/mjad/common/listener/AbsCommonViewVisibleListenerImpl;)V

    return-void
.end method

.method public a(Lcom/moji/launchserver/AdCommonInterface$AdPosition;Lcom/moji/mjad/common/listener/AbsCommonViewVisibleListenerImpl;)V
    .locals 0

    .line 56
    iput-object p1, p0, Lcom/moji/mjad/base/view/BaseAdViewGroup;->b:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    const/4 p1, -0x1

    .line 57
    invoke-virtual {p0, p1, p2}, Lcom/moji/mjad/base/view/BaseAdViewGroup;->a(ILcom/moji/mjad/common/listener/AbsCommonViewVisibleListenerImpl;)V

    return-void
.end method
