.class Lcom/moji/mjweather/tabme/TabMeFragment$8;
.super Ljava/lang/Object;
.source "TabMeFragment.java"

# interfaces
.implements Landroid/view/View$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/tabme/TabMeFragment;->c(Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean;)V
.end annotation

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


# instance fields
.field final synthetic a:Landroid/view/View;

.field final synthetic b:[I

.field final synthetic c:Lcom/moji/mjweather/tabme/TabMeFragment;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/tabme/TabMeFragment;Landroid/view/View;[I)V
    .locals 0

    .line 511
    iput-object p1, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->c:Lcom/moji/mjweather/tabme/TabMeFragment;

    iput-object p2, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->a:Landroid/view/View;

    iput-object p3, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->b:[I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 6

    .line 514
    iget-object p1, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->a:Landroid/view/View;

    iget-object v0, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->b:[I

    invoke-virtual {p1, v0}, Landroid/view/View;->getLocationOnScreen([I)V

    .line 515
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result p1

    .line 516
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawY()F

    move-result v0

    .line 518
    iget-object v1, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->a:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getWidth()I

    move-result v1

    .line 519
    iget-object v2, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->a:Landroid/view/View;

    invoke-virtual {v2}, Landroid/view/View;->getHeight()I

    move-result v2

    .line 520
    iget-object v3, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->b:[I

    const/4 v4, 0x0

    aget v3, v3, v4

    add-int/2addr v3, v1

    .line 521
    iget-object v1, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->b:[I

    const/4 v5, 0x1

    aget v1, v1, v5

    add-int/2addr v1, v2

    .line 522
    iget-object v2, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->b:[I

    aget v2, v2, v4

    int-to-float v2, v2

    cmpl-float v2, p1, v2

    if-lez v2, :cond_0

    int-to-float v2, v3

    cmpg-float p1, p1, v2

    if-gez p1, :cond_0

    iget-object p1, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->b:[I

    aget p1, p1, v5

    int-to-float p1, p1

    cmpl-float p1, v0, p1

    if-lez p1, :cond_0

    int-to-float p1, v1

    cmpg-float p1, v0, p1

    if-gez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    .line 525
    :goto_0
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result p2

    if-eqz p1, :cond_1

    if-eq p2, v5, :cond_1

    const/4 p1, 0x3

    if-eq p2, p1, :cond_1

    .line 527
    iget-object p1, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->c:Lcom/moji/mjweather/tabme/TabMeFragment;

    invoke-static {p1}, Lcom/moji/mjweather/tabme/TabMeFragment;->g(Lcom/moji/mjweather/tabme/TabMeFragment;)Landroid/widget/ImageView;

    move-result-object p1

    const p2, 0x3f333333    # 0.7f

    invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setAlpha(F)V

    .line 528
    iget-object p1, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->c:Lcom/moji/mjweather/tabme/TabMeFragment;

    invoke-static {p1}, Lcom/moji/mjweather/tabme/TabMeFragment;->h(Lcom/moji/mjweather/tabme/TabMeFragment;)Landroid/widget/TextView;

    move-result-object p1

    const p2, -0x4ccdcdce

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_1

    .line 530
    :cond_1
    iget-object p1, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->c:Lcom/moji/mjweather/tabme/TabMeFragment;

    invoke-static {p1}, Lcom/moji/mjweather/tabme/TabMeFragment;->g(Lcom/moji/mjweather/tabme/TabMeFragment;)Landroid/widget/ImageView;

    move-result-object p1

    const/high16 p2, 0x3f800000    # 1.0f

    invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setAlpha(F)V

    .line 531
    iget-object p1, p0, Lcom/moji/mjweather/tabme/TabMeFragment$8;->c:Lcom/moji/mjweather/tabme/TabMeFragment;

    invoke-static {p1}, Lcom/moji/mjweather/tabme/TabMeFragment;->h(Lcom/moji/mjweather/tabme/TabMeFragment;)Landroid/widget/TextView;

    move-result-object p1

    const p2, -0xcdcdce

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setTextColor(I)V

    :goto_1
    return v4
.end method
