3109 lines
85 KiB
Smali
3109 lines
85 KiB
Smali
.class public Landroid/support/v4/widget/SwipeRefreshLayout;
|
|
.super Landroid/view/ViewGroup;
|
|
.source "SwipeRefreshLayout.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/support/v4/view/NestedScrollingChild;
|
|
.implements Landroid/support/v4/view/NestedScrollingParent;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroid/support/v4/widget/SwipeRefreshLayout$OnChildScrollUpCallback;,
|
|
Landroid/support/v4/widget/SwipeRefreshLayout$OnRefreshListener;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final ALPHA_ANIMATION_DURATION:I = 0x12c
|
|
|
|
.field private static final ANIMATE_TO_START_DURATION:I = 0xc8
|
|
|
|
.field private static final ANIMATE_TO_TRIGGER_DURATION:I = 0xc8
|
|
|
|
.field private static final CIRCLE_BG_LIGHT:I = -0x50506
|
|
|
|
.field static final CIRCLE_DIAMETER:I = 0x28
|
|
.annotation build Landroid/support/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field static final CIRCLE_DIAMETER_LARGE:I = 0x38
|
|
.annotation build Landroid/support/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final DECELERATE_INTERPOLATION_FACTOR:F = 2.0f
|
|
|
|
.field public static final DEFAULT:I = 0x1
|
|
|
|
.field private static final DEFAULT_CIRCLE_TARGET:I = 0x40
|
|
|
|
.field private static final DRAG_RATE:F = 0.5f
|
|
|
|
.field private static final INVALID_POINTER:I = -0x1
|
|
|
|
.field public static final LARGE:I = 0x0
|
|
|
|
.field private static final LAYOUT_ATTRS:[I
|
|
|
|
.field private static final LOG_TAG:Ljava/lang/String; = "SwipeRefreshLayout"
|
|
|
|
.field private static final MAX_ALPHA:I = 0xff
|
|
|
|
.field private static final MAX_PROGRESS_ANGLE:F = 0.8f
|
|
|
|
.field private static final SCALE_DOWN_DURATION:I = 0x96
|
|
|
|
.field private static final STARTING_PROGRESS_ALPHA:I = 0x4c
|
|
|
|
|
|
# instance fields
|
|
.field private mActivePointerId:I
|
|
|
|
.field private mAlphaMaxAnimation:Landroid/view/animation/Animation;
|
|
|
|
.field private mAlphaStartAnimation:Landroid/view/animation/Animation;
|
|
|
|
.field private final mAnimateToCorrectPosition:Landroid/view/animation/Animation;
|
|
|
|
.field private final mAnimateToStartPosition:Landroid/view/animation/Animation;
|
|
|
|
.field private mChildScrollUpCallback:Landroid/support/v4/widget/SwipeRefreshLayout$OnChildScrollUpCallback;
|
|
|
|
.field private mCircleDiameter:I
|
|
|
|
.field mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
.field private mCircleViewIndex:I
|
|
|
|
.field mCurrentTargetOffsetTop:I
|
|
|
|
.field private final mDecelerateInterpolator:Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
.field protected mFrom:I
|
|
|
|
.field private mInitialDownY:F
|
|
|
|
.field private mInitialMotionY:F
|
|
|
|
.field private mIsBeingDragged:Z
|
|
|
|
.field mListener:Landroid/support/v4/widget/SwipeRefreshLayout$OnRefreshListener;
|
|
|
|
.field private mMediumAnimationDuration:I
|
|
|
|
.field private mNestedScrollInProgress:Z
|
|
|
|
.field private final mNestedScrollingChildHelper:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
.field private final mNestedScrollingParentHelper:Landroid/support/v4/view/NestedScrollingParentHelper;
|
|
|
|
.field mNotify:Z
|
|
|
|
.field protected mOriginalOffsetTop:I
|
|
|
|
.field private final mParentOffsetInWindow:[I
|
|
|
|
.field private final mParentScrollConsumed:[I
|
|
|
|
.field mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
.field private mRefreshListener:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
.field mRefreshing:Z
|
|
|
|
.field private mReturningToStart:Z
|
|
|
|
.field mScale:Z
|
|
|
|
.field private mScaleAnimation:Landroid/view/animation/Animation;
|
|
|
|
.field private mScaleDownAnimation:Landroid/view/animation/Animation;
|
|
|
|
.field private mScaleDownToStartAnimation:Landroid/view/animation/Animation;
|
|
|
|
.field mSpinnerOffsetEnd:I
|
|
|
|
.field mStartingScale:F
|
|
|
|
.field private mTarget:Landroid/view/View;
|
|
|
|
.field private mTotalDragDistance:F
|
|
|
|
.field private mTotalUnconsumed:F
|
|
|
|
.field private mTouchSlop:I
|
|
|
|
.field mUsingCustomStart:Z
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 135
|
|
new-array v0, v0, [I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const v2, 0x101000e
|
|
|
|
aput v2, v0, v1
|
|
|
|
sput-object v0, Landroid/support/v4/widget/SwipeRefreshLayout;->LAYOUT_ATTRS:[I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroid/support/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 321
|
|
invoke-direct {p0, p1, v0}, Landroid/support/v4/widget/SwipeRefreshLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 4
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroid/support/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 331
|
|
invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 107
|
|
iput-boolean v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshing:Z
|
|
|
|
const/high16 v1, -0x40800000 # -1.0f
|
|
|
|
.line 109
|
|
iput v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalDragDistance:F
|
|
|
|
const/4 v1, 0x2
|
|
|
|
.line 117
|
|
new-array v2, v1, [I
|
|
|
|
iput-object v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mParentScrollConsumed:[I
|
|
|
|
.line 118
|
|
new-array v1, v1, [I
|
|
|
|
iput-object v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mParentOffsetInWindow:[I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
.line 127
|
|
iput v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mActivePointerId:I
|
|
|
|
.line 140
|
|
iput v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleViewIndex:I
|
|
|
|
.line 171
|
|
new-instance v1, Landroid/support/v4/widget/SwipeRefreshLayout$1;
|
|
|
|
invoke-direct {v1, p0}, Landroid/support/v4/widget/SwipeRefreshLayout$1;-><init>(Landroid/support/v4/widget/SwipeRefreshLayout;)V
|
|
|
|
iput-object v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshListener:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
.line 1095
|
|
new-instance v1, Landroid/support/v4/widget/SwipeRefreshLayout$6;
|
|
|
|
invoke-direct {v1, p0}, Landroid/support/v4/widget/SwipeRefreshLayout$6;-><init>(Landroid/support/v4/widget/SwipeRefreshLayout;)V
|
|
|
|
iput-object v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAnimateToCorrectPosition:Landroid/view/animation/Animation;
|
|
|
|
.line 1119
|
|
new-instance v1, Landroid/support/v4/widget/SwipeRefreshLayout$7;
|
|
|
|
invoke-direct {v1, p0}, Landroid/support/v4/widget/SwipeRefreshLayout$7;-><init>(Landroid/support/v4/widget/SwipeRefreshLayout;)V
|
|
|
|
iput-object v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAnimateToStartPosition:Landroid/view/animation/Animation;
|
|
|
|
.line 333
|
|
invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTouchSlop:I
|
|
|
|
.line 335
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
const v2, 0x10e0001
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getInteger(I)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mMediumAnimationDuration:I
|
|
|
|
.line 338
|
|
invoke-virtual {p0, v0}, Landroid/support/v4/widget/SwipeRefreshLayout;->setWillNotDraw(Z)V
|
|
|
|
.line 339
|
|
new-instance v1, Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
const/high16 v2, 0x40000000 # 2.0f
|
|
|
|
invoke-direct {v1, v2}, Landroid/view/animation/DecelerateInterpolator;-><init>(F)V
|
|
|
|
iput-object v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mDecelerateInterpolator:Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
.line 341
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
move-result-object v1
|
|
|
|
.line 342
|
|
iget v2, v1, Landroid/util/DisplayMetrics;->density:F
|
|
|
|
const/high16 v3, 0x42200000 # 40.0f
|
|
|
|
mul-float v2, v2, v3
|
|
|
|
float-to-int v2, v2
|
|
|
|
iput v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleDiameter:I
|
|
|
|
.line 344
|
|
invoke-direct {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->createProgressView()V
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 345
|
|
invoke-virtual {p0, v2}, Landroid/support/v4/widget/SwipeRefreshLayout;->setChildrenDrawingOrderEnabled(Z)V
|
|
|
|
.line 347
|
|
iget v1, v1, Landroid/util/DisplayMetrics;->density:F
|
|
|
|
const/high16 v3, 0x42800000 # 64.0f
|
|
|
|
mul-float v1, v1, v3
|
|
|
|
float-to-int v1, v1
|
|
|
|
iput v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mSpinnerOffsetEnd:I
|
|
|
|
.line 348
|
|
iget v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mSpinnerOffsetEnd:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
iput v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalDragDistance:F
|
|
|
|
.line 349
|
|
new-instance v1, Landroid/support/v4/view/NestedScrollingParentHelper;
|
|
|
|
invoke-direct {v1, p0}, Landroid/support/v4/view/NestedScrollingParentHelper;-><init>(Landroid/view/ViewGroup;)V
|
|
|
|
iput-object v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingParentHelper:Landroid/support/v4/view/NestedScrollingParentHelper;
|
|
|
|
.line 351
|
|
new-instance v1, Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-direct {v1, p0}, Landroid/support/v4/view/NestedScrollingChildHelper;-><init>(Landroid/view/View;)V
|
|
|
|
iput-object v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingChildHelper:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
.line 352
|
|
invoke-virtual {p0, v2}, Landroid/support/v4/widget/SwipeRefreshLayout;->setNestedScrollingEnabled(Z)V
|
|
|
|
.line 354
|
|
iget v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleDiameter:I
|
|
|
|
neg-int v1, v1
|
|
|
|
iput v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCurrentTargetOffsetTop:I
|
|
|
|
iput v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mOriginalOffsetTop:I
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
.line 355
|
|
invoke-virtual {p0, v1}, Landroid/support/v4/widget/SwipeRefreshLayout;->moveToStart(F)V
|
|
|
|
.line 357
|
|
sget-object v1, Landroid/support/v4/widget/SwipeRefreshLayout;->LAYOUT_ATTRS:[I
|
|
|
|
invoke-virtual {p1, p2, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
.line 358
|
|
invoke-virtual {p1, v0, v2}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Landroid/support/v4/widget/SwipeRefreshLayout;->setEnabled(Z)V
|
|
|
|
.line 359
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private animateOffsetToCorrectPosition(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
.locals 2
|
|
|
|
.line 1067
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mFrom:I
|
|
|
|
.line 1068
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAnimateToCorrectPosition:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {p1}, Landroid/view/animation/Animation;->reset()V
|
|
|
|
.line 1069
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAnimateToCorrectPosition:Landroid/view/animation/Animation;
|
|
|
|
const-wide/16 v0, 0xc8
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/view/animation/Animation;->setDuration(J)V
|
|
|
|
.line 1070
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAnimateToCorrectPosition:Landroid/view/animation/Animation;
|
|
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mDecelerateInterpolator:Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 1072
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/support/v4/widget/CircleImageView;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
.line 1074
|
|
:cond_0
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/widget/CircleImageView;->clearAnimation()V
|
|
|
|
.line 1075
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
iget-object p2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAnimateToCorrectPosition:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/support/v4/widget/CircleImageView;->startAnimation(Landroid/view/animation/Animation;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private animateOffsetToStartPosition(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
.locals 2
|
|
|
|
.line 1079
|
|
iget-boolean v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScale:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 1081
|
|
invoke-direct {p0, p1, p2}, Landroid/support/v4/widget/SwipeRefreshLayout;->startScaleDownReturnToStartAnimation(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1083
|
|
:cond_0
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mFrom:I
|
|
|
|
.line 1084
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAnimateToStartPosition:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {p1}, Landroid/view/animation/Animation;->reset()V
|
|
|
|
.line 1085
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAnimateToStartPosition:Landroid/view/animation/Animation;
|
|
|
|
const-wide/16 v0, 0xc8
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/view/animation/Animation;->setDuration(J)V
|
|
|
|
.line 1086
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAnimateToStartPosition:Landroid/view/animation/Animation;
|
|
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mDecelerateInterpolator:Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 1088
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/support/v4/widget/CircleImageView;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
.line 1090
|
|
:cond_1
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/widget/CircleImageView;->clearAnimation()V
|
|
|
|
.line 1091
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
iget-object p2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAnimateToStartPosition:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/support/v4/widget/CircleImageView;->startAnimation(Landroid/view/animation/Animation;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private createProgressView()V
|
|
.locals 3
|
|
|
|
.line 379
|
|
new-instance v0, Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
const v2, -0x50506
|
|
|
|
invoke-direct {v0, v1, v2}, Landroid/support/v4/widget/CircleImageView;-><init>(Landroid/content/Context;I)V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
.line 380
|
|
new-instance v0, Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Landroid/support/v4/widget/CircularProgressDrawable;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
.line 381
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/widget/CircularProgressDrawable;->setStyle(I)V
|
|
|
|
.line 382
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
iget-object v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/widget/CircleImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 383
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/widget/CircleImageView;->setVisibility(I)V
|
|
|
|
.line 384
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p0, v0}, Landroid/support/v4/widget/SwipeRefreshLayout;->addView(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private ensureTarget()V
|
|
.locals 3
|
|
|
|
.line 568
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 569
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
.line 570
|
|
invoke-virtual {p0, v0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
.line 571
|
|
iget-object v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
.line 572
|
|
iput-object v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private finishSpinner(F)V
|
|
.locals 2
|
|
|
|
.line 946
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalDragDistance:F
|
|
|
|
cmpl-float p1, p1, v0
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 947
|
|
invoke-direct {p0, p1, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->setRefreshing(ZZ)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 950
|
|
iput-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshing:Z
|
|
|
|
.line 951
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1, v1}, Landroid/support/v4/widget/CircularProgressDrawable;->setStartEndTrim(FF)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 953
|
|
iget-boolean v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScale:Z
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 954
|
|
new-instance v0, Landroid/support/v4/widget/SwipeRefreshLayout$5;
|
|
|
|
invoke-direct {v0, p0}, Landroid/support/v4/widget/SwipeRefreshLayout$5;-><init>(Landroid/support/v4/widget/SwipeRefreshLayout;)V
|
|
|
|
.line 973
|
|
:cond_1
|
|
iget v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCurrentTargetOffsetTop:I
|
|
|
|
invoke-direct {p0, v1, v0}, Landroid/support/v4/widget/SwipeRefreshLayout;->animateOffsetToStartPosition(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
.line 974
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/widget/CircularProgressDrawable;->setArrowEnabled(Z)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private isAnimationRunning(Landroid/view/animation/Animation;)Z
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 893
|
|
invoke-virtual {p1}, Landroid/view/animation/Animation;->hasStarted()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p1}, Landroid/view/animation/Animation;->hasEnded()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method private moveSpinner(F)V
|
|
.locals 11
|
|
|
|
.line 897
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/widget/CircularProgressDrawable;->setArrowEnabled(Z)V
|
|
|
|
.line 898
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalDragDistance:F
|
|
|
|
div-float v0, p1, v0
|
|
|
|
.line 900
|
|
invoke-static {v0}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result v0
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result v0
|
|
|
|
float-to-double v2, v0
|
|
|
|
const-wide v4, 0x3fd999999999999aL # 0.4
|
|
|
|
.line 901
|
|
invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
sub-double/2addr v2, v4
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->max(DD)D
|
|
|
|
move-result-wide v2
|
|
|
|
double-to-float v2, v2
|
|
|
|
const/high16 v3, 0x40a00000 # 5.0f
|
|
|
|
mul-float v2, v2, v3
|
|
|
|
const/high16 v3, 0x40400000 # 3.0f
|
|
|
|
div-float/2addr v2, v3
|
|
|
|
.line 902
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result v3
|
|
|
|
iget v4, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalDragDistance:F
|
|
|
|
sub-float/2addr v3, v4
|
|
|
|
.line 903
|
|
iget-boolean v4, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mUsingCustomStart:Z
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
iget v4, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mSpinnerOffsetEnd:I
|
|
|
|
iget v5, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mOriginalOffsetTop:I
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
:goto_0
|
|
int-to-float v4, v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
iget v4, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mSpinnerOffsetEnd:I
|
|
|
|
goto :goto_0
|
|
|
|
:goto_1
|
|
const/high16 v5, 0x40000000 # 2.0f
|
|
|
|
mul-float v6, v4, v5
|
|
|
|
.line 905
|
|
invoke-static {v3, v6}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result v3
|
|
|
|
div-float/2addr v3, v4
|
|
|
|
const/4 v6, 0x0
|
|
|
|
invoke-static {v6, v3}, Ljava/lang/Math;->max(FF)F
|
|
|
|
move-result v3
|
|
|
|
const/high16 v7, 0x40800000 # 4.0f
|
|
|
|
div-float/2addr v3, v7
|
|
|
|
float-to-double v7, v3
|
|
|
|
const-wide/high16 v9, 0x4000000000000000L # 2.0
|
|
|
|
.line 907
|
|
invoke-static {v7, v8, v9, v10}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
move-result-wide v9
|
|
|
|
invoke-static {v7, v8}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
sub-double/2addr v7, v9
|
|
|
|
double-to-float v3, v7
|
|
|
|
mul-float v3, v3, v5
|
|
|
|
mul-float v7, v4, v3
|
|
|
|
mul-float v7, v7, v5
|
|
|
|
.line 911
|
|
iget v8, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mOriginalOffsetTop:I
|
|
|
|
mul-float v4, v4, v0
|
|
|
|
add-float/2addr v4, v7
|
|
|
|
float-to-int v0, v4
|
|
|
|
add-int/2addr v8, v0
|
|
|
|
.line 913
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/widget/CircleImageView;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 914
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-virtual {v0, v4}, Landroid/support/v4/widget/CircleImageView;->setVisibility(I)V
|
|
|
|
.line 916
|
|
:cond_1
|
|
iget-boolean v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScale:Z
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
.line 917
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/widget/CircleImageView;->setScaleX(F)V
|
|
|
|
.line 918
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/widget/CircleImageView;->setScaleY(F)V
|
|
|
|
.line 921
|
|
:cond_2
|
|
iget-boolean v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScale:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 922
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalDragDistance:F
|
|
|
|
div-float v0, p1, v0
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Landroid/support/v4/widget/SwipeRefreshLayout;->setAnimationProgress(F)V
|
|
|
|
.line 924
|
|
:cond_3
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalDragDistance:F
|
|
|
|
cmpg-float p1, p1, v0
|
|
|
|
if-gez p1, :cond_4
|
|
|
|
.line 925
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/widget/CircularProgressDrawable;->getAlpha()I
|
|
|
|
move-result p1
|
|
|
|
const/16 v0, 0x4c
|
|
|
|
if-le p1, v0, :cond_5
|
|
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAlphaStartAnimation:Landroid/view/animation/Animation;
|
|
|
|
.line 926
|
|
invoke-direct {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->isAnimationRunning(Landroid/view/animation/Animation;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_5
|
|
|
|
.line 928
|
|
invoke-direct {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->startProgressAlphaStartAnimation()V
|
|
|
|
goto :goto_2
|
|
|
|
.line 931
|
|
:cond_4
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/widget/CircularProgressDrawable;->getAlpha()I
|
|
|
|
move-result p1
|
|
|
|
const/16 v0, 0xff
|
|
|
|
if-ge p1, v0, :cond_5
|
|
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAlphaMaxAnimation:Landroid/view/animation/Animation;
|
|
|
|
invoke-direct {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->isAnimationRunning(Landroid/view/animation/Animation;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_5
|
|
|
|
.line 933
|
|
invoke-direct {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->startProgressAlphaMaxAnimation()V
|
|
|
|
:cond_5
|
|
:goto_2
|
|
const p1, 0x3f4ccccd # 0.8f
|
|
|
|
mul-float v0, v2, p1
|
|
|
|
.line 937
|
|
iget-object v4, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-static {p1, v0}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v4, v6, p1}, Landroid/support/v4/widget/CircularProgressDrawable;->setStartEndTrim(FF)V
|
|
|
|
.line 938
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/support/v4/widget/CircularProgressDrawable;->setArrowScale(F)V
|
|
|
|
const/high16 p1, -0x41800000 # -0.25f
|
|
|
|
const v0, 0x3ecccccd # 0.4f
|
|
|
|
mul-float v2, v2, v0
|
|
|
|
add-float/2addr v2, p1
|
|
|
|
mul-float v3, v3, v5
|
|
|
|
add-float/2addr v2, v3
|
|
|
|
const/high16 p1, 0x3f000000 # 0.5f
|
|
|
|
mul-float v2, v2, p1
|
|
|
|
.line 941
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-virtual {p1, v2}, Landroid/support/v4/widget/CircularProgressDrawable;->setProgressRotation(F)V
|
|
|
|
.line 942
|
|
iget p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCurrentTargetOffsetTop:I
|
|
|
|
sub-int/2addr v8, p1
|
|
|
|
invoke-virtual {p0, v8}, Landroid/support/v4/widget/SwipeRefreshLayout;->setTargetOffsetTopAndBottom(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private onSecondaryPointerUp(Landroid/view/MotionEvent;)V
|
|
.locals 3
|
|
|
|
.line 1153
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionIndex()I
|
|
|
|
move-result v0
|
|
|
|
.line 1154
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result v1
|
|
|
|
.line 1155
|
|
iget v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mActivePointerId:I
|
|
|
|
if-ne v1, v2, :cond_1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 1159
|
|
:goto_0
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mActivePointerId:I
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private setColorViewAlpha(I)V
|
|
.locals 1
|
|
|
|
.line 227
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/widget/CircleImageView;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V
|
|
|
|
.line 228
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/widget/CircularProgressDrawable;->setAlpha(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private setRefreshing(ZZ)V
|
|
.locals 1
|
|
|
|
.line 446
|
|
iget-boolean v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshing:Z
|
|
|
|
if-eq v0, p1, :cond_1
|
|
|
|
.line 447
|
|
iput-boolean p2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNotify:Z
|
|
|
|
.line 448
|
|
invoke-direct {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->ensureTarget()V
|
|
|
|
.line 449
|
|
iput-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshing:Z
|
|
|
|
.line 450
|
|
iget-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshing:Z
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 451
|
|
iget p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCurrentTargetOffsetTop:I
|
|
|
|
iget-object p2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshListener:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
invoke-direct {p0, p1, p2}, Landroid/support/v4/widget/SwipeRefreshLayout;->animateOffsetToCorrectPosition(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 453
|
|
:cond_0
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshListener:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
invoke-virtual {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->startScaleDownAnimation(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private startAlphaAnimation(II)Landroid/view/animation/Animation;
|
|
.locals 1
|
|
|
|
.line 480
|
|
new-instance v0, Landroid/support/v4/widget/SwipeRefreshLayout$4;
|
|
|
|
invoke-direct {v0, p0, p1, p2}, Landroid/support/v4/widget/SwipeRefreshLayout$4;-><init>(Landroid/support/v4/widget/SwipeRefreshLayout;II)V
|
|
|
|
const-wide/16 p1, 0x12c
|
|
|
|
.line 487
|
|
invoke-virtual {v0, p1, p2}, Landroid/view/animation/Animation;->setDuration(J)V
|
|
|
|
.line 489
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
invoke-virtual {p1, p2}, Landroid/support/v4/widget/CircleImageView;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
.line 490
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/widget/CircleImageView;->clearAnimation()V
|
|
|
|
.line 491
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/support/v4/widget/CircleImageView;->startAnimation(Landroid/view/animation/Animation;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private startDragging(F)V
|
|
.locals 1
|
|
|
|
.line 1058
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mInitialDownY:F
|
|
|
|
sub-float/2addr p1, v0
|
|
|
|
.line 1059
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTouchSlop:I
|
|
|
|
int-to-float v0, v0
|
|
|
|
cmpl-float p1, p1, v0
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
iget-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mIsBeingDragged:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 1060
|
|
iget p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mInitialDownY:F
|
|
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTouchSlop:I
|
|
|
|
int-to-float v0, v0
|
|
|
|
add-float/2addr p1, v0
|
|
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mInitialMotionY:F
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 1061
|
|
iput-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mIsBeingDragged:Z
|
|
|
|
.line 1062
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
const/16 v0, 0x4c
|
|
|
|
invoke-virtual {p1, v0}, Landroid/support/v4/widget/CircularProgressDrawable;->setAlpha(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private startProgressAlphaMaxAnimation()V
|
|
.locals 2
|
|
|
|
.line 476
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/widget/CircularProgressDrawable;->getAlpha()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0xff
|
|
|
|
invoke-direct {p0, v0, v1}, Landroid/support/v4/widget/SwipeRefreshLayout;->startAlphaAnimation(II)Landroid/view/animation/Animation;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAlphaMaxAnimation:Landroid/view/animation/Animation;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private startProgressAlphaStartAnimation()V
|
|
.locals 2
|
|
|
|
.line 472
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/widget/CircularProgressDrawable;->getAlpha()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x4c
|
|
|
|
invoke-direct {p0, v0, v1}, Landroid/support/v4/widget/SwipeRefreshLayout;->startAlphaAnimation(II)Landroid/view/animation/Animation;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mAlphaStartAnimation:Landroid/view/animation/Animation;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private startScaleDownReturnToStartAnimation(ILandroid/view/animation/Animation$AnimationListener;)V
|
|
.locals 2
|
|
|
|
.line 1128
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mFrom:I
|
|
|
|
.line 1129
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/widget/CircleImageView;->getScaleX()F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mStartingScale:F
|
|
|
|
.line 1130
|
|
new-instance p1, Landroid/support/v4/widget/SwipeRefreshLayout$8;
|
|
|
|
invoke-direct {p1, p0}, Landroid/support/v4/widget/SwipeRefreshLayout$8;-><init>(Landroid/support/v4/widget/SwipeRefreshLayout;)V
|
|
|
|
iput-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScaleDownToStartAnimation:Landroid/view/animation/Animation;
|
|
|
|
.line 1138
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScaleDownToStartAnimation:Landroid/view/animation/Animation;
|
|
|
|
const-wide/16 v0, 0x96
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/view/animation/Animation;->setDuration(J)V
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 1140
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/support/v4/widget/CircleImageView;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
.line 1142
|
|
:cond_0
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/widget/CircleImageView;->clearAnimation()V
|
|
|
|
.line 1143
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
iget-object p2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScaleDownToStartAnimation:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/support/v4/widget/CircleImageView;->startAnimation(Landroid/view/animation/Animation;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private startScaleUpAnimation(Landroid/view/animation/Animation$AnimationListener;)V
|
|
.locals 3
|
|
|
|
.line 420
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/widget/CircleImageView;->setVisibility(I)V
|
|
|
|
.line 421
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
const/16 v1, 0xff
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/widget/CircularProgressDrawable;->setAlpha(I)V
|
|
|
|
.line 422
|
|
new-instance v0, Landroid/support/v4/widget/SwipeRefreshLayout$2;
|
|
|
|
invoke-direct {v0, p0}, Landroid/support/v4/widget/SwipeRefreshLayout$2;-><init>(Landroid/support/v4/widget/SwipeRefreshLayout;)V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScaleAnimation:Landroid/view/animation/Animation;
|
|
|
|
.line 428
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScaleAnimation:Landroid/view/animation/Animation;
|
|
|
|
iget v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mMediumAnimationDuration:I
|
|
|
|
int-to-long v1, v1
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 430
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/widget/CircleImageView;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
.line 432
|
|
:cond_0
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/widget/CircleImageView;->clearAnimation()V
|
|
|
|
.line 433
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScaleAnimation:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/support/v4/widget/CircleImageView;->startAnimation(Landroid/view/animation/Animation;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public canChildScrollUp()Z
|
|
.locals 2
|
|
|
|
.line 653
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mChildScrollUpCallback:Landroid/support/v4/widget/SwipeRefreshLayout$OnChildScrollUpCallback;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 654
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mChildScrollUpCallback:Landroid/support/v4/widget/SwipeRefreshLayout$OnChildScrollUpCallback;
|
|
|
|
iget-object v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
invoke-interface {v0, p0, v1}, Landroid/support/v4/widget/SwipeRefreshLayout$OnChildScrollUpCallback;->canChildScrollUp(Landroid/support/v4/widget/SwipeRefreshLayout;Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
.line 656
|
|
:cond_0
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
instance-of v0, v0, Landroid/widget/ListView;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 657
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
check-cast v0, Landroid/widget/ListView;
|
|
|
|
invoke-static {v0, v1}, Landroid/support/v4/widget/ListViewCompat;->canScrollList(Landroid/widget/ListView;I)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
.line 659
|
|
:cond_1
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->canScrollVertically(I)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public dispatchNestedFling(FFZ)Z
|
|
.locals 1
|
|
|
|
.line 884
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingChildHelper:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Landroid/support/v4/view/NestedScrollingChildHelper;->dispatchNestedFling(FFZ)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public dispatchNestedPreFling(FF)Z
|
|
.locals 1
|
|
|
|
.line 889
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingChildHelper:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroid/support/v4/view/NestedScrollingChildHelper;->dispatchNestedPreFling(FF)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public dispatchNestedPreScroll(II[I[I)Z
|
|
.locals 1
|
|
|
|
.line 866
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingChildHelper:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0, p1, p2, p3, p4}, Landroid/support/v4/view/NestedScrollingChildHelper;->dispatchNestedPreScroll(II[I[I)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public dispatchNestedScroll(IIII[I)Z
|
|
.locals 6
|
|
|
|
.line 860
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingChildHelper:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
move v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move v3, p3
|
|
|
|
move v4, p4
|
|
|
|
move-object v5, p5
|
|
|
|
invoke-virtual/range {v0 .. v5}, Landroid/support/v4/view/NestedScrollingChildHelper;->dispatchNestedScroll(IIII[I)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method protected getChildDrawingOrder(II)I
|
|
.locals 1
|
|
|
|
.line 364
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleViewIndex:I
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
return p2
|
|
|
|
:cond_0
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
if-ne p2, p1, :cond_1
|
|
|
|
.line 368
|
|
iget p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleViewIndex:I
|
|
|
|
return p1
|
|
|
|
.line 369
|
|
:cond_1
|
|
iget p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleViewIndex:I
|
|
|
|
if-lt p2, p1, :cond_2
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
return p2
|
|
|
|
:cond_2
|
|
return p2
|
|
.end method
|
|
|
|
.method public getNestedScrollAxes()I
|
|
.locals 1
|
|
|
|
.line 794
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingParentHelper:Landroid/support/v4/view/NestedScrollingParentHelper;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/view/NestedScrollingParentHelper;->getNestedScrollAxes()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getProgressCircleDiameter()I
|
|
.locals 1
|
|
|
|
.line 645
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleDiameter:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getProgressViewEndOffset()I
|
|
.locals 1
|
|
|
|
.line 272
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mSpinnerOffsetEnd:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getProgressViewStartOffset()I
|
|
.locals 1
|
|
|
|
.line 264
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mOriginalOffsetTop:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public hasNestedScrollingParent()Z
|
|
.locals 1
|
|
|
|
.line 854
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingChildHelper:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/view/NestedScrollingChildHelper;->hasNestedScrollingParent()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isNestedScrollingEnabled()Z
|
|
.locals 1
|
|
|
|
.line 839
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingChildHelper:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/view/NestedScrollingChildHelper;->isNestedScrollingEnabled()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isRefreshing()Z
|
|
.locals 1
|
|
|
|
.line 562
|
|
iget-boolean v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshing:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method moveToStart(F)V
|
|
.locals 3
|
|
|
|
.line 1114
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mFrom:I
|
|
|
|
iget v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mOriginalOffsetTop:I
|
|
|
|
iget v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mFrom:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
int-to-float v1, v1
|
|
|
|
mul-float v1, v1, p1
|
|
|
|
float-to-int p1, v1
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
.line 1115
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/widget/CircleImageView;->getTop()I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr v0, p1
|
|
|
|
.line 1116
|
|
invoke-virtual {p0, v0}, Landroid/support/v4/widget/SwipeRefreshLayout;->setTargetOffsetTopAndBottom(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onDetachedFromWindow()V
|
|
.locals 0
|
|
|
|
.line 222
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V
|
|
|
|
.line 223
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->reset()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 3
|
|
|
|
.line 673
|
|
invoke-direct {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->ensureTarget()V
|
|
|
|
.line 675
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
move-result v0
|
|
|
|
.line 678
|
|
iget-boolean v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mReturningToStart:Z
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 679
|
|
iput-boolean v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mReturningToStart:Z
|
|
|
|
.line 682
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->isEnabled()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
iget-boolean v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mReturningToStart:Z
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->canChildScrollUp()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
iget-boolean v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshing:Z
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
iget-boolean v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollInProgress:Z
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v1, 0x6
|
|
|
|
if-eq v0, v1, :cond_5
|
|
|
|
const/4 v1, -0x1
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 702
|
|
:pswitch_0
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mActivePointerId:I
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
.line 703
|
|
sget-object p1, Landroid/support/v4/widget/SwipeRefreshLayout;->LOG_TAG:Ljava/lang/String;
|
|
|
|
const-string v0, "Got ACTION_MOVE event but don\'t have an active pointer id."
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return v2
|
|
|
|
.line 707
|
|
:cond_2
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mActivePointerId:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I
|
|
|
|
move-result v0
|
|
|
|
if-gez v0, :cond_3
|
|
|
|
return v2
|
|
|
|
.line 711
|
|
:cond_3
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F
|
|
|
|
move-result p1
|
|
|
|
.line 712
|
|
invoke-direct {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->startDragging(F)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 721
|
|
:pswitch_1
|
|
iput-boolean v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mIsBeingDragged:Z
|
|
|
|
.line 722
|
|
iput v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mActivePointerId:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 690
|
|
:pswitch_2
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mOriginalOffsetTop:I
|
|
|
|
iget-object v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v1}, Landroid/support/v4/widget/CircleImageView;->getTop()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-virtual {p0, v0}, Landroid/support/v4/widget/SwipeRefreshLayout;->setTargetOffsetTopAndBottom(I)V
|
|
|
|
.line 691
|
|
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mActivePointerId:I
|
|
|
|
.line 692
|
|
iput-boolean v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mIsBeingDragged:Z
|
|
|
|
.line 694
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mActivePointerId:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I
|
|
|
|
move-result v0
|
|
|
|
if-gez v0, :cond_4
|
|
|
|
return v2
|
|
|
|
.line 698
|
|
:cond_4
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mInitialDownY:F
|
|
|
|
goto :goto_0
|
|
|
|
.line 716
|
|
:cond_5
|
|
invoke-direct {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->onSecondaryPointerUp(Landroid/view/MotionEvent;)V
|
|
|
|
.line 726
|
|
:goto_0
|
|
iget-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mIsBeingDragged:Z
|
|
|
|
return p1
|
|
|
|
:cond_6
|
|
:goto_1
|
|
return v2
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
:pswitch_1
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method protected onLayout(ZIIII)V
|
|
.locals 2
|
|
|
|
.line 590
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getMeasuredWidth()I
|
|
|
|
move-result p1
|
|
|
|
.line 591
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getMeasuredHeight()I
|
|
|
|
move-result p2
|
|
|
|
.line 592
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getChildCount()I
|
|
|
|
move-result p3
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 595
|
|
:cond_0
|
|
iget-object p3, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
.line 596
|
|
invoke-direct {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->ensureTarget()V
|
|
|
|
.line 598
|
|
:cond_1
|
|
iget-object p3, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
if-nez p3, :cond_2
|
|
|
|
return-void
|
|
|
|
.line 601
|
|
:cond_2
|
|
iget-object p3, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
.line 602
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getPaddingLeft()I
|
|
|
|
move-result p4
|
|
|
|
.line 603
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getPaddingTop()I
|
|
|
|
move-result p5
|
|
|
|
.line 604
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getPaddingLeft()I
|
|
|
|
move-result v0
|
|
|
|
sub-int v0, p1, v0
|
|
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getPaddingRight()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 605
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getPaddingTop()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr p2, v1
|
|
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getPaddingBottom()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr p2, v1
|
|
|
|
add-int/2addr v0, p4
|
|
|
|
add-int/2addr p2, p5
|
|
|
|
.line 606
|
|
invoke-virtual {p3, p4, p5, v0, p2}, Landroid/view/View;->layout(IIII)V
|
|
|
|
.line 607
|
|
iget-object p2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p2}, Landroid/support/v4/widget/CircleImageView;->getMeasuredWidth()I
|
|
|
|
move-result p2
|
|
|
|
.line 608
|
|
iget-object p3, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p3}, Landroid/support/v4/widget/CircleImageView;->getMeasuredHeight()I
|
|
|
|
move-result p3
|
|
|
|
.line 609
|
|
iget-object p4, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
div-int/lit8 p1, p1, 0x2
|
|
|
|
div-int/lit8 p2, p2, 0x2
|
|
|
|
sub-int p5, p1, p2
|
|
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCurrentTargetOffsetTop:I
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
iget p2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCurrentTargetOffsetTop:I
|
|
|
|
add-int/2addr p2, p3
|
|
|
|
invoke-virtual {p4, p5, v0, p1, p2}, Landroid/support/v4/widget/CircleImageView;->layout(IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onMeasure(II)V
|
|
.locals 3
|
|
|
|
.line 615
|
|
invoke-super {p0, p1, p2}, Landroid/view/ViewGroup;->onMeasure(II)V
|
|
|
|
.line 616
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 617
|
|
invoke-direct {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->ensureTarget()V
|
|
|
|
.line 619
|
|
:cond_0
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 622
|
|
:cond_1
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
.line 623
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getMeasuredWidth()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getPaddingLeft()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr p2, v0
|
|
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getPaddingRight()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr p2, v0
|
|
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
.line 622
|
|
invoke-static {p2, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p2
|
|
|
|
.line 625
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getMeasuredHeight()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getPaddingTop()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getPaddingBottom()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
.line 624
|
|
invoke-static {v1, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v1
|
|
|
|
.line 622
|
|
invoke-virtual {p1, p2, v1}, Landroid/view/View;->measure(II)V
|
|
|
|
.line 626
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
iget p2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleDiameter:I
|
|
|
|
invoke-static {p2, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p2
|
|
|
|
iget v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleDiameter:I
|
|
|
|
.line 627
|
|
invoke-static {v1, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v0
|
|
|
|
.line 626
|
|
invoke-virtual {p1, p2, v0}, Landroid/support/v4/widget/CircleImageView;->measure(II)V
|
|
|
|
const/4 p1, -0x1
|
|
|
|
.line 628
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleViewIndex:I
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 630
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getChildCount()I
|
|
|
|
move-result p2
|
|
|
|
if-ge p1, p2, :cond_3
|
|
|
|
.line 631
|
|
invoke-virtual {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
if-ne p2, v0, :cond_2
|
|
|
|
.line 632
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleViewIndex:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedFling(Landroid/view/View;FFZ)Z
|
|
.locals 0
|
|
|
|
.line 879
|
|
invoke-virtual {p0, p2, p3, p4}, Landroid/support/v4/widget/SwipeRefreshLayout;->dispatchNestedFling(FFZ)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onNestedPreFling(Landroid/view/View;FF)Z
|
|
.locals 0
|
|
|
|
.line 873
|
|
invoke-virtual {p0, p2, p3}, Landroid/support/v4/widget/SwipeRefreshLayout;->dispatchNestedPreFling(FF)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onNestedPreScroll(Landroid/view/View;II[I)V
|
|
.locals 3
|
|
|
|
const/4 p1, 0x0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-lez p3, :cond_1
|
|
|
|
.line 764
|
|
iget v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
cmpl-float v1, v1, p1
|
|
|
|
if-lez v1, :cond_1
|
|
|
|
int-to-float v1, p3
|
|
|
|
.line 765
|
|
iget v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
cmpl-float v2, v1, v2
|
|
|
|
if-lez v2, :cond_0
|
|
|
|
.line 766
|
|
iget v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
float-to-int v1, v1
|
|
|
|
sub-int v1, p3, v1
|
|
|
|
aput v1, p4, v0
|
|
|
|
.line 767
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
goto :goto_0
|
|
|
|
.line 769
|
|
:cond_0
|
|
iget v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
sub-float/2addr v2, v1
|
|
|
|
iput v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
.line 770
|
|
aput p3, p4, v0
|
|
|
|
.line 772
|
|
:goto_0
|
|
iget v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
invoke-direct {p0, v1}, Landroid/support/v4/widget/SwipeRefreshLayout;->moveSpinner(F)V
|
|
|
|
.line 779
|
|
:cond_1
|
|
iget-boolean v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mUsingCustomStart:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
if-lez p3, :cond_2
|
|
|
|
iget v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
cmpl-float p1, v1, p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
aget p1, p4, v0
|
|
|
|
sub-int p1, p3, p1
|
|
|
|
.line 780
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p1
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 781
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {p1, v1}, Landroid/support/v4/widget/CircleImageView;->setVisibility(I)V
|
|
|
|
.line 785
|
|
:cond_2
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mParentScrollConsumed:[I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 786
|
|
aget v2, p4, v1
|
|
|
|
sub-int/2addr p2, v2
|
|
|
|
aget v2, p4, v0
|
|
|
|
sub-int/2addr p3, v2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {p0, p2, p3, p1, v2}, Landroid/support/v4/widget/SwipeRefreshLayout;->dispatchNestedPreScroll(II[I[I)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
.line 787
|
|
aget p2, p4, v1
|
|
|
|
aget p3, p1, v1
|
|
|
|
add-int/2addr p2, p3
|
|
|
|
aput p2, p4, v1
|
|
|
|
.line 788
|
|
aget p2, p4, v0
|
|
|
|
aget p1, p1, v0
|
|
|
|
add-int/2addr p2, p1
|
|
|
|
aput p2, p4, v0
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedScroll(Landroid/view/View;IIII)V
|
|
.locals 6
|
|
|
|
.line 815
|
|
iget-object v5, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mParentOffsetInWindow:[I
|
|
|
|
move-object v0, p0
|
|
|
|
move v1, p2
|
|
|
|
move v2, p3
|
|
|
|
move v3, p4
|
|
|
|
move v4, p5
|
|
|
|
invoke-virtual/range {v0 .. v5}, Landroid/support/v4/widget/SwipeRefreshLayout;->dispatchNestedScroll(IIII[I)Z
|
|
|
|
.line 823
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mParentOffsetInWindow:[I
|
|
|
|
const/4 p2, 0x1
|
|
|
|
aget p1, p1, p2
|
|
|
|
add-int/2addr p5, p1
|
|
|
|
if-gez p5, :cond_0
|
|
|
|
.line 824
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->canChildScrollUp()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 825
|
|
iget p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
invoke-static {p5}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p2
|
|
|
|
int-to-float p2, p2
|
|
|
|
add-float/2addr p1, p2
|
|
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
.line 826
|
|
iget p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
invoke-direct {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->moveSpinner(F)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedScrollAccepted(Landroid/view/View;Landroid/view/View;I)V
|
|
.locals 1
|
|
|
|
.line 753
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingParentHelper:Landroid/support/v4/view/NestedScrollingParentHelper;
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Landroid/support/v4/view/NestedScrollingParentHelper;->onNestedScrollAccepted(Landroid/view/View;Landroid/view/View;I)V
|
|
|
|
and-int/lit8 p1, p3, 0x2
|
|
|
|
.line 755
|
|
invoke-virtual {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->startNestedScroll(I)Z
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 756
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 757
|
|
iput-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollInProgress:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onStartNestedScroll(Landroid/view/View;Landroid/view/View;I)Z
|
|
.locals 0
|
|
|
|
.line 746
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->isEnabled()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mReturningToStart:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iget-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshing:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
and-int/lit8 p1, p3, 0x2
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public onStopNestedScroll(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
.line 799
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingParentHelper:Landroid/support/v4/view/NestedScrollingParentHelper;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/view/NestedScrollingParentHelper;->onStopNestedScroll(Landroid/view/View;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 800
|
|
iput-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollInProgress:Z
|
|
|
|
.line 803
|
|
iget p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
const/4 v0, 0x0
|
|
|
|
cmpl-float p1, p1, v0
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
.line 804
|
|
iget p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
invoke-direct {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->finishSpinner(F)V
|
|
|
|
.line 805
|
|
iput v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalUnconsumed:F
|
|
|
|
.line 808
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->stopNestedScroll()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 4
|
|
|
|
.line 980
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
move-result v0
|
|
|
|
.line 983
|
|
iget-boolean v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mReturningToStart:Z
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 984
|
|
iput-boolean v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mReturningToStart:Z
|
|
|
|
.line 987
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->isEnabled()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
iget-boolean v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mReturningToStart:Z
|
|
|
|
if-nez v1, :cond_8
|
|
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->canChildScrollUp()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_8
|
|
|
|
iget-boolean v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshing:Z
|
|
|
|
if-nez v1, :cond_8
|
|
|
|
iget-boolean v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollInProgress:Z
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_1
|
|
const/high16 v1, 0x3f000000 # 0.5f
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
:pswitch_0
|
|
goto/16 :goto_0
|
|
|
|
.line 1031
|
|
:pswitch_1
|
|
invoke-direct {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->onSecondaryPointerUp(Landroid/view/MotionEvent;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1020
|
|
:pswitch_2
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionIndex()I
|
|
|
|
move-result v0
|
|
|
|
if-gez v0, :cond_2
|
|
|
|
.line 1022
|
|
sget-object p1, Landroid/support/v4/widget/SwipeRefreshLayout;->LOG_TAG:Ljava/lang/String;
|
|
|
|
const-string v0, "Got ACTION_POINTER_DOWN event but have an invalid action index."
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return v2
|
|
|
|
.line 1026
|
|
:cond_2
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mActivePointerId:I
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_3
|
|
return v2
|
|
|
|
.line 1000
|
|
:pswitch_4
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mActivePointerId:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I
|
|
|
|
move-result v0
|
|
|
|
if-gez v0, :cond_3
|
|
|
|
.line 1002
|
|
sget-object p1, Landroid/support/v4/widget/SwipeRefreshLayout;->LOG_TAG:Ljava/lang/String;
|
|
|
|
const-string v0, "Got ACTION_MOVE event but have an invalid active pointer id."
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return v2
|
|
|
|
.line 1006
|
|
:cond_3
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F
|
|
|
|
move-result p1
|
|
|
|
.line 1007
|
|
invoke-direct {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->startDragging(F)V
|
|
|
|
.line 1009
|
|
iget-boolean v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mIsBeingDragged:Z
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
.line 1010
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mInitialMotionY:F
|
|
|
|
sub-float/2addr p1, v0
|
|
|
|
mul-float p1, p1, v1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
cmpl-float v0, p1, v0
|
|
|
|
if-lez v0, :cond_4
|
|
|
|
.line 1012
|
|
invoke-direct {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->moveSpinner(F)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
return v2
|
|
|
|
.line 1035
|
|
:pswitch_5
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mActivePointerId:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I
|
|
|
|
move-result v0
|
|
|
|
if-gez v0, :cond_5
|
|
|
|
.line 1037
|
|
sget-object p1, Landroid/support/v4/widget/SwipeRefreshLayout;->LOG_TAG:Ljava/lang/String;
|
|
|
|
const-string v0, "Got ACTION_UP event but don\'t have an active pointer id."
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return v2
|
|
|
|
.line 1041
|
|
:cond_5
|
|
iget-boolean v3, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mIsBeingDragged:Z
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
.line 1042
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F
|
|
|
|
move-result p1
|
|
|
|
.line 1043
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mInitialMotionY:F
|
|
|
|
sub-float/2addr p1, v0
|
|
|
|
mul-float p1, p1, v1
|
|
|
|
.line 1044
|
|
iput-boolean v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mIsBeingDragged:Z
|
|
|
|
.line 1045
|
|
invoke-direct {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->finishSpinner(F)V
|
|
|
|
:cond_6
|
|
const/4 p1, -0x1
|
|
|
|
.line 1047
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mActivePointerId:I
|
|
|
|
return v2
|
|
|
|
.line 995
|
|
:pswitch_6
|
|
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mActivePointerId:I
|
|
|
|
.line 996
|
|
iput-boolean v2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mIsBeingDragged:Z
|
|
|
|
:cond_7
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_8
|
|
:goto_1
|
|
return v2
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_0
|
|
:pswitch_2
|
|
:pswitch_1
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public requestDisallowInterceptTouchEvent(Z)V
|
|
.locals 2
|
|
|
|
.line 734
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x15
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
instance-of v0, v0, Landroid/widget/AbsListView;
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTarget:Landroid/view/View;
|
|
|
|
.line 735
|
|
invoke-static {v0}, Landroid/support/v4/view/ViewCompat;->isNestedScrollingEnabled(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 738
|
|
:cond_1
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->requestDisallowInterceptTouchEvent(Z)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method reset()V
|
|
.locals 2
|
|
|
|
.line 199
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/widget/CircleImageView;->clearAnimation()V
|
|
|
|
.line 200
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/widget/CircularProgressDrawable;->stop()V
|
|
|
|
.line 201
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/widget/CircleImageView;->setVisibility(I)V
|
|
|
|
const/16 v0, 0xff
|
|
|
|
.line 202
|
|
invoke-direct {p0, v0}, Landroid/support/v4/widget/SwipeRefreshLayout;->setColorViewAlpha(I)V
|
|
|
|
.line 204
|
|
iget-boolean v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScale:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 205
|
|
invoke-virtual {p0, v0}, Landroid/support/v4/widget/SwipeRefreshLayout;->setAnimationProgress(F)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 207
|
|
:cond_0
|
|
iget v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mOriginalOffsetTop:I
|
|
|
|
iget v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCurrentTargetOffsetTop:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-virtual {p0, v0}, Landroid/support/v4/widget/SwipeRefreshLayout;->setTargetOffsetTopAndBottom(I)V
|
|
|
|
.line 209
|
|
:goto_0
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/widget/CircleImageView;->getTop()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCurrentTargetOffsetTop:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method setAnimationProgress(F)V
|
|
.locals 1
|
|
|
|
.line 441
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/widget/CircleImageView;->setScaleX(F)V
|
|
|
|
.line 442
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/widget/CircleImageView;->setScaleY(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public varargs setColorScheme([I)V
|
|
.locals 0
|
|
.param p1 # [I
|
|
.annotation build Landroid/support/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 526
|
|
invoke-virtual {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->setColorSchemeResources([I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public varargs setColorSchemeColors([I)V
|
|
.locals 1
|
|
.param p1 # [I
|
|
.annotation build Landroid/support/annotation/ColorInt;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 553
|
|
invoke-direct {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->ensureTarget()V
|
|
|
|
.line 554
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/widget/CircularProgressDrawable;->setColorSchemeColors([I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public varargs setColorSchemeResources([I)V
|
|
.locals 4
|
|
.param p1 # [I
|
|
.annotation build Landroid/support/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 537
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
.line 538
|
|
array-length v1, p1
|
|
|
|
new-array v1, v1, [I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 539
|
|
:goto_0
|
|
array-length v3, p1
|
|
|
|
if-ge v2, v3, :cond_0
|
|
|
|
.line 540
|
|
aget v3, p1, v2
|
|
|
|
invoke-static {v0, v3}, Landroid/support/v4/content/ContextCompat;->getColor(Landroid/content/Context;I)I
|
|
|
|
move-result v3
|
|
|
|
aput v3, v1, v2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 542
|
|
:cond_0
|
|
invoke-virtual {p0, v1}, Landroid/support/v4/widget/SwipeRefreshLayout;->setColorSchemeColors([I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setDistanceToTriggerSync(I)V
|
|
.locals 0
|
|
|
|
int-to-float p1, p1
|
|
|
|
.line 585
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mTotalDragDistance:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setEnabled(Z)V
|
|
.locals 0
|
|
|
|
.line 214
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->setEnabled(Z)V
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 216
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->reset()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setNestedScrollingEnabled(Z)V
|
|
.locals 1
|
|
|
|
.line 834
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingChildHelper:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/view/NestedScrollingChildHelper;->setNestedScrollingEnabled(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnChildScrollUpCallback(Landroid/support/v4/widget/SwipeRefreshLayout$OnChildScrollUpCallback;)V
|
|
.locals 0
|
|
.param p1 # Landroid/support/v4/widget/SwipeRefreshLayout$OnChildScrollUpCallback;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 668
|
|
iput-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mChildScrollUpCallback:Landroid/support/v4/widget/SwipeRefreshLayout$OnChildScrollUpCallback;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnRefreshListener(Landroid/support/v4/widget/SwipeRefreshLayout$OnRefreshListener;)V
|
|
.locals 0
|
|
.param p1 # Landroid/support/v4/widget/SwipeRefreshLayout$OnRefreshListener;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 392
|
|
iput-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mListener:Landroid/support/v4/widget/SwipeRefreshLayout$OnRefreshListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProgressBackgroundColor(I)V
|
|
.locals 0
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 500
|
|
invoke-virtual {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->setProgressBackgroundColorSchemeResource(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProgressBackgroundColorSchemeColor(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroid/support/annotation/ColorInt;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 518
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/widget/CircleImageView;->setBackgroundColor(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProgressBackgroundColorSchemeResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroid/support/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 509
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Landroid/support/v4/content/ContextCompat;->getColor(Landroid/content/Context;I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->setProgressBackgroundColorSchemeColor(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProgressViewEndTarget(ZI)V
|
|
.locals 0
|
|
|
|
.line 289
|
|
iput p2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mSpinnerOffsetEnd:I
|
|
|
|
.line 290
|
|
iput-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScale:Z
|
|
|
|
.line 291
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/widget/CircleImageView;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProgressViewOffset(ZII)V
|
|
.locals 0
|
|
|
|
.line 251
|
|
iput-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScale:Z
|
|
|
|
.line 252
|
|
iput p2, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mOriginalOffsetTop:I
|
|
|
|
.line 253
|
|
iput p3, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mSpinnerOffsetEnd:I
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 254
|
|
iput-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mUsingCustomStart:Z
|
|
|
|
.line 255
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->reset()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 256
|
|
iput-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshing:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRefreshing(Z)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 402
|
|
iget-boolean v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshing:Z
|
|
|
|
if-eq v1, p1, :cond_1
|
|
|
|
.line 404
|
|
iput-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshing:Z
|
|
|
|
.line 406
|
|
iget-boolean p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mUsingCustomStart:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 407
|
|
iget p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mSpinnerOffsetEnd:I
|
|
|
|
iget v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mOriginalOffsetTop:I
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
goto :goto_0
|
|
|
|
.line 409
|
|
:cond_0
|
|
iget p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mSpinnerOffsetEnd:I
|
|
|
|
.line 411
|
|
:goto_0
|
|
iget v1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCurrentTargetOffsetTop:I
|
|
|
|
sub-int/2addr p1, v1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->setTargetOffsetTopAndBottom(I)V
|
|
|
|
.line 412
|
|
iput-boolean v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNotify:Z
|
|
|
|
.line 413
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mRefreshListener:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
invoke-direct {p0, p1}, Landroid/support/v4/widget/SwipeRefreshLayout;->startScaleUpAnimation(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 415
|
|
:cond_1
|
|
invoke-direct {p0, p1, v0}, Landroid/support/v4/widget/SwipeRefreshLayout;->setRefreshing(ZZ)V
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSize(I)V
|
|
.locals 2
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 301
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
const/high16 v1, 0x42600000 # 56.0f
|
|
|
|
.line 303
|
|
iget v0, v0, Landroid/util/DisplayMetrics;->density:F
|
|
|
|
mul-float v0, v0, v1
|
|
|
|
float-to-int v0, v0
|
|
|
|
iput v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleDiameter:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/high16 v1, 0x42200000 # 40.0f
|
|
|
|
.line 305
|
|
iget v0, v0, Landroid/util/DisplayMetrics;->density:F
|
|
|
|
mul-float v0, v0, v1
|
|
|
|
float-to-int v0, v0
|
|
|
|
iput v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleDiameter:I
|
|
|
|
.line 310
|
|
:goto_0
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/widget/CircleImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 311
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/widget/CircularProgressDrawable;->setStyle(I)V
|
|
|
|
.line 312
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mProgress:Landroid/support/v4/widget/CircularProgressDrawable;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/support/v4/widget/CircleImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method setTargetOffsetTopAndBottom(I)V
|
|
.locals 1
|
|
|
|
.line 1147
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/widget/CircleImageView;->bringToFront()V
|
|
|
|
.line 1148
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-static {v0, p1}, Landroid/support/v4/view/ViewCompat;->offsetTopAndBottom(Landroid/view/View;I)V
|
|
|
|
.line 1149
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/widget/CircleImageView;->getTop()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCurrentTargetOffsetTop:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public startNestedScroll(I)Z
|
|
.locals 1
|
|
|
|
.line 844
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingChildHelper:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/view/NestedScrollingChildHelper;->startNestedScroll(I)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method startScaleDownAnimation(Landroid/view/animation/Animation$AnimationListener;)V
|
|
.locals 3
|
|
|
|
.line 459
|
|
new-instance v0, Landroid/support/v4/widget/SwipeRefreshLayout$3;
|
|
|
|
invoke-direct {v0, p0}, Landroid/support/v4/widget/SwipeRefreshLayout$3;-><init>(Landroid/support/v4/widget/SwipeRefreshLayout;)V
|
|
|
|
iput-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScaleDownAnimation:Landroid/view/animation/Animation;
|
|
|
|
.line 465
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScaleDownAnimation:Landroid/view/animation/Animation;
|
|
|
|
const-wide/16 v1, 0x96
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V
|
|
|
|
.line 466
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/support/v4/widget/CircleImageView;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
.line 467
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/widget/CircleImageView;->clearAnimation()V
|
|
|
|
.line 468
|
|
iget-object p1, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mCircleView:Landroid/support/v4/widget/CircleImageView;
|
|
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mScaleDownAnimation:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/support/v4/widget/CircleImageView;->startAnimation(Landroid/view/animation/Animation;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public stopNestedScroll()V
|
|
.locals 1
|
|
|
|
.line 849
|
|
iget-object v0, p0, Landroid/support/v4/widget/SwipeRefreshLayout;->mNestedScrollingChildHelper:Landroid/support/v4/view/NestedScrollingChildHelper;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/view/NestedScrollingChildHelper;->stopNestedScroll()V
|
|
|
|
return-void
|
|
.end method
|