.class public Lcom/in2wow/sdk/l/c/f;
.super Landroid/widget/LinearLayout;
.source "SourceFile"


# instance fields
.field private a:I

.field private b:I

.field private c:I

.field private d:[Landroid/widget/ImageView;

.field private e:Lcom/in2wow/sdk/h/a;


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

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

    const/4 p1, 0x0

    .line 9
    iput p1, p0, Lcom/in2wow/sdk/l/c/f;->a:I

    iput p1, p0, Lcom/in2wow/sdk/l/c/f;->b:I

    iput p1, p0, Lcom/in2wow/sdk/l/c/f;->c:I

    const/4 p1, 0x0

    .line 11
    iput-object p1, p0, Lcom/in2wow/sdk/l/c/f;->e:Lcom/in2wow/sdk/h/a;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 4

    const/4 v0, 0x0

    .line 46
    :goto_0
    iget-object v1, p0, Lcom/in2wow/sdk/l/c/f;->d:[Landroid/widget/ImageView;

    array-length v1, v1

    if-lt v0, v1, :cond_0

    return-void

    .line 47
    :cond_0
    iget v1, p0, Lcom/in2wow/sdk/l/c/f;->a:I

    if-ne v0, v1, :cond_1

    .line 48
    iget-object v1, p0, Lcom/in2wow/sdk/l/c/f;->d:[Landroid/widget/ImageView;

    aget-object v1, v1, v0

    iget-object v2, p0, Lcom/in2wow/sdk/l/c/f;->e:Lcom/in2wow/sdk/h/a;

    const-string v3, "page_index_white.png"

    invoke-virtual {v2, v3}, Lcom/in2wow/sdk/h/a;->b(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_1

    .line 51
    :cond_1
    iget-object v1, p0, Lcom/in2wow/sdk/l/c/f;->d:[Landroid/widget/ImageView;

    aget-object v1, v1, v0

    iget-object v2, p0, Lcom/in2wow/sdk/l/c/f;->e:Lcom/in2wow/sdk/h/a;

    const-string v3, "page_index_gray.png"

    invoke-virtual {v2, v3}, Lcom/in2wow/sdk/h/a;->b(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public a(I)V
    .locals 0

    const/4 p1, 0x0

    .line 16
    iput p1, p0, Lcom/in2wow/sdk/l/c/f;->a:I

    .line 17
    invoke-virtual {p0}, Lcom/in2wow/sdk/l/c/f;->a()V

    return-void
.end method

.method public a(ILcom/in2wow/sdk/h/a;Lcom/in2wow/sdk/h/e;)V
    .locals 3

    .line 27
    iput-object p2, p0, Lcom/in2wow/sdk/l/c/f;->e:Lcom/in2wow/sdk/h/a;

    .line 28
    sget-object p2, Lcom/in2wow/sdk/h/e$a;->k:Lcom/in2wow/sdk/h/e$a;

    invoke-virtual {p3, p2}, Lcom/in2wow/sdk/h/e;->a(Lcom/in2wow/sdk/h/e$a;)I

    move-result p2

    iput p2, p0, Lcom/in2wow/sdk/l/c/f;->b:I

    .line 29
    sget-object p2, Lcom/in2wow/sdk/h/e$a;->j:Lcom/in2wow/sdk/h/e$a;

    invoke-virtual {p3, p2}, Lcom/in2wow/sdk/h/e;->a(Lcom/in2wow/sdk/h/e$a;)I

    move-result p2

    iput p2, p0, Lcom/in2wow/sdk/l/c/f;->c:I

    .line 30
    invoke-virtual {p0}, Lcom/in2wow/sdk/l/c/f;->removeAllViews()V

    .line 31
    new-array p2, p1, [Landroid/widget/ImageView;

    iput-object p2, p0, Lcom/in2wow/sdk/l/c/f;->d:[Landroid/widget/ImageView;

    const/4 p2, 0x0

    const/4 p3, 0x0

    :goto_0
    if-lt p3, p1, :cond_0

    return-void

    .line 33
    :cond_0
    iget-object v0, p0, Lcom/in2wow/sdk/l/c/f;->d:[Landroid/widget/ImageView;

    new-instance v1, Landroid/widget/ImageView;

    invoke-virtual {p0}, Lcom/in2wow/sdk/l/c/f;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    aput-object v1, v0, p3

    .line 34
    iget-object v0, p0, Lcom/in2wow/sdk/l/c/f;->d:[Landroid/widget/ImageView;

    aget-object v0, v0, p3

    invoke-virtual {p0, v0}, Lcom/in2wow/sdk/l/c/f;->addView(Landroid/view/View;)V

    .line 35
    iget-object v0, p0, Lcom/in2wow/sdk/l/c/f;->d:[Landroid/widget/ImageView;

    aget-object v0, v0, p3

    invoke-virtual {v0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    iget v1, p0, Lcom/in2wow/sdk/l/c/f;->c:I

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->width:I

    .line 36
    iget-object v0, p0, Lcom/in2wow/sdk/l/c/f;->d:[Landroid/widget/ImageView;

    aget-object v0, v0, p3

    invoke-virtual {v0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    iget v1, p0, Lcom/in2wow/sdk/l/c/f;->c:I

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->height:I

    add-int/lit8 v0, p1, -0x1

    if-ge p3, v0, :cond_1

    .line 38
    iget-object v0, p0, Lcom/in2wow/sdk/l/c/f;->d:[Landroid/widget/ImageView;

    aget-object v0, v0, p3

    invoke-virtual {v0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    iget v1, p0, Lcom/in2wow/sdk/l/c/f;->b:I

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    goto :goto_1

    .line 41
    :cond_1
    iget-object v0, p0, Lcom/in2wow/sdk/l/c/f;->d:[Landroid/widget/ImageView;

    aget-object v0, v0, p3

    invoke-virtual {v0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    iput p2, v0, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    :goto_1
    add-int/lit8 p3, p3, 0x1

    goto :goto_0
.end method

.method public b(I)V
    .locals 0

    .line 20
    iput p1, p0, Lcom/in2wow/sdk/l/c/f;->a:I

    .line 21
    invoke-virtual {p0}, Lcom/in2wow/sdk/l/c/f;->a()V

    return-void
.end method
