183 lines
3.7 KiB
Smali
183 lines
3.7 KiB
Smali
.class public Llc/g;
|
|
.super Landroidx/recyclerview/widget/RecyclerView$l;
|
|
.source "RecyclerViewDividerItemDecoration.java"
|
|
|
|
|
|
# instance fields
|
|
.field public a:Landroid/graphics/drawable/Drawable;
|
|
|
|
.field public b:I
|
|
|
|
.field public c:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"context"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$l;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
iput v0, p0, Llc/g;->b:I
|
|
|
|
.line 3
|
|
iput v0, p0, Llc/g;->c:I
|
|
|
|
const v0, 0x7f080a36
|
|
|
|
.line 4
|
|
invoke-static {p1, v0}, Landroidx/core/content/d;->i(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Llc/g;->a:Landroid/graphics/drawable/Drawable;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public f(I)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"leftPadding"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iput p1, p0, Llc/g;->c:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public g(I)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"outlinePadding"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iput p1, p0, Llc/g;->b:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDrawOver(Landroid/graphics/Canvas;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$x;)V
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"c",
|
|
"parent",
|
|
"state"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p2}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
|
|
|
move-result p3
|
|
|
|
.line 2
|
|
invoke-virtual {p2}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p2}, Landroid/view/ViewGroup;->getPaddingRight()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 3
|
|
invoke-virtual {p2}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {p2, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
.line 5
|
|
invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroidx/recyclerview/widget/RecyclerView$LayoutParams;
|
|
|
|
.line 6
|
|
invoke-virtual {v3}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v3
|
|
|
|
iget v4, v4, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
.line 7
|
|
iget-object v4, p0, Llc/g;->a:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {v4}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
move-result v4
|
|
|
|
add-int/2addr v4, v3
|
|
|
|
.line 8
|
|
iget-object v5, p0, Llc/g;->a:Landroid/graphics/drawable/Drawable;
|
|
|
|
iget v6, p0, Llc/g;->c:I
|
|
|
|
add-int/2addr v6, p3
|
|
|
|
iget v7, p0, Llc/g;->b:I
|
|
|
|
add-int/2addr v6, v7
|
|
|
|
sub-int v7, v0, v7
|
|
|
|
invoke-virtual {v5, v6, v3, v7, v4}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
.line 9
|
|
iget-object v3, p0, Llc/g;->a:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {v3, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|