.class public Lcom/moji/mjweather/tabme/widget/RefreshContainer;
.super Landroid/widget/FrameLayout;
.source "RefreshContainer.java"

# interfaces
.implements Lcom/moji/pulltorefresh/PullRefresher;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjweather/tabme/widget/RefreshContainer$Flinger;
    }
.end annotation


# static fields
.field public static a:Ljava/lang/String;


# instance fields
.field b:J

.field c:Z

.field private d:I

.field private e:I

.field private f:Landroid/widget/TextView;

.field private g:Landroid/view/View;

.field private h:I

.field private i:Landroid/view/View;

.field private j:Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;

.field private k:Lcom/moji/mjweather/tabme/widget/RefreshContainer$Flinger;

.field private l:Z

.field private m:I

.field private n:Ljava/lang/String;

.field private o:I

.field private p:Lcom/moji/pulltorefresh/SunLoadImageView;

.field private q:Lcom/moji/pulltorefresh/CloudLoadImageView;

.field private r:Z

.field private s:Ljava/util/Date;

.field private t:Z


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

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

    const/4 p2, 0x0

    .line 27
    iput p2, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->d:I

    .line 28
    iput p2, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->e:I

    const/4 v0, 0x1

    .line 38
    iput-boolean v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->l:Z

    const-wide/16 v1, 0x0

    .line 39
    iput-wide v1, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->b:J

    .line 40
    iput-boolean p2, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->c:Z

    const v1, 0x7f0e0442

    .line 41
    iput v1, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->m:I

    .line 43
    iput p2, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->o:I

    .line 47
    iput-boolean v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->r:Z

    .line 582
    iput-boolean v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->t:Z

    .line 66
    invoke-direct {p0, p1}, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->a(Landroid/content/Context;)V

    return-void
.end method

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

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

    const/4 p2, 0x0

    .line 27
    iput p2, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->d:I

    .line 28
    iput p2, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->e:I

    const/4 p3, 0x1

    .line 38
    iput-boolean p3, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->l:Z

    const-wide/16 v0, 0x0

    .line 39
    iput-wide v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->b:J

    .line 40
    iput-boolean p2, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->c:Z

    const v0, 0x7f0e0442

    .line 41
    iput v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->m:I

    .line 43
    iput p2, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->o:I

    .line 47
    iput-boolean p3, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->r:Z

    .line 582
    iput-boolean p3, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->t:Z

    .line 61
    invoke-direct {p0, p1}, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->a(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/tabme/widget/RefreshContainer;)I
    .locals 0

    .line 24
    iget p0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->h:I

    return p0
.end method

.method static synthetic a(Lcom/moji/mjweather/tabme/widget/RefreshContainer;I)I
    .locals 0

    .line 24
    iput p1, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->h:I

    return p1
.end method

.method private a(Landroid/content/Context;)V
    .locals 4

    .line 85
    invoke-virtual {p0}, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0b0401

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->g:Landroid/view/View;

    .line 86
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->g:Landroid/view/View;

    const v1, 0x7f09067b

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->f:Landroid/widget/TextView;

    .line 90
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->g:Landroid/view/View;

    const v1, 0x7f090679

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

    move-result-object v0

    check-cast v0, Lcom/moji/pulltorefresh/SunLoadImageView;

    iput-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->p:Lcom/moji/pulltorefresh/SunLoadImageView;

    .line 91
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->g:Landroid/view/View;

    const v1, 0x7f090677

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

    move-result-object v0

    check-cast v0, Lcom/moji/pulltorefresh/CloudLoadImageView;

    iput-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->q:Lcom/moji/pulltorefresh/CloudLoadImageView;

    .line 94
    iget-boolean v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->l:Z

    if-eqz v0, :cond_0

    .line 95
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->g:Landroid/view/View;

    invoke-direct {p0, v0}, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->a(Landroid/view/View;)V

    .line 96
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->g:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getMeasuredHeight()I

    move-result v0

    iput v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->d:I

    const/4 v0, 0x0

    .line 97
    iput-boolean v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->l:Z

    .line 100
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->g:Landroid/view/View;

    new-instance v1, Landroid/view/ViewGroup$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x2

    invoke-direct {v1, v2, v3}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {p0, v0, v1}, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 101
    new-instance v0, Lcom/moji/mjweather/tabme/widget/RefreshContainer$Flinger;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/tabme/widget/RefreshContainer$Flinger;-><init>(Lcom/moji/mjweather/tabme/widget/RefreshContainer;)V

    iput-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->k:Lcom/moji/mjweather/tabme/widget/RefreshContainer$Flinger;

    .line 102
    invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object p1

    .line 103
    invoke-virtual {p1}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result p1

    iput p1, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->o:I

    return-void
.end method

.method private a(Landroid/view/View;)V
    .locals 3

    .line 139
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    if-nez v0, :cond_0

    .line 141
    new-instance v0, Landroid/view/ViewGroup$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    invoke-direct {v0, v1, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    .line 144
    :cond_0
    iget v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    const/4 v2, 0x0

    invoke-static {v2, v2, v1}, Landroid/view/ViewGroup;->getChildMeasureSpec(III)I

    move-result v1

    .line 145
    iget v0, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    if-lez v0, :cond_1

    const/high16 v2, 0x40000000    # 2.0f

    .line 148
    invoke-static {v0, v2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v0

    goto :goto_0

    .line 150
    :cond_1
    invoke-static {v2, v2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v0

    .line 152
    :goto_0
    invoke-virtual {p1, v1, v0}, Landroid/view/View;->measure(II)V

    return-void
.end method

.method private getProgressView()Landroid/view/View;
    .locals 2

    .line 241
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->s:Ljava/util/Date;

    if-eqz v0, :cond_1

    .line 242
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->s:Ljava/util/Date;

    invoke-static {v0}, Lcom/moji/tool/DateFormatTool;->a(Ljava/util/Date;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 243
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->s:Ljava/util/Date;

    const-string v1, "HH:mm"

    invoke-static {v0, v1}, Lcom/moji/tool/DateFormatTool;->a(Ljava/util/Date;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->a:Ljava/lang/String;

    goto :goto_0

    .line 245
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->s:Ljava/util/Date;

    const-string v1, "MM-dd HH:mm"

    invoke-static {v0, v1}, Lcom/moji/tool/DateFormatTool;->a(Ljava/util/Date;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->a:Ljava/lang/String;

    .line 247
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->p:Lcom/moji/pulltorefresh/SunLoadImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/moji/pulltorefresh/SunLoadImageView;->setVisibility(I)V

    .line 248
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->q:Lcom/moji/pulltorefresh/CloudLoadImageView;

    invoke-virtual {v0, v1}, Lcom/moji/pulltorefresh/CloudLoadImageView;->setVisibility(I)V

    .line 249
    new-instance v0, Ljava/util/Random;

    invoke-direct {v0}, Ljava/util/Random;-><init>()V

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Ljava/util/Random;->nextInt(I)I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 255
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->p:Lcom/moji/pulltorefresh/SunLoadImageView;

    return-object v0

    .line 253
    :pswitch_0
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->q:Lcom/moji/pulltorefresh/CloudLoadImageView;

    return-object v0

    .line 251
    :pswitch_1
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->p:Lcom/moji/pulltorefresh/SunLoadImageView;

    return-object v0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method private setUpdateDate(Ljava/lang/String;)V
    .locals 0

    if-nez p1, :cond_0

    return-void

    .line 522
    :cond_0
    sput-object p1, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->a:Ljava/lang/String;

    return-void
.end method


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

    const/4 v0, 0x0

    .line 169
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    const/4 v2, 0x1

    .line 170
    invoke-virtual {p0, v2}, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    if-nez v1, :cond_0

    return-void

    .line 176
    :cond_0
    iget v4, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->e:I

    packed-switch v4, :pswitch_data_0

    goto/16 :goto_1

    .line 208
    :pswitch_0
    invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 209
    iget-object v2, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->i:Landroid/view/View;

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

    .line 211
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->f:Landroid/widget/TextView;

    iget v2, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->m:I

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(I)V

    goto :goto_1

    .line 179
    :pswitch_1
    invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 181
    iget-boolean v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->r:Z

    if-eqz v0, :cond_4

    .line 182
    iget v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->e:I

    if-ne v0, v2, :cond_3

    .line 183
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->n:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 184
    sget-object v0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->a:Ljava/lang/String;

    if-eqz v0, :cond_1

    .line 185
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->f:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

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

    const v4, 0x7f0e09eb

    invoke-static {v4}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v4, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->a:Ljava/lang/String;

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 186
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->f:Landroid/widget/TextView;

    const v2, 0x7f0e06f7

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 188
    :cond_2
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->f:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->n:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 192
    :cond_3
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->f:Landroid/widget/TextView;

    const v2, 0x7f0e0429

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(I)V

    .line 195
    :cond_4
    :goto_0
    iget-boolean v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->r:Z

    if-nez v0, :cond_5

    .line 196
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->p:Lcom/moji/pulltorefresh/SunLoadImageView;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Lcom/moji/pulltorefresh/SunLoadImageView;->setVisibility(I)V

    .line 197
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->q:Lcom/moji/pulltorefresh/CloudLoadImageView;

    invoke-virtual {v0, v2}, Lcom/moji/pulltorefresh/CloudLoadImageView;->setVisibility(I)V

    goto :goto_1

    .line 220
    :pswitch_2
    iget v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->h:I

    if-nez v0, :cond_5

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

    move-result v0

    if-nez v0, :cond_5

    const/4 v0, 0x4

    .line 221
    invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 226
    :cond_5
    :goto_1
    invoke-virtual {v1}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_6

    .line 227
    iget v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->h:I

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

    move-result v2

    sub-int/2addr v0, v2

    iget v2, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->d:I

    sub-int/2addr v0, v2

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

    if-eqz v3, :cond_7

    .line 229
    iget v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->h:I

    invoke-virtual {v3}, Landroid/view/View;->getTop()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-virtual {v3, v0}, Landroid/view/View;->offsetTopAndBottom(I)V

    goto :goto_2

    :cond_6
    if-eqz v3, :cond_7

    .line 233
    invoke-virtual {v3}, Landroid/view/View;->requestLayout()V

    .line 237
    :cond_7
    :goto_2
    invoke-virtual {p0}, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->invalidate()V

    return-void

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_1
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public addView(Landroid/view/View;)V
    .locals 0

    .line 120
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    return-void
.end method

.method public addView(Landroid/view/View;I)V
    .locals 0

    .line 125
    invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;I)V

    return-void
.end method

.method public addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
    .locals 0

    .line 135
    invoke-super {p0, p1, p2, p3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method public addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
    .locals 0

    .line 130
    invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method public getInfoView()Landroid/widget/TextView;
    .locals 1

    .line 111
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->f:Landroid/widget/TextView;

    return-object v0
.end method

.method public getRefreshHeader()Landroid/view/View;
    .locals 1

    .line 107
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->g:Landroid/view/View;

    return-object v0
.end method

.method public getStatus()I
    .locals 1

    .line 557
    iget v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->e:I

    return v0
.end method

.method protected onLayout(ZIIII)V
    .locals 1

    const/4 p1, 0x0

    .line 157
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->getChildAt(I)Landroid/view/View;

    move-result-object p2

    const/4 p3, 0x1

    .line 158
    invoke-virtual {p0, p3}, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->getChildAt(I)Landroid/view/View;

    move-result-object p3

    if-eqz p2, :cond_0

    .line 160
    iget p4, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->d:I

    neg-int p4, p4

    iget p5, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->h:I

    add-int/2addr p4, p5

    invoke-virtual {p0}, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->getMeasuredWidth()I

    move-result p5

    iget v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->h:I

    invoke-virtual {p2, p1, p4, p5, v0}, Landroid/view/View;->layout(IIII)V

    :cond_0
    if-eqz p3, :cond_1

    .line 164
    iget p2, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->h:I

    invoke-virtual {p0}, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->getMeasuredWidth()I

    move-result p4

    invoke-virtual {p0}, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->getMeasuredHeight()I

    move-result p5

    iget v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->h:I

    add-int/2addr p5, v0

    invoke-virtual {p3, p1, p2, p4, p5}, Landroid/view/View;->layout(IIII)V

    :cond_1
    return-void
.end method

.method public setCanScroll(Z)V
    .locals 0

    .line 585
    iput-boolean p1, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->t:Z

    return-void
.end method

.method public setOnRefreshListener(Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;)V
    .locals 0

    .line 567
    iput-object p1, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->j:Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;

    return-void
.end method

.method public setPullToRefreshText(Ljava/lang/String;)V
    .locals 0

    .line 56
    iput-object p1, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->n:Ljava/lang/String;

    return-void
.end method

.method public setRefreshTextID(I)V
    .locals 0

    .line 52
    iput p1, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->m:I

    return-void
.end method

.method public setShowHeaderText(Z)V
    .locals 0

    .line 579
    iput-boolean p1, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->r:Z

    return-void
.end method

.method public setTextColor(I)V
    .locals 1

    .line 81
    iget-object v0, p0, Lcom/moji/mjweather/tabme/widget/RefreshContainer;->f:Landroid/widget/TextView;

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

    return-void
.end method
