219 lines
5.1 KiB
Smali
219 lines
5.1 KiB
Smali
.class final Lcom/my/target/CarouselTabletView$a;
|
|
.super Lcom/my/target/MeasuringPromoLayoutManager;
|
|
.source "CarouselTabletView.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/my/target/CarouselTabletView;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = "a"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private B:F
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/my/target/MeasuringPromoLayoutManager;-><init>(Landroid/content/Context;)V
|
|
|
|
const/high16 p1, 0x40200000 # 2.5f
|
|
|
|
.line 2
|
|
iput p1, p0, Lcom/my/target/CarouselTabletView$a;->B:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method final a(F)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/my/target/CarouselTabletView$a;->B:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final measureChildWithMargins(Landroid/view/View;II)V
|
|
.locals 6
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getWidth()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
.line 3
|
|
iget v2, p0, Lcom/my/target/CarouselTabletView$a;->B:F
|
|
|
|
div-float/2addr v1, v2
|
|
|
|
float-to-int v1, v1
|
|
|
|
.line 4
|
|
iget v2, p0, Lcom/my/target/MeasuringPromoLayoutManager;->d:I
|
|
|
|
.line 5
|
|
iget v3, p0, Lcom/my/target/PromoLayoutManager;->a:I
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
.line 6
|
|
iput v2, p0, Lcom/my/target/PromoLayoutManager;->a:I
|
|
|
|
.line 7
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getItemViewType(Landroid/view/View;)I
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-ne v3, v4, :cond_1
|
|
|
|
.line 8
|
|
iget v3, p0, Lcom/my/target/PromoLayoutManager;->a:I
|
|
|
|
iput v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
.line 9
|
|
iput v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 10
|
|
:cond_1
|
|
invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getItemViewType(Landroid/view/View;)I
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x2
|
|
|
|
if-ne v3, v4, :cond_2
|
|
|
|
.line 11
|
|
iget v3, p0, Lcom/my/target/PromoLayoutManager;->a:I
|
|
|
|
iput v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
.line 12
|
|
iput v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 13
|
|
:cond_2
|
|
iput v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
.line 14
|
|
iput v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
.line 15
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
.line 16
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getWidthMode()I
|
|
|
|
move-result v3
|
|
|
|
.line 17
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPaddingLeft()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPaddingRight()I
|
|
|
|
move-result v5
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
iget v5, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
iget v5, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
add-int/2addr v4, p2
|
|
|
|
.line 18
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->canScrollHorizontally()Z
|
|
|
|
move-result p2
|
|
|
|
.line 19
|
|
invoke-static {v2, v3, v4, v1, p2}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildMeasureSpec(IIIIZ)I
|
|
|
|
move-result p2
|
|
|
|
.line 20
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getHeight()I
|
|
|
|
move-result v1
|
|
|
|
.line 21
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getHeightMode()I
|
|
|
|
move-result v2
|
|
|
|
.line 22
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPaddingTop()I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getPaddingBottom()I
|
|
|
|
move-result v4
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
iget v4, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
iget v4, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
add-int/2addr v3, p3
|
|
|
|
iget p3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
|
|
|
.line 23
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/LinearLayoutManager;->canScrollVertically()Z
|
|
|
|
move-result v0
|
|
|
|
.line 24
|
|
invoke-static {v1, v2, v3, p3, v0}, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;->getChildMeasureSpec(IIIIZ)I
|
|
|
|
move-result p3
|
|
|
|
.line 25
|
|
invoke-virtual {p1, p2, p3}, Landroid/view/View;->measure(II)V
|
|
|
|
return-void
|
|
.end method
|