ReactParallaxHeaderContainerViewManager.smali
.class public Lcom/garena/rnrecyclerview/library/sticky2/parallax/ReactParallaxHeaderContainerViewManager;
.super Lcom/facebook/react/uimanager/ViewGroupManager;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/react/uimanager/ViewGroupManager<",
"Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;",
">;"
}
.end annotation
# static fields
.field public static final COMMAND_RESET_PARALLAX_VIEW:I = 0x1
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Lcom/facebook/react/uimanager/ViewGroupManager;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Landroid/view/View;
.registers 2
.line 1
invoke-virtual {p0, p1}, Lcom/garena/rnrecyclerview/library/sticky2/parallax/ReactParallaxHeaderContainerViewManager;->createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;
move-result-object p1
return-object p1
.end method
.method public createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;
.registers 3
.line 2
new-instance v0, Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;
invoke-direct {v0, p1}, Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;-><init>(Landroid/content/Context;)V
return-object v0
.end method
.method public getCommandsMap()Ljava/util/Map;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
const/4 v0, 0x1
.line 1
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
const-string v1, "resetParallaxViewToFullyShowed"
.line 2
invoke-static {v1, v0}, Lcom/facebook/react/common/MapBuilder;->of(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
move-result-object v0
return-object v0
.end method
.method public getName()Ljava/lang/String;
.registers 2
const-string v0, "ParallaxHeaderContainer"
return-object v0
.end method
.method public headerHeight(Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;D)V
.registers 4
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "headerHeight"
.end annotation
invoke-static {p2, p3}, Lcom/facebook/react/uimanager/PixelUtil;->toPixelFromDIP(D)F
move-result p2
float-to-int p2, p2
invoke-virtual {p1, p2}, Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;->setHeaderHeight(I)V
return-void
.end method
.method public quickReturn(Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;Z)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "quickReturn"
.end annotation
invoke-virtual {p1, p2}, Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;->setQuickReturn(Z)V
return-void
.end method
.method public bridge synthetic receiveCommand(Landroid/view/View;ILcom/facebook/react/bridge/ReadableArray;)V
.registers 4
.line 1
check-cast p1, Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;
invoke-virtual {p0, p1, p2, p3}, Lcom/garena/rnrecyclerview/library/sticky2/parallax/ReactParallaxHeaderContainerViewManager;->receiveCommand(Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;ILcom/facebook/react/bridge/ReadableArray;)V
return-void
.end method
.method public receiveCommand(Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;ILcom/facebook/react/bridge/ReadableArray;)V
.registers 6
const/4 v0, 0x1
if-eq p2, v0, :cond_4
goto :goto_2a
:cond_4
const/4 p2, 0x0
if-eqz p3, :cond_c
.line 2
invoke-interface {p3, p2}, Lcom/facebook/react/bridge/ReadableArray;->getBoolean(I)Z
move-result p3
goto :goto_d
:cond_c
const/4 p3, 0x0
.line 3
:goto_d
invoke-virtual {p1, p2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object p1
const/4 v1, 0x0
if-eqz p3, :cond_27
new-array p3, v0, [F
aput v1, p3, p2
const-string p2, "translationY"
.line 4
invoke-static {p1, p2, p3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
move-result-object p1
const-wide/16 p2, 0x12c
.line 5
invoke-virtual {p1, p2, p3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;
.line 6
invoke-virtual {p1}, Landroid/animation/ObjectAnimator;->start()V
goto :goto_2a
.line 7
:cond_27
invoke-virtual {p1, v1}, Landroid/view/View;->setTranslationY(F)V
:goto_2a
return-void
.end method
.method public speedRatio(Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;D)V
.registers 4
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "speedRatio"
.end annotation
double-to-float p2, p2
invoke-virtual {p1, p2}, Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;->setSpeedRatio(F)V
return-void
.end method
.method public stopY(Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;D)V
.registers 4
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "stopY"
.end annotation
invoke-static {p2, p3}, Lcom/facebook/react/uimanager/PixelUtil;->toPixelFromDIP(D)F
move-result p2
float-to-int p2, p2
invoke-virtual {p1, p2}, Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;->setStopY(I)V
return-void
.end method