2375 lines
58 KiB
Smali
2375 lines
58 KiB
Smali
.class public Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;
|
|
.super Landroid/widget/RelativeLayout;
|
|
.source "FullBannerPullToFreshContainer.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/pulltorefresh/PullRefresher;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$OnScrollListener;,
|
|
Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$OnContainerFlingListener;,
|
|
Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$Flinger;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static a:Ljava/lang/String;
|
|
|
|
|
|
# instance fields
|
|
.field private A:Z
|
|
|
|
.field b:J
|
|
|
|
.field c:Z
|
|
|
|
.field public d:I
|
|
|
|
.field public e:I
|
|
|
|
.field public f:I
|
|
|
|
.field private g:I
|
|
|
|
.field private h:I
|
|
|
|
.field private i:I
|
|
|
|
.field private j:I
|
|
|
|
.field private k:Landroid/widget/TextView;
|
|
|
|
.field private l:Landroid/view/View;
|
|
|
|
.field private m:F
|
|
|
|
.field private n:I
|
|
|
|
.field private o:Landroid/view/View;
|
|
|
|
.field private p:Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;
|
|
|
|
.field private q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$OnContainerFlingListener;
|
|
|
|
.field private r:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$OnScrollListener;
|
|
|
|
.field private s:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$Flinger;
|
|
|
|
.field private t:Ljava/util/Date;
|
|
|
|
.field private u:Z
|
|
|
|
.field private v:I
|
|
|
|
.field private w:I
|
|
|
|
.field private x:Lcom/moji/pulltorefresh/SunLoadImageView;
|
|
|
|
.field private y:Lcom/moji/pulltorefresh/CloudLoadImageView;
|
|
|
|
.field private z:F
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 4
|
|
|
|
.line 83
|
|
invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 32
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
.line 33
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->h:I
|
|
|
|
.line 34
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->i:I
|
|
|
|
.line 39
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 52
|
|
iput-boolean v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->u:Z
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
.line 53
|
|
iput-wide v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->b:J
|
|
|
|
.line 54
|
|
iput-boolean v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->c:Z
|
|
|
|
.line 55
|
|
sget v2, Lcom/moji/widget/R$string;->loading:I
|
|
|
|
iput v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->v:I
|
|
|
|
.line 56
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->w:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 61
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->z:F
|
|
|
|
.line 62
|
|
iput-boolean v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->A:Z
|
|
|
|
.line 84
|
|
invoke-direct {p0, p1}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 3
|
|
|
|
.line 78
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 32
|
|
iput p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
.line 33
|
|
iput p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->h:I
|
|
|
|
.line 34
|
|
iput p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->i:I
|
|
|
|
.line 39
|
|
iput p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 52
|
|
iput-boolean v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->u:Z
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
.line 53
|
|
iput-wide v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->b:J
|
|
|
|
.line 54
|
|
iput-boolean p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->c:Z
|
|
|
|
.line 55
|
|
sget v1, Lcom/moji/widget/R$string;->loading:I
|
|
|
|
iput v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->v:I
|
|
|
|
.line 56
|
|
iput p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->w:I
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 61
|
|
iput p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->z:F
|
|
|
|
.line 62
|
|
iput-boolean v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->A:Z
|
|
|
|
.line 79
|
|
invoke-direct {p0, p1}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 2
|
|
|
|
.line 73
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 32
|
|
iput p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
.line 33
|
|
iput p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->h:I
|
|
|
|
.line 34
|
|
iput p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->i:I
|
|
|
|
.line 39
|
|
iput p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
const/4 p3, 0x1
|
|
|
|
.line 52
|
|
iput-boolean p3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->u:Z
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 53
|
|
iput-wide v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->b:J
|
|
|
|
.line 54
|
|
iput-boolean p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->c:Z
|
|
|
|
.line 55
|
|
sget v0, Lcom/moji/widget/R$string;->loading:I
|
|
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->v:I
|
|
|
|
.line 56
|
|
iput p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->w:I
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 61
|
|
iput p2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->z:F
|
|
|
|
.line 62
|
|
iput-boolean p3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->A:Z
|
|
|
|
.line 74
|
|
invoke-direct {p0, p1}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;)I
|
|
.locals 0
|
|
|
|
.line 26
|
|
iget p0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;I)I
|
|
.locals 0
|
|
|
|
.line 26
|
|
iput p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private a(Landroid/content/Context;)V
|
|
.locals 5
|
|
|
|
.line 96
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->C()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 97
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/widget/R$dimen;->full_banner_margintop:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result v0
|
|
|
|
float-to-int v0, v0
|
|
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->d()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->d:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 99
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/widget/R$dimen;->full_banner_margintop:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result v0
|
|
|
|
float-to-int v0, v0
|
|
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->d:I
|
|
|
|
.line 101
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/widget/R$dimen;->city_liveview_pic_height:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result v0
|
|
|
|
.line 102
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Lcom/moji/widget/R$dimen;->title_bar_height:I
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result v1
|
|
|
|
sub-float/2addr v0, v1
|
|
|
|
iget v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->d:I
|
|
|
|
.line 103
|
|
invoke-static {v1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
sub-float/2addr v0, v1
|
|
|
|
float-to-int v0, v0
|
|
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->e:I
|
|
|
|
.line 104
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/widget/R$dimen;->city_liveview_pic_height:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result v0
|
|
|
|
.line 105
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Lcom/moji/widget/R$dimen;->title_bar_height:I
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result v1
|
|
|
|
sub-float/2addr v0, v1
|
|
|
|
iget v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->d:I
|
|
|
|
.line 106
|
|
invoke-static {v1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
const v2, 0x3e4ccccc # 0.19999999f
|
|
|
|
mul-float v1, v1, v2
|
|
|
|
sub-float/2addr v0, v1
|
|
|
|
float-to-int v0, v0
|
|
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->f:I
|
|
|
|
.line 108
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->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
|
|
|
|
sget v1, Lcom/moji/widget/R$layout;->top_refresh_header:I
|
|
|
|
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/pulltorefresh/FullBannerPullToFreshContainer;->l:Landroid/view/View;
|
|
|
|
.line 109
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->l:Landroid/view/View;
|
|
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->f()F
|
|
|
|
move-result v1
|
|
|
|
const/high16 v2, 0x40a00000 # 5.0f
|
|
|
|
mul-float v1, v1, v2
|
|
|
|
float-to-int v1, v1
|
|
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->f()F
|
|
|
|
move-result v3
|
|
|
|
mul-float v3, v3, v2
|
|
|
|
float-to-int v2, v3
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v0, v3, v1, v3, v2}, Landroid/view/View;->setPadding(IIII)V
|
|
|
|
.line 110
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->l:Landroid/view/View;
|
|
|
|
sget v1, Lcom/moji/widget/R$id;->pull_to_refresh_text:I
|
|
|
|
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/pulltorefresh/FullBannerPullToFreshContainer;->k:Landroid/widget/TextView;
|
|
|
|
.line 111
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->k:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
const v2, 0x106000b
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
.line 113
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->l:Landroid/view/View;
|
|
|
|
sget v1, Lcom/moji/widget/R$id;->pull_to_refresh_sun1:I
|
|
|
|
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/pulltorefresh/FullBannerPullToFreshContainer;->x:Lcom/moji/pulltorefresh/SunLoadImageView;
|
|
|
|
.line 114
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->x:Lcom/moji/pulltorefresh/SunLoadImageView;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/pulltorefresh/SunLoadImageView;->a()V
|
|
|
|
.line 115
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->l:Landroid/view/View;
|
|
|
|
sget v1, Lcom/moji/widget/R$id;->pull_to_refresh_cloud1:I
|
|
|
|
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/pulltorefresh/FullBannerPullToFreshContainer;->y:Lcom/moji/pulltorefresh/CloudLoadImageView;
|
|
|
|
.line 116
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->y:Lcom/moji/pulltorefresh/CloudLoadImageView;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/pulltorefresh/CloudLoadImageView;->a()V
|
|
|
|
.line 118
|
|
iget-boolean v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->u:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 119
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->l:Landroid/view/View;
|
|
|
|
invoke-direct {p0, v0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a(Landroid/view/View;)V
|
|
|
|
.line 120
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->l:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
.line 121
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->C()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 122
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->d()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
:try_start_0
|
|
const-string v1, "com.android.internal.R$dimen"
|
|
|
|
.line 126
|
|
invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
.line 127
|
|
invoke-virtual {v1}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v4, "status_bar_height"
|
|
|
|
.line 128
|
|
invoke-virtual {v1, v4}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
.line 129
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v1
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
move v0, v1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
const-string v2, "PullToFreshContainer"
|
|
|
|
.line 131
|
|
invoke-static {v2, v1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 134
|
|
:cond_1
|
|
:goto_1
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Lcom/moji/widget/R$dimen;->full_banner_margintop:I
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result v1
|
|
|
|
float-to-int v1, v1
|
|
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->d()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->h:I
|
|
|
|
.line 135
|
|
iget v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->h:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
sget v4, Lcom/moji/widget/R$dimen;->title_bar_height:I
|
|
|
|
invoke-virtual {v2, v4}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result v2
|
|
|
|
add-float/2addr v1, v2
|
|
|
|
float-to-int v1, v1
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
iput v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->i:I
|
|
|
|
goto :goto_2
|
|
|
|
.line 137
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/widget/R$dimen;->full_banner_margintop:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result v0
|
|
|
|
float-to-int v0, v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->h:I
|
|
|
|
.line 138
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->h:I
|
|
|
|
int-to-float v0, v0
|
|
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Lcom/moji/widget/R$dimen;->title_bar_height:I
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result v1
|
|
|
|
add-float/2addr v0, v1
|
|
|
|
float-to-int v0, v0
|
|
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->i:I
|
|
|
|
.line 141
|
|
:goto_2
|
|
iput-boolean v3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->u:Z
|
|
|
|
.line 143
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->l:Landroid/view/View;
|
|
|
|
new-instance v1, Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
const/4 v2, -0x1
|
|
|
|
const/4 v4, -0x2
|
|
|
|
invoke-direct {v1, v2, v4}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
|
|
|
|
invoke-virtual {p0, v0, v3, v1}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 144
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->l:Landroid/view/View;
|
|
|
|
const-string v1, "mRefreshView"
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
.line 145
|
|
new-instance v0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$Flinger;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$Flinger;-><init>(Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->s:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$Flinger;
|
|
|
|
.line 146
|
|
invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;
|
|
|
|
move-result-object p1
|
|
|
|
.line 147
|
|
invoke-virtual {p1}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->w:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/view/View;)V
|
|
.locals 3
|
|
|
|
.line 178
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 180
|
|
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 183
|
|
: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 184
|
|
iget v0, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
const/high16 v2, 0x40000000 # 2.0f
|
|
|
|
.line 187
|
|
invoke-static {v0, v2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
.line 189
|
|
:cond_1
|
|
invoke-static {v2, v2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v0
|
|
|
|
.line 191
|
|
:goto_0
|
|
invoke-virtual {p1, v1, v0}, Landroid/view/View;->measure(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
.line 579
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->p:Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 580
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->p:Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;
|
|
|
|
invoke-interface {v0}, Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;->b()V
|
|
|
|
.line 581
|
|
:cond_0
|
|
invoke-direct {p0, p1}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->setUpdateDate(Ljava/lang/String;)V
|
|
|
|
.line 582
|
|
invoke-direct {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->f()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 583
|
|
iput p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;)Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$OnContainerFlingListener;
|
|
.locals 0
|
|
|
|
.line 26
|
|
iget-object p0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$OnContainerFlingListener;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private b(Landroid/view/View;)Z
|
|
.locals 7
|
|
|
|
.line 429
|
|
instance-of v0, p1, Landroid/view/ViewGroup;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 430
|
|
check-cast p1, Landroid/view/ViewGroup;
|
|
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v0, :cond_4
|
|
|
|
.line 432
|
|
invoke-virtual {p1, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
.line 433
|
|
invoke-virtual {v4}, Landroid/view/View;->getScrollY()I
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
return v2
|
|
|
|
.line 438
|
|
:cond_0
|
|
instance-of v5, v4, Landroid/widget/AdapterView;
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
.line 439
|
|
move-object v5, v4
|
|
|
|
check-cast v5, Landroid/widget/AdapterView;
|
|
|
|
.line 440
|
|
invoke-virtual {v5}, Landroid/widget/AdapterView;->getFirstVisiblePosition()I
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
return v2
|
|
|
|
.line 445
|
|
:cond_1
|
|
invoke-virtual {v5}, Landroid/widget/AdapterView;->getChildCount()I
|
|
|
|
move-result v6
|
|
|
|
if-lez v6, :cond_2
|
|
|
|
.line 446
|
|
invoke-virtual {v5, v2}, Landroid/widget/AdapterView;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
return v2
|
|
|
|
.line 453
|
|
:cond_2
|
|
invoke-direct {p0, v4}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->b(Landroid/view/View;)Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_3
|
|
|
|
return v2
|
|
|
|
:cond_3
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
return v1
|
|
|
|
.line 458
|
|
:cond_5
|
|
invoke-virtual {p1}, Landroid/view/View;->getScrollY()I
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
const/4 v1, 0x0
|
|
|
|
:goto_1
|
|
return v1
|
|
.end method
|
|
|
|
.method private e()V
|
|
.locals 3
|
|
|
|
.line 594
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->s:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$Flinger;
|
|
|
|
iget v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
iget v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
const/16 v2, 0x258
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$Flinger;->a(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private f()V
|
|
.locals 3
|
|
|
|
.line 598
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->s:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$Flinger;
|
|
|
|
iget v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
const/16 v2, 0x258
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$Flinger;->a(II)V
|
|
|
|
.line 599
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->o:Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 600
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->o:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->clearAnimation()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private getProgressView()Landroid/view/View;
|
|
.locals 2
|
|
|
|
.line 318
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->t:Ljava/util/Date;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 319
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->t:Ljava/util/Date;
|
|
|
|
invoke-static {v0}, Lcom/moji/tool/DateFormatTool;->a(Ljava/util/Date;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 320
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->t: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/pulltorefresh/FullBannerPullToFreshContainer;->a:Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
.line 322
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->t: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/pulltorefresh/FullBannerPullToFreshContainer;->a:Ljava/lang/String;
|
|
|
|
.line 324
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->x:Lcom/moji/pulltorefresh/SunLoadImageView;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/pulltorefresh/SunLoadImageView;->setVisibility(I)V
|
|
|
|
.line 325
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->y:Lcom/moji/pulltorefresh/CloudLoadImageView;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/pulltorefresh/CloudLoadImageView;->setVisibility(I)V
|
|
|
|
.line 326
|
|
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 332
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->x:Lcom/moji/pulltorefresh/SunLoadImageView;
|
|
|
|
return-object v0
|
|
|
|
.line 330
|
|
:pswitch_0
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->y:Lcom/moji/pulltorefresh/CloudLoadImageView;
|
|
|
|
return-object v0
|
|
|
|
.line 328
|
|
:pswitch_1
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->x: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 590
|
|
:cond_0
|
|
sput-object p1, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 7
|
|
|
|
.line 225
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->r:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$OnScrollListener;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 226
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->r:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$OnScrollListener;
|
|
|
|
iget v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
invoke-interface {v0, v1}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$OnScrollListener;->a(I)V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move-object v2, v0
|
|
|
|
move-object v3, v2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 230
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildCount()I
|
|
|
|
move-result v4
|
|
|
|
if-ge v0, v4, :cond_2
|
|
|
|
.line 231
|
|
invoke-virtual {p0, v0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
const-string v4, "mRefreshView"
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Landroid/view/View;->getTag()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
.line 232
|
|
invoke-virtual {p0, v0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_1
|
|
|
|
.line 234
|
|
:cond_1
|
|
invoke-virtual {p0, v0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
:goto_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
if-nez v2, :cond_3
|
|
|
|
return-void
|
|
|
|
.line 243
|
|
:cond_3
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
const/16 v4, 0x8
|
|
|
|
const/4 v5, 0x1
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
goto/16 :goto_3
|
|
|
|
.line 264
|
|
:pswitch_0
|
|
invoke-virtual {v2, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 265
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->o:Landroid/view/View;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 267
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->k:Landroid/widget/TextView;
|
|
|
|
iget v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->v:I
|
|
|
|
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
.line 268
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a(FZ)V
|
|
|
|
goto :goto_3
|
|
|
|
.line 246
|
|
:pswitch_1
|
|
invoke-virtual {v2, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 247
|
|
iget-boolean v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->A:Z
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 248
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
if-ne v0, v5, :cond_5
|
|
|
|
.line 249
|
|
sget-object v0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a:Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 250
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->k:Landroid/widget/TextView;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
sget v6, Lcom/moji/widget/R$string;->updated:I
|
|
|
|
invoke-virtual {v2, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
sget-object v2, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 252
|
|
:cond_4
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->k:Landroid/widget/TextView;
|
|
|
|
sget v1, Lcom/moji/widget/R$string;->refresh_pull_down:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 254
|
|
:cond_5
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->k:Landroid/widget/TextView;
|
|
|
|
sget v1, Lcom/moji/widget/R$string;->life_release_refresh:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
.line 257
|
|
:cond_6
|
|
:goto_2
|
|
iget-boolean v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->A:Z
|
|
|
|
if-nez v0, :cond_7
|
|
|
|
.line 258
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->x:Lcom/moji/pulltorefresh/SunLoadImageView;
|
|
|
|
invoke-virtual {v0, v4}, Lcom/moji/pulltorefresh/SunLoadImageView;->setVisibility(I)V
|
|
|
|
.line 259
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->y:Lcom/moji/pulltorefresh/CloudLoadImageView;
|
|
|
|
invoke-virtual {v0, v4}, Lcom/moji/pulltorefresh/CloudLoadImageView;->setVisibility(I)V
|
|
|
|
.line 261
|
|
:cond_7
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
int-to-float v0, v0
|
|
|
|
iget v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
div-float/2addr v0, v1
|
|
|
|
invoke-virtual {p0, v0, v5}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a(FZ)V
|
|
|
|
goto :goto_3
|
|
|
|
.line 271
|
|
:pswitch_2
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
if-nez v0, :cond_8
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_8
|
|
|
|
.line 272
|
|
invoke-virtual {v2, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 273
|
|
invoke-virtual {p0, v0, v5}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a(FZ)V
|
|
|
|
.line 278
|
|
:cond_8
|
|
:goto_3
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
if-eqz v3, :cond_a
|
|
|
|
.line 280
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n: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_4
|
|
|
|
:cond_9
|
|
if-eqz v3, :cond_a
|
|
|
|
.line 284
|
|
invoke-virtual {v3}, Landroid/view/View;->requestLayout()V
|
|
|
|
.line 287
|
|
:cond_a
|
|
:goto_4
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->invalidate()V
|
|
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public a(FZ)V
|
|
.locals 3
|
|
|
|
.line 291
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->z:F
|
|
|
|
cmpl-float v0, v0, p1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
.line 293
|
|
invoke-static {p1, v0}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result p1
|
|
|
|
.line 294
|
|
iput p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->z:F
|
|
|
|
const/high16 v0, 0x437f0000 # 255.0f
|
|
|
|
mul-float v0, v0, p1
|
|
|
|
float-to-int v0, v0
|
|
|
|
.line 296
|
|
iget-object v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->k:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 297
|
|
iget-object v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->k:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v0}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V
|
|
|
|
.line 299
|
|
:cond_1
|
|
iget-object v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->k:Landroid/widget/TextView;
|
|
|
|
iget-object v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->k:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v2}, Landroid/widget/TextView;->getTextColors()Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v0}, Landroid/content/res/ColorStateList;->withAlpha(I)Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 304
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->x:Lcom/moji/pulltorefresh/SunLoadImageView;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 305
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->x:Lcom/moji/pulltorefresh/SunLoadImageView;
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/moji/pulltorefresh/SunLoadImageView;->a(FZ)V
|
|
|
|
.line 307
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->y:Lcom/moji/pulltorefresh/CloudLoadImageView;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 308
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->y:Lcom/moji/pulltorefresh/CloudLoadImageView;
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/moji/pulltorefresh/CloudLoadImageView;->a(FZ)V
|
|
|
|
:cond_3
|
|
const/4 p2, 0x0
|
|
|
|
cmpl-float p1, p1, p2
|
|
|
|
if-nez p1, :cond_4
|
|
|
|
.line 311
|
|
iget-object p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->l:Landroid/view/View;
|
|
|
|
const/16 p2, 0x8
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 312
|
|
:cond_4
|
|
iget p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 313
|
|
iget-object p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->l:Landroid/view/View;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_5
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public addView(Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
.line 159
|
|
invoke-super {p0, p1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public addView(Landroid/view/View;I)V
|
|
.locals 0
|
|
|
|
.line 164
|
|
invoke-super {p0, p1, p2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
|
|
.locals 0
|
|
|
|
.line 174
|
|
invoke-super {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;->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 169
|
|
invoke-super {p0, p1, p2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 2
|
|
|
|
.line 607
|
|
new-instance v0, Ljava/util/Date;
|
|
|
|
invoke-direct {v0}, Ljava/util/Date;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->t:Ljava/util/Date;
|
|
|
|
.line 609
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->t: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
|
|
|
|
invoke-direct {p0, v0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()V
|
|
.locals 1
|
|
|
|
.line 624
|
|
invoke-direct {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getProgressView()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->o:Landroid/view/View;
|
|
|
|
const/4 v0, 0x3
|
|
|
|
.line 625
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
.line 626
|
|
invoke-direct {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->e()V
|
|
|
|
.line 627
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->d()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()V
|
|
.locals 2
|
|
|
|
.line 659
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->o:Landroid/view/View;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V
|
|
|
|
.line 660
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->p:Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 661
|
|
iget-object v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->p:Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;
|
|
|
|
invoke-interface {v0}, Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;->a()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public getHeadViewHeight()I
|
|
.locals 1
|
|
|
|
.line 88
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 7
|
|
|
|
.line 466
|
|
iget-boolean v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->c:Z
|
|
|
|
if-nez v0, :cond_c
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move-object v2, v0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 468
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildCount()I
|
|
|
|
move-result v3
|
|
|
|
if-ge v0, v3, :cond_1
|
|
|
|
.line 469
|
|
invoke-virtual {p0, v0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
const-string v3, "mRefreshView"
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getTag()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 471
|
|
:cond_0
|
|
invoke-virtual {p0, v0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-nez v2, :cond_2
|
|
|
|
return v1
|
|
|
|
.line 478
|
|
:cond_2
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
move-result v0
|
|
|
|
.line 479
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
move-result p1
|
|
|
|
const/4 v3, 0x3
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
.line 482
|
|
iget v4, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
if-eq v4, v3, :cond_3
|
|
|
|
.line 483
|
|
invoke-direct {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getProgressView()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->o:Landroid/view/View;
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_3
|
|
const/4 v4, 0x2
|
|
|
|
if-ne p1, v4, :cond_b
|
|
|
|
.line 485
|
|
iget p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->m:F
|
|
|
|
sub-float p1, v0, p1
|
|
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result p1
|
|
|
|
float-to-int p1, p1
|
|
|
|
.line 486
|
|
iget v5, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->w:I
|
|
|
|
if-ge p1, v5, :cond_4
|
|
|
|
return v1
|
|
|
|
.line 490
|
|
:cond_4
|
|
invoke-virtual {v2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result p1
|
|
|
|
int-to-float p1, p1
|
|
|
|
.line 491
|
|
iget v5, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->m:F
|
|
|
|
sub-float v5, v0, v5
|
|
|
|
.line 492
|
|
iget v6, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
if-ne v6, v3, :cond_5
|
|
|
|
return v1
|
|
|
|
.line 499
|
|
:cond_5
|
|
iget v3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
if-nez v3, :cond_9
|
|
|
|
.line 500
|
|
invoke-virtual {v2}, Landroid/view/View;->getScrollY()I
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
return v1
|
|
|
|
.line 505
|
|
:cond_6
|
|
instance-of v3, v2, Landroid/widget/AdapterView;
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
.line 506
|
|
move-object v3, v2
|
|
|
|
check-cast v3, Landroid/widget/AdapterView;
|
|
|
|
.line 507
|
|
invoke-virtual {v3}, Landroid/widget/AdapterView;->getFirstVisiblePosition()I
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_7
|
|
|
|
return v1
|
|
|
|
.line 512
|
|
:cond_7
|
|
invoke-virtual {v3}, Landroid/widget/AdapterView;->getChildCount()I
|
|
|
|
move-result v6
|
|
|
|
if-lez v6, :cond_8
|
|
|
|
.line 513
|
|
invoke-virtual {v3, v1}, Landroid/widget/AdapterView;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
return v1
|
|
|
|
.line 519
|
|
:cond_8
|
|
invoke-direct {p0, v2}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->b(Landroid/view/View;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_9
|
|
|
|
return v1
|
|
|
|
:cond_9
|
|
const v2, 0x3fd9999a # 1.7f
|
|
|
|
div-float/2addr v5, v2
|
|
|
|
add-float/2addr p1, v5
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
cmpl-float v2, p1, v2
|
|
|
|
if-lez v2, :cond_a
|
|
|
|
.line 524
|
|
iget v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
int-to-float v2, v2
|
|
|
|
cmpg-float v2, p1, v2
|
|
|
|
if-gez v2, :cond_a
|
|
|
|
.line 525
|
|
iget-object v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->o:Landroid/view/View;
|
|
|
|
invoke-virtual {v2, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 527
|
|
iput v3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
.line 528
|
|
iput-boolean v3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->c:Z
|
|
|
|
float-to-int p1, p1
|
|
|
|
.line 529
|
|
iput p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
.line 530
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a()V
|
|
|
|
goto :goto_2
|
|
|
|
.line 531
|
|
:cond_a
|
|
iget v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
int-to-float v2, v2
|
|
|
|
cmpl-float v2, p1, v2
|
|
|
|
if-lez v2, :cond_b
|
|
|
|
.line 532
|
|
iget-object v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->o:Landroid/view/View;
|
|
|
|
invoke-virtual {v2, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 534
|
|
iput v4, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
.line 535
|
|
iput-boolean v3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->c:Z
|
|
|
|
float-to-int p1, p1
|
|
|
|
.line 536
|
|
iput p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
.line 537
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a()V
|
|
|
|
.line 540
|
|
:cond_b
|
|
:goto_2
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->m:F
|
|
|
|
.line 542
|
|
:cond_c
|
|
iget-boolean p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->c:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method protected onLayout(ZIIII)V
|
|
.locals 4
|
|
|
|
.line 199
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getMeasuredWidth()I
|
|
|
|
move-result p1
|
|
|
|
.line 200
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getMeasuredHeight()I
|
|
|
|
move-result p2
|
|
|
|
.line 202
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildCount()I
|
|
|
|
move-result p3
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 p4, 0x0
|
|
|
|
const/4 p5, 0x0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-ge p5, p3, :cond_3
|
|
|
|
.line 209
|
|
invoke-virtual {p0, p5}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const-string v2, "mRefreshView"
|
|
|
|
.line 212
|
|
invoke-virtual {v1}, Landroid/view/View;->getTag()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 213
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->i:I
|
|
|
|
iget v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->i:I
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
invoke-virtual {v1, p4, v0, p1, v2}, Landroid/view/View;->layout(IIII)V
|
|
|
|
move v0, p5
|
|
|
|
goto :goto_1
|
|
|
|
.line 216
|
|
:cond_1
|
|
iget v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
iget v3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
add-int/2addr v3, p2
|
|
|
|
invoke-virtual {v1, p4, v2, p1, v3}, Landroid/view/View;->layout(IIII)V
|
|
|
|
:cond_2
|
|
:goto_1
|
|
add-int/lit8 p5, p5, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
if-nez v0, :cond_4
|
|
|
|
.line 221
|
|
invoke-virtual {p0, v0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->bringChildToFront(Landroid/view/View;)V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 7
|
|
|
|
.line 338
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move-object v3, v2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 340
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildCount()I
|
|
|
|
move-result v4
|
|
|
|
if-ge v2, v4, :cond_1
|
|
|
|
.line 341
|
|
invoke-virtual {p0, v2}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
const-string v4, "mRefreshView"
|
|
|
|
invoke-virtual {p0, v2}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Landroid/view/View;->getTag()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 343
|
|
:cond_0
|
|
invoke-virtual {p0, v2}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
:goto_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 346
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
move-result p1
|
|
|
|
if-nez v3, :cond_2
|
|
|
|
return v1
|
|
|
|
:cond_2
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v4, 0x3
|
|
|
|
const/4 v5, 0x1
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
goto/16 :goto_5
|
|
|
|
.line 413
|
|
:pswitch_0
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
if-ne v0, v4, :cond_3
|
|
|
|
.line 414
|
|
invoke-direct {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->e()V
|
|
|
|
goto :goto_2
|
|
|
|
.line 416
|
|
:cond_3
|
|
invoke-direct {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->f()V
|
|
|
|
.line 417
|
|
iput v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
.line 419
|
|
:goto_2
|
|
iput-boolean v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->c:Z
|
|
|
|
goto/16 :goto_5
|
|
|
|
.line 360
|
|
:pswitch_1
|
|
invoke-virtual {v3}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
.line 361
|
|
iget v3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->m:F
|
|
|
|
sub-float v3, p1, v3
|
|
|
|
const/high16 v6, 0x40200000 # 2.5f
|
|
|
|
div-float/2addr v3, v6
|
|
|
|
add-float/2addr v0, v3
|
|
|
|
float-to-int v0, v0
|
|
|
|
.line 364
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
.line 365
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
iget v3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->h:I
|
|
|
|
invoke-static {v0, v3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
.line 368
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
if-eq v0, v4, :cond_6
|
|
|
|
.line 369
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
if-lez v0, :cond_4
|
|
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
iget v3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
if-ge v0, v3, :cond_4
|
|
|
|
.line 371
|
|
iput v5, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
goto :goto_3
|
|
|
|
.line 372
|
|
:cond_4
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
iget v3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
if-lt v0, v3, :cond_5
|
|
|
|
.line 374
|
|
iput v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
goto :goto_3
|
|
|
|
.line 376
|
|
:cond_5
|
|
iput v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
.line 377
|
|
iput v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
goto :goto_3
|
|
|
|
.line 380
|
|
:cond_6
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
if-ne v0, v4, :cond_9
|
|
|
|
.line 381
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
if-lez v0, :cond_7
|
|
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
iget v3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
if-ge v0, v3, :cond_7
|
|
|
|
.line 383
|
|
iput v5, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
goto :goto_3
|
|
|
|
.line 384
|
|
:cond_7
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
iget v3, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
if-le v0, v3, :cond_8
|
|
|
|
.line 386
|
|
iput v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
goto :goto_3
|
|
|
|
.line 387
|
|
:cond_8
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
iget v2, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
if-eq v0, v2, :cond_9
|
|
|
|
.line 388
|
|
iput v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->n:I
|
|
|
|
.line 389
|
|
iput v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
.line 393
|
|
:cond_9
|
|
:goto_3
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a()V
|
|
|
|
goto :goto_5
|
|
|
|
.line 396
|
|
:pswitch_2
|
|
invoke-virtual {v3}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_a
|
|
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
if-ne v0, v2, :cond_a
|
|
|
|
.line 397
|
|
iput v4, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
.line 398
|
|
invoke-direct {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->e()V
|
|
|
|
.line 399
|
|
invoke-virtual {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->d()V
|
|
|
|
goto :goto_4
|
|
|
|
.line 400
|
|
:cond_a
|
|
iget v0, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
if-ne v0, v4, :cond_b
|
|
|
|
goto :goto_4
|
|
|
|
.line 407
|
|
:cond_b
|
|
invoke-direct {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->f()V
|
|
|
|
.line 408
|
|
iput v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->j:I
|
|
|
|
.line 410
|
|
:goto_4
|
|
iput-boolean v1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->c:Z
|
|
|
|
goto :goto_5
|
|
|
|
.line 355
|
|
:pswitch_3
|
|
invoke-direct {p0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getProgressView()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->o:Landroid/view/View;
|
|
|
|
.line 356
|
|
iget-object p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->o:Landroid/view/View;
|
|
|
|
invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 357
|
|
iput-boolean v5, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->c:Z
|
|
|
|
return v5
|
|
|
|
.line 423
|
|
:goto_5
|
|
iput p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->m:F
|
|
|
|
return v5
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public setHeadViewHeight(I)V
|
|
.locals 0
|
|
|
|
.line 92
|
|
iput p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->g:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnFlingListener(Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$OnContainerFlingListener;)V
|
|
.locals 0
|
|
|
|
.line 651
|
|
iput-object p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$OnContainerFlingListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnRefreshListener(Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;)V
|
|
.locals 0
|
|
|
|
.line 647
|
|
iput-object p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->p:Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnScrollListener(Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$OnScrollListener;)V
|
|
.locals 0
|
|
|
|
.line 655
|
|
iput-object p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->r:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer$OnScrollListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRefreshTextID(I)V
|
|
.locals 0
|
|
|
|
.line 69
|
|
iput p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->v:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRefreshViewTop(I)V
|
|
.locals 0
|
|
|
|
.line 154
|
|
iput p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->i:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShowHeaderText(Z)V
|
|
.locals 0
|
|
|
|
.line 666
|
|
iput-boolean p1, p0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->A:Z
|
|
|
|
return-void
|
|
.end method
|