PullToRefreshHorizontalScrollView.smali
.class public Lcom/handmark/pulltorefresh/library/PullToRefreshHorizontalScrollView;
.super Lcom/handmark/pulltorefresh/library/PullToRefreshBase;
.source "PullToRefreshHorizontalScrollView.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/handmark/pulltorefresh/library/PullToRefreshHorizontalScrollView$InternalHorizontalScrollViewSDK9;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/handmark/pulltorefresh/library/PullToRefreshBase",
"<",
"Landroid/widget/HorizontalScrollView;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 2
.prologue
.line 29
invoke-direct {p0, p1}, Lcom/handmark/pulltorefresh/library/PullToRefreshBase;-><init>(Landroid/content/Context;)V
.line 30
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 3
.prologue
.line 33
invoke-direct {p0, p1, p2}, Lcom/handmark/pulltorefresh/library/PullToRefreshBase;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 34
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;)V
.registers 3
.prologue
.line 37
invoke-direct {p0, p1, p2}, Lcom/handmark/pulltorefresh/library/PullToRefreshBase;-><init>(Landroid/content/Context;Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;)V
.line 38
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;Lcom/handmark/pulltorefresh/library/PullToRefreshBase$AnimationStyle;)V
.registers 4
.prologue
.line 41
invoke-direct {p0, p1, p2, p3}, Lcom/handmark/pulltorefresh/library/PullToRefreshBase;-><init>(Landroid/content/Context;Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;Lcom/handmark/pulltorefresh/library/PullToRefreshBase$AnimationStyle;)V
.line 42
return-void
.end method
# virtual methods
.method protected bridge synthetic createRefreshableView(Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
.registers 4
.prologue
.line 26
invoke-virtual {p0, p1, p2}, Lcom/handmark/pulltorefresh/library/PullToRefreshHorizontalScrollView;->createRefreshableView(Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/widget/HorizontalScrollView;
move-result-object v0
return-object v0
.end method
.method protected createRefreshableView(Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/widget/HorizontalScrollView;
.registers 5
.prologue
.line 53
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x9
if-lt v0, v1, :cond_11
.line 54
new-instance v0, Lcom/handmark/pulltorefresh/library/PullToRefreshHorizontalScrollView$InternalHorizontalScrollViewSDK9;
invoke-direct {v0, p0, p1, p2}, Lcom/handmark/pulltorefresh/library/PullToRefreshHorizontalScrollView$InternalHorizontalScrollViewSDK9;-><init>(Lcom/handmark/pulltorefresh/library/PullToRefreshHorizontalScrollView;Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 59
:goto_b
sget v1, Lcom/handmark/pulltorefresh/library/R$id;->scrollview:I
invoke-virtual {v0, v1}, Landroid/widget/HorizontalScrollView;->setId(I)V
.line 60
return-object v0
.line 56
:cond_11
new-instance v0, Landroid/widget/HorizontalScrollView;
invoke-direct {v0, p1, p2}, Landroid/widget/HorizontalScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
goto :goto_b
.end method
.method public final getPullToRefreshScrollDirection()Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Orientation;
.registers 2
.prologue
.line 46
sget-object v0, Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Orientation;->HORIZONTAL:Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Orientation;
return-object v0
.end method
.method protected isReadyForPullEnd()Z
.registers 5
.prologue
const/4 v1, 0x0
.line 70
iget-object v0, p0, Lcom/handmark/pulltorefresh/library/PullToRefreshHorizontalScrollView;->mRefreshableView:Landroid/view/View;
check-cast v0, Landroid/widget/HorizontalScrollView;
invoke-virtual {v0, v1}, Landroid/widget/HorizontalScrollView;->getChildAt(I)Landroid/view/View;
move-result-object v2
.line 71
if-eqz v2, :cond_22
.line 72
iget-object v0, p0, Lcom/handmark/pulltorefresh/library/PullToRefreshHorizontalScrollView;->mRefreshableView:Landroid/view/View;
check-cast v0, Landroid/widget/HorizontalScrollView;
invoke-virtual {v0}, Landroid/widget/HorizontalScrollView;->getScrollX()I
move-result v0
invoke-virtual {v2}, Landroid/view/View;->getWidth()I
move-result v2
invoke-virtual {p0}, Lcom/handmark/pulltorefresh/library/PullToRefreshHorizontalScrollView;->getWidth()I
move-result v3
sub-int/2addr v2, v3
if-lt v0, v2, :cond_20
const/4 v0, 0x1
.line 74
:goto_1f
return v0
:cond_20
move v0, v1
.line 72
goto :goto_1f
:cond_22
move v0, v1
.line 74
goto :goto_1f
.end method
.method protected isReadyForPullStart()Z
.registers 2
.prologue
.line 65
iget-object v0, p0, Lcom/handmark/pulltorefresh/library/PullToRefreshHorizontalScrollView;->mRefreshableView:Landroid/view/View;
check-cast v0, Landroid/widget/HorizontalScrollView;
invoke-virtual {v0}, Landroid/widget/HorizontalScrollView;->getScrollX()I
move-result v0
if-nez v0, :cond_c
const/4 v0, 0x1
:goto_b
return v0
:cond_c
const/4 v0, 0x0
goto :goto_b
.end method