.class Lcom/in2wow/sdk/q$a;
.super Landroid/view/View;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/in2wow/sdk/q;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "a"
.end annotation


# instance fields
.field final synthetic a:Lcom/in2wow/sdk/q;

.field private b:Landroid/graphics/Paint;

.field private final c:F

.field private d:I


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

    .line 527
    iput-object p1, p0, Lcom/in2wow/sdk/q$a;->a:Lcom/in2wow/sdk/q;

    .line 528
    invoke-direct {p0, p2}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const/4 p1, 0x0

    .line 523
    iput-object p1, p0, Lcom/in2wow/sdk/q$a;->b:Landroid/graphics/Paint;

    const/high16 p1, 0x42c80000    # 100.0f

    .line 524
    iput p1, p0, Lcom/in2wow/sdk/q$a;->c:F

    const/4 p1, 0x0

    .line 525
    iput p1, p0, Lcom/in2wow/sdk/q$a;->d:I

    .line 529
    new-instance p1, Landroid/graphics/Paint;

    invoke-direct {p1}, Landroid/graphics/Paint;-><init>()V

    iput-object p1, p0, Lcom/in2wow/sdk/q$a;->b:Landroid/graphics/Paint;

    .line 530
    iget-object p1, p0, Lcom/in2wow/sdk/q$a;->b:Landroid/graphics/Paint;

    const-string p2, "#7d7d7d"

    invoke-static {p2}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result p2

    invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setColor(I)V

    .line 531
    iget-object p1, p0, Lcom/in2wow/sdk/q$a;->b:Landroid/graphics/Paint;

    const/4 p2, 0x1

    invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 532
    iget-object p1, p0, Lcom/in2wow/sdk/q$a;->b:Landroid/graphics/Paint;

    sget-object p2, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 0

    .line 536
    iput p1, p0, Lcom/in2wow/sdk/q$a;->d:I

    .line 537
    invoke-virtual {p0}, Lcom/in2wow/sdk/q$a;->invalidate()V

    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 7

    .line 542
    invoke-super {p0, p1}, Landroid/view/View;->onDraw(Landroid/graphics/Canvas;)V

    .line 543
    invoke-virtual {p0}, Lcom/in2wow/sdk/q$a;->getWidth()I

    move-result v0

    int-to-float v0, v0

    iget v1, p0, Lcom/in2wow/sdk/q$a;->d:I

    int-to-float v1, v1

    const/high16 v2, 0x42c80000    # 100.0f

    div-float/2addr v1, v2

    mul-float v0, v0, v1

    float-to-int v0, v0

    int-to-float v4, v0

    .line 544
    invoke-virtual {p0}, Lcom/in2wow/sdk/q$a;->getHeight()I

    move-result v0

    int-to-float v5, v0

    iget-object v6, p0, Lcom/in2wow/sdk/q$a;->b:Landroid/graphics/Paint;

    const/4 v2, 0x0

    const/4 v3, 0x0

    move-object v1, p1

    invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    return-void
.end method
