changed repo structure
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
.class public final Landroidx/cardview/R$attr;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/cardview/R;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "attr"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static cardBackgroundColor:I = 0x7f03009a
|
||||
|
||||
.field public static cardCornerRadius:I = 0x7f03009b
|
||||
|
||||
.field public static cardElevation:I = 0x7f03009c
|
||||
|
||||
.field public static cardMaxElevation:I = 0x7f03009e
|
||||
|
||||
.field public static cardPreventCornerOverlap:I = 0x7f03009f
|
||||
|
||||
.field public static cardUseCompatPadding:I = 0x7f0300a0
|
||||
|
||||
.field public static cardViewStyle:I = 0x7f0300a1
|
||||
|
||||
.field public static contentPadding:I = 0x7f030140
|
||||
|
||||
.field public static contentPaddingBottom:I = 0x7f030141
|
||||
|
||||
.field public static contentPaddingLeft:I = 0x7f030143
|
||||
|
||||
.field public static contentPaddingRight:I = 0x7f030144
|
||||
|
||||
.field public static contentPaddingTop:I = 0x7f030146
|
||||
|
||||
|
||||
# direct methods
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,33 @@
|
||||
.class public final Landroidx/cardview/R$color;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/cardview/R;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "color"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static cardview_dark_background:I = 0x7f05002a
|
||||
|
||||
.field public static cardview_light_background:I = 0x7f05002b
|
||||
|
||||
.field public static cardview_shadow_end_color:I = 0x7f05002c
|
||||
|
||||
.field public static cardview_shadow_start_color:I = 0x7f05002d
|
||||
|
||||
|
||||
# direct methods
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,31 @@
|
||||
.class public final Landroidx/cardview/R$dimen;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/cardview/R;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "dimen"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static cardview_compat_inset_shadow:I = 0x7f060052
|
||||
|
||||
.field public static cardview_default_elevation:I = 0x7f060053
|
||||
|
||||
.field public static cardview_default_radius:I = 0x7f060054
|
||||
|
||||
|
||||
# direct methods
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,33 @@
|
||||
.class public final Landroidx/cardview/R$style;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/cardview/R;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "style"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static Base_CardView:I = 0x7f100010
|
||||
|
||||
.field public static CardView:I = 0x7f100120
|
||||
|
||||
.field public static CardView_Dark:I = 0x7f100121
|
||||
|
||||
.field public static CardView_Light:I = 0x7f100122
|
||||
|
||||
|
||||
# direct methods
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,84 @@
|
||||
.class public final Landroidx/cardview/R$styleable;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/cardview/R;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "styleable"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static CardView:[I = null
|
||||
|
||||
.field public static CardView_android_minHeight:I = 0x1
|
||||
|
||||
.field public static CardView_android_minWidth:I = 0x0
|
||||
|
||||
.field public static CardView_cardBackgroundColor:I = 0x2
|
||||
|
||||
.field public static CardView_cardCornerRadius:I = 0x3
|
||||
|
||||
.field public static CardView_cardElevation:I = 0x4
|
||||
|
||||
.field public static CardView_cardMaxElevation:I = 0x5
|
||||
|
||||
.field public static CardView_cardPreventCornerOverlap:I = 0x6
|
||||
|
||||
.field public static CardView_cardUseCompatPadding:I = 0x7
|
||||
|
||||
.field public static CardView_contentPadding:I = 0x8
|
||||
|
||||
.field public static CardView_contentPaddingBottom:I = 0x9
|
||||
|
||||
.field public static CardView_contentPaddingLeft:I = 0xa
|
||||
|
||||
.field public static CardView_contentPaddingRight:I = 0xb
|
||||
|
||||
.field public static CardView_contentPaddingTop:I = 0xc
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
const/16 v0, 0xd
|
||||
|
||||
new-array v0, v0, [I
|
||||
|
||||
fill-array-data v0, :array_0
|
||||
|
||||
sput-object v0, Landroidx/cardview/R$styleable;->CardView:[I
|
||||
|
||||
return-void
|
||||
|
||||
:array_0
|
||||
.array-data 4
|
||||
0x101013f
|
||||
0x1010140
|
||||
0x7f03009a
|
||||
0x7f03009b
|
||||
0x7f03009c
|
||||
0x7f03009e
|
||||
0x7f03009f
|
||||
0x7f0300a0
|
||||
0x7f030140
|
||||
0x7f030141
|
||||
0x7f030143
|
||||
0x7f030144
|
||||
0x7f030146
|
||||
.end array-data
|
||||
.end method
|
||||
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,24 @@
|
||||
.class public final Landroidx/cardview/R;
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Landroidx/cardview/R$attr;,
|
||||
Landroidx/cardview/R$color;,
|
||||
Landroidx/cardview/R$dimen;,
|
||||
Landroidx/cardview/R$style;,
|
||||
Landroidx/cardview/R$styleable;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,176 @@
|
||||
.class Landroidx/cardview/widget/CardView$1;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CardView.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/cardview/widget/CardView;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private mCardBackground:Landroid/graphics/drawable/Drawable;
|
||||
|
||||
.field final synthetic this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/cardview/widget/CardView;)V
|
||||
.locals 0
|
||||
|
||||
.line 447
|
||||
iput-object p1, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public getCardBackground()Landroid/graphics/drawable/Drawable;
|
||||
.locals 1
|
||||
|
||||
.line 485
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView$1;->mCardBackground:Landroid/graphics/drawable/Drawable;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public getCardView()Landroid/view/View;
|
||||
.locals 1
|
||||
|
||||
.line 490
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public getPreventCornerOverlap()Z
|
||||
.locals 1
|
||||
|
||||
.line 463
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/cardview/widget/CardView;->getPreventCornerOverlap()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getUseCompatPadding()Z
|
||||
.locals 1
|
||||
|
||||
.line 458
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/cardview/widget/CardView;->getUseCompatPadding()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public setCardBackground(Landroid/graphics/drawable/Drawable;)V
|
||||
.locals 1
|
||||
|
||||
.line 452
|
||||
iput-object p1, p0, Landroidx/cardview/widget/CardView$1;->mCardBackground:Landroid/graphics/drawable/Drawable;
|
||||
|
||||
.line 453
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/cardview/widget/CardView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setMinWidthHeightInternal(II)V
|
||||
.locals 1
|
||||
|
||||
.line 475
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
iget v0, v0, Landroidx/cardview/widget/CardView;->mUserSetMinWidth:I
|
||||
|
||||
if-le p1, v0, :cond_0
|
||||
|
||||
.line 476
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
invoke-static {v0, p1}, Landroidx/cardview/widget/CardView;->access$101(Landroidx/cardview/widget/CardView;I)V
|
||||
|
||||
.line 478
|
||||
:cond_0
|
||||
iget-object p1, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
iget p1, p1, Landroidx/cardview/widget/CardView;->mUserSetMinHeight:I
|
||||
|
||||
if-le p2, p1, :cond_1
|
||||
|
||||
.line 479
|
||||
iget-object p1, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
invoke-static {p1, p2}, Landroidx/cardview/widget/CardView;->access$201(Landroidx/cardview/widget/CardView;I)V
|
||||
|
||||
:cond_1
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setShadowPadding(IIII)V
|
||||
.locals 2
|
||||
|
||||
.line 468
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
iget-object v0, v0, Landroidx/cardview/widget/CardView;->mShadowBounds:Landroid/graphics/Rect;
|
||||
|
||||
invoke-virtual {v0, p1, p2, p3, p4}, Landroid/graphics/Rect;->set(IIII)V
|
||||
|
||||
.line 469
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
iget-object v1, v0, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
iget v1, v1, Landroid/graphics/Rect;->left:I
|
||||
|
||||
add-int/2addr p1, v1
|
||||
|
||||
iget-object v1, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
iget-object v1, v1, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
iget v1, v1, Landroid/graphics/Rect;->top:I
|
||||
|
||||
add-int/2addr p2, v1
|
||||
|
||||
iget-object v1, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
iget-object v1, v1, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
iget v1, v1, Landroid/graphics/Rect;->right:I
|
||||
|
||||
add-int/2addr p3, v1
|
||||
|
||||
iget-object v1, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
iget-object v1, v1, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
iget v1, v1, Landroid/graphics/Rect;->bottom:I
|
||||
|
||||
add-int/2addr p4, v1
|
||||
|
||||
invoke-static {v0, p1, p2, p3, p4}, Landroidx/cardview/widget/CardView;->access$001(Landroidx/cardview/widget/CardView;IIII)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,764 @@
|
||||
.class public Landroidx/cardview/widget/CardView;
|
||||
.super Landroid/widget/FrameLayout;
|
||||
.source "CardView.java"
|
||||
|
||||
|
||||
# static fields
|
||||
.field private static final COLOR_BACKGROUND_ATTR:[I
|
||||
|
||||
.field private static final IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private final mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
.field private mCompatPadding:Z
|
||||
|
||||
.field final mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
.field private mPreventCornerOverlap:Z
|
||||
|
||||
.field final mShadowBounds:Landroid/graphics/Rect;
|
||||
|
||||
.field mUserSetMinHeight:I
|
||||
|
||||
.field mUserSetMinWidth:I
|
||||
|
||||
|
||||
# direct methods
|
||||
.method static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
const v0, 0x1010031
|
||||
|
||||
.line 81
|
||||
filled-new-array {v0}, [I
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sput-object v0, Landroidx/cardview/widget/CardView;->COLOR_BACKGROUND_ATTR:[I
|
||||
|
||||
.line 86
|
||||
new-instance v0, Landroidx/cardview/widget/CardViewApi21Impl;
|
||||
|
||||
invoke-direct {v0}, Landroidx/cardview/widget/CardViewApi21Impl;-><init>()V
|
||||
|
||||
sput-object v0, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
.line 92
|
||||
invoke-interface {v0}, Landroidx/cardview/widget/CardViewImpl;->initStatic()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Landroid/content/Context;)V
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
.line 113
|
||||
invoke-direct {p0, p1, v0}, Landroidx/cardview/widget/CardView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
||||
.locals 1
|
||||
|
||||
.line 117
|
||||
sget v0, Landroidx/cardview/R$attr;->cardViewStyle:I
|
||||
|
||||
invoke-direct {p0, p1, p2, v0}, Landroidx/cardview/widget/CardView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
||||
.locals 9
|
||||
|
||||
.line 121
|
||||
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
||||
|
||||
.line 108
|
||||
new-instance v0, Landroid/graphics/Rect;
|
||||
|
||||
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
||||
|
||||
iput-object v0, p0, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
.line 110
|
||||
new-instance v1, Landroid/graphics/Rect;
|
||||
|
||||
invoke-direct {v1}, Landroid/graphics/Rect;-><init>()V
|
||||
|
||||
iput-object v1, p0, Landroidx/cardview/widget/CardView;->mShadowBounds:Landroid/graphics/Rect;
|
||||
|
||||
.line 447
|
||||
new-instance v3, Landroidx/cardview/widget/CardView$1;
|
||||
|
||||
invoke-direct {v3, p0}, Landroidx/cardview/widget/CardView$1;-><init>(Landroidx/cardview/widget/CardView;)V
|
||||
|
||||
iput-object v3, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
.line 123
|
||||
sget-object v1, Landroidx/cardview/R$styleable;->CardView:[I
|
||||
|
||||
sget v2, Landroidx/cardview/R$style;->CardView:I
|
||||
|
||||
invoke-virtual {p1, p2, v1, p3, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
.line 126
|
||||
sget p3, Landroidx/cardview/R$styleable;->CardView_cardBackgroundColor:I
|
||||
|
||||
invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
||||
|
||||
move-result p3
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
if-eqz p3, :cond_0
|
||||
|
||||
.line 127
|
||||
sget p3, Landroidx/cardview/R$styleable;->CardView_cardBackgroundColor:I
|
||||
|
||||
invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
|
||||
|
||||
move-result-object p3
|
||||
|
||||
:goto_0
|
||||
move-object v5, p3
|
||||
|
||||
goto :goto_2
|
||||
|
||||
.line 130
|
||||
:cond_0
|
||||
invoke-virtual {p0}, Landroidx/cardview/widget/CardView;->getContext()Landroid/content/Context;
|
||||
|
||||
move-result-object p3
|
||||
|
||||
sget-object v2, Landroidx/cardview/widget/CardView;->COLOR_BACKGROUND_ATTR:[I
|
||||
|
||||
invoke-virtual {p3, v2}, Landroid/content/Context;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;
|
||||
|
||||
move-result-object p3
|
||||
|
||||
.line 131
|
||||
invoke-virtual {p3, v1, v1}, Landroid/content/res/TypedArray;->getColor(II)I
|
||||
|
||||
move-result v2
|
||||
|
||||
.line 132
|
||||
invoke-virtual {p3}, Landroid/content/res/TypedArray;->recycle()V
|
||||
|
||||
const/4 p3, 0x3
|
||||
|
||||
.line 135
|
||||
new-array p3, p3, [F
|
||||
|
||||
.line 136
|
||||
invoke-static {v2, p3}, Landroid/graphics/Color;->colorToHSV(I[F)V
|
||||
|
||||
const/4 v2, 0x2
|
||||
|
||||
.line 137
|
||||
aget p3, p3, v2
|
||||
|
||||
const/high16 v2, 0x3f000000 # 0.5f
|
||||
|
||||
cmpl-float p3, p3, v2
|
||||
|
||||
if-lez p3, :cond_1
|
||||
|
||||
.line 138
|
||||
invoke-virtual {p0}, Landroidx/cardview/widget/CardView;->getResources()Landroid/content/res/Resources;
|
||||
|
||||
move-result-object p3
|
||||
|
||||
sget v2, Landroidx/cardview/R$color;->cardview_light_background:I
|
||||
|
||||
invoke-virtual {p3, v2}, Landroid/content/res/Resources;->getColor(I)I
|
||||
|
||||
move-result p3
|
||||
|
||||
goto :goto_1
|
||||
|
||||
.line 139
|
||||
:cond_1
|
||||
invoke-virtual {p0}, Landroidx/cardview/widget/CardView;->getResources()Landroid/content/res/Resources;
|
||||
|
||||
move-result-object p3
|
||||
|
||||
sget v2, Landroidx/cardview/R$color;->cardview_dark_background:I
|
||||
|
||||
invoke-virtual {p3, v2}, Landroid/content/res/Resources;->getColor(I)I
|
||||
|
||||
move-result p3
|
||||
|
||||
.line 137
|
||||
:goto_1
|
||||
invoke-static {p3}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
|
||||
|
||||
move-result-object p3
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 141
|
||||
:goto_2
|
||||
sget p3, Landroidx/cardview/R$styleable;->CardView_cardCornerRadius:I
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-virtual {p2, p3, v2}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
||||
|
||||
move-result v6
|
||||
|
||||
.line 142
|
||||
sget p3, Landroidx/cardview/R$styleable;->CardView_cardElevation:I
|
||||
|
||||
invoke-virtual {p2, p3, v2}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
||||
|
||||
move-result v7
|
||||
|
||||
.line 143
|
||||
sget p3, Landroidx/cardview/R$styleable;->CardView_cardMaxElevation:I
|
||||
|
||||
invoke-virtual {p2, p3, v2}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
||||
|
||||
move-result p3
|
||||
|
||||
.line 144
|
||||
sget v2, Landroidx/cardview/R$styleable;->CardView_cardUseCompatPadding:I
|
||||
|
||||
invoke-virtual {p2, v2, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
||||
|
||||
move-result v2
|
||||
|
||||
iput-boolean v2, p0, Landroidx/cardview/widget/CardView;->mCompatPadding:Z
|
||||
|
||||
.line 145
|
||||
sget v2, Landroidx/cardview/R$styleable;->CardView_cardPreventCornerOverlap:I
|
||||
|
||||
const/4 v4, 0x1
|
||||
|
||||
invoke-virtual {p2, v2, v4}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
||||
|
||||
move-result v2
|
||||
|
||||
iput-boolean v2, p0, Landroidx/cardview/widget/CardView;->mPreventCornerOverlap:Z
|
||||
|
||||
.line 146
|
||||
sget v2, Landroidx/cardview/R$styleable;->CardView_contentPadding:I
|
||||
|
||||
invoke-virtual {p2, v2, v1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result v2
|
||||
|
||||
.line 147
|
||||
sget v4, Landroidx/cardview/R$styleable;->CardView_contentPaddingLeft:I
|
||||
|
||||
invoke-virtual {p2, v4, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result v4
|
||||
|
||||
iput v4, v0, Landroid/graphics/Rect;->left:I
|
||||
|
||||
.line 149
|
||||
sget v4, Landroidx/cardview/R$styleable;->CardView_contentPaddingTop:I
|
||||
|
||||
invoke-virtual {p2, v4, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result v4
|
||||
|
||||
iput v4, v0, Landroid/graphics/Rect;->top:I
|
||||
|
||||
.line 151
|
||||
sget v4, Landroidx/cardview/R$styleable;->CardView_contentPaddingRight:I
|
||||
|
||||
invoke-virtual {p2, v4, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result v4
|
||||
|
||||
iput v4, v0, Landroid/graphics/Rect;->right:I
|
||||
|
||||
.line 153
|
||||
sget v4, Landroidx/cardview/R$styleable;->CardView_contentPaddingBottom:I
|
||||
|
||||
invoke-virtual {p2, v4, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result v2
|
||||
|
||||
iput v2, v0, Landroid/graphics/Rect;->bottom:I
|
||||
|
||||
cmpl-float v0, v7, p3
|
||||
|
||||
if-lez v0, :cond_2
|
||||
|
||||
move v8, v7
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_2
|
||||
move v8, p3
|
||||
|
||||
.line 158
|
||||
:goto_3
|
||||
sget p3, Landroidx/cardview/R$styleable;->CardView_android_minWidth:I
|
||||
|
||||
invoke-virtual {p2, p3, v1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result p3
|
||||
|
||||
iput p3, p0, Landroidx/cardview/widget/CardView;->mUserSetMinWidth:I
|
||||
|
||||
.line 159
|
||||
sget p3, Landroidx/cardview/R$styleable;->CardView_android_minHeight:I
|
||||
|
||||
invoke-virtual {p2, p3, v1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result p3
|
||||
|
||||
iput p3, p0, Landroidx/cardview/widget/CardView;->mUserSetMinHeight:I
|
||||
|
||||
.line 160
|
||||
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
|
||||
|
||||
.line 162
|
||||
sget-object v2, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
move-object v4, p1
|
||||
|
||||
invoke-interface/range {v2 .. v8}, Landroidx/cardview/widget/CardViewImpl;->initialize(Landroidx/cardview/widget/CardViewDelegate;Landroid/content/Context;Landroid/content/res/ColorStateList;FFF)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method static synthetic access$001(Landroidx/cardview/widget/CardView;IIII)V
|
||||
.locals 0
|
||||
|
||||
.line 79
|
||||
invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/FrameLayout;->setPadding(IIII)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method static synthetic access$101(Landroidx/cardview/widget/CardView;I)V
|
||||
.locals 0
|
||||
|
||||
.line 79
|
||||
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setMinimumWidth(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method static synthetic access$201(Landroidx/cardview/widget/CardView;I)V
|
||||
.locals 0
|
||||
|
||||
.line 79
|
||||
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setMinimumHeight(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public getCardBackgroundColor()Landroid/content/res/ColorStateList;
|
||||
.locals 2
|
||||
|
||||
.line 303
|
||||
sget-object v0, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v1, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {v0, v1}, Landroidx/cardview/widget/CardViewImpl;->getBackgroundColor(Landroidx/cardview/widget/CardViewDelegate;)Landroid/content/res/ColorStateList;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public getCardElevation()F
|
||||
.locals 2
|
||||
|
||||
.line 387
|
||||
sget-object v0, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v1, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {v0, v1}, Landroidx/cardview/widget/CardViewImpl;->getElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getContentPaddingBottom()I
|
||||
.locals 1
|
||||
|
||||
.line 343
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
iget v0, v0, Landroid/graphics/Rect;->bottom:I
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getContentPaddingLeft()I
|
||||
.locals 1
|
||||
|
||||
.line 313
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
iget v0, v0, Landroid/graphics/Rect;->left:I
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getContentPaddingRight()I
|
||||
.locals 1
|
||||
|
||||
.line 323
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
iget v0, v0, Landroid/graphics/Rect;->right:I
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getContentPaddingTop()I
|
||||
.locals 1
|
||||
|
||||
.line 333
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
iget v0, v0, Landroid/graphics/Rect;->top:I
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getMaxCardElevation()F
|
||||
.locals 2
|
||||
|
||||
.line 413
|
||||
sget-object v0, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v1, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {v0, v1}, Landroidx/cardview/widget/CardViewImpl;->getMaxElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getPreventCornerOverlap()Z
|
||||
.locals 1
|
||||
|
||||
.line 424
|
||||
iget-boolean v0, p0, Landroidx/cardview/widget/CardView;->mPreventCornerOverlap:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getRadius()F
|
||||
.locals 2
|
||||
|
||||
.line 364
|
||||
sget-object v0, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v1, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {v0, v1}, Landroidx/cardview/widget/CardViewImpl;->getRadius(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getUseCompatPadding()Z
|
||||
.locals 1
|
||||
|
||||
.line 183
|
||||
iget-boolean v0, p0, Landroidx/cardview/widget/CardView;->mCompatPadding:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method protected onMeasure(II)V
|
||||
.locals 6
|
||||
|
||||
.line 232
|
||||
sget-object v0, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
instance-of v1, v0, Landroidx/cardview/widget/CardViewApi21Impl;
|
||||
|
||||
if-nez v1, :cond_2
|
||||
|
||||
.line 233
|
||||
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
||||
|
||||
move-result v1
|
||||
|
||||
const/high16 v2, 0x40000000 # 2.0f
|
||||
|
||||
const/high16 v3, -0x80000000
|
||||
|
||||
if-eq v1, v3, :cond_0
|
||||
|
||||
if-eq v1, v2, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 237
|
||||
:cond_0
|
||||
iget-object v4, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {v0, v4}, Landroidx/cardview/widget/CardViewImpl;->getMinWidth(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v4
|
||||
|
||||
float-to-double v4, v4
|
||||
|
||||
invoke-static {v4, v5}, Ljava/lang/Math;->ceil(D)D
|
||||
|
||||
move-result-wide v4
|
||||
|
||||
double-to-int v4, v4
|
||||
|
||||
.line 239
|
||||
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
||||
|
||||
move-result p1
|
||||
|
||||
.line 238
|
||||
invoke-static {v4, p1}, Ljava/lang/Math;->max(II)I
|
||||
|
||||
move-result p1
|
||||
|
||||
invoke-static {p1, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
||||
|
||||
move-result p1
|
||||
|
||||
.line 246
|
||||
:goto_0
|
||||
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eq v1, v3, :cond_1
|
||||
|
||||
if-eq v1, v2, :cond_1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
.line 250
|
||||
:cond_1
|
||||
iget-object v2, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {v0, v2}, Landroidx/cardview/widget/CardViewImpl;->getMinHeight(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v0
|
||||
|
||||
float-to-double v2, v0
|
||||
|
||||
invoke-static {v2, v3}, Ljava/lang/Math;->ceil(D)D
|
||||
|
||||
move-result-wide v2
|
||||
|
||||
double-to-int v0, v2
|
||||
|
||||
.line 252
|
||||
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
||||
|
||||
move-result p2
|
||||
|
||||
.line 251
|
||||
invoke-static {v0, p2}, Ljava/lang/Math;->max(II)I
|
||||
|
||||
move-result p2
|
||||
|
||||
invoke-static {p2, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
||||
|
||||
move-result p2
|
||||
|
||||
.line 258
|
||||
:goto_1
|
||||
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
||||
|
||||
goto :goto_2
|
||||
|
||||
.line 260
|
||||
:cond_2
|
||||
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
||||
|
||||
:goto_2
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setCardBackgroundColor(I)V
|
||||
.locals 2
|
||||
|
||||
.line 283
|
||||
sget-object v0, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v1, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-static {p1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-interface {v0, v1, p1}, Landroidx/cardview/widget/CardViewImpl;->setBackgroundColor(Landroidx/cardview/widget/CardViewDelegate;Landroid/content/res/ColorStateList;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setCardBackgroundColor(Landroid/content/res/ColorStateList;)V
|
||||
.locals 2
|
||||
|
||||
.line 293
|
||||
sget-object v0, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v1, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {v0, v1, p1}, Landroidx/cardview/widget/CardViewImpl;->setBackgroundColor(Landroidx/cardview/widget/CardViewDelegate;Landroid/content/res/ColorStateList;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setCardElevation(F)V
|
||||
.locals 2
|
||||
|
||||
.line 376
|
||||
sget-object v0, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v1, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {v0, v1, p1}, Landroidx/cardview/widget/CardViewImpl;->setElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setContentPadding(IIII)V
|
||||
.locals 1
|
||||
|
||||
.line 226
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
invoke-virtual {v0, p1, p2, p3, p4}, Landroid/graphics/Rect;->set(IIII)V
|
||||
|
||||
.line 227
|
||||
sget-object p1, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object p2, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {p1, p2}, Landroidx/cardview/widget/CardViewImpl;->updatePadding(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setMaxCardElevation(F)V
|
||||
.locals 2
|
||||
|
||||
.line 402
|
||||
sget-object v0, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v1, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {v0, v1, p1}, Landroidx/cardview/widget/CardViewImpl;->setMaxElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setMinimumHeight(I)V
|
||||
.locals 0
|
||||
|
||||
.line 272
|
||||
iput p1, p0, Landroidx/cardview/widget/CardView;->mUserSetMinHeight:I
|
||||
|
||||
.line 273
|
||||
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setMinimumHeight(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setMinimumWidth(I)V
|
||||
.locals 0
|
||||
|
||||
.line 266
|
||||
iput p1, p0, Landroidx/cardview/widget/CardView;->mUserSetMinWidth:I
|
||||
|
||||
.line 267
|
||||
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setMinimumWidth(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setPadding(IIII)V
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setPaddingRelative(IIII)V
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setPreventCornerOverlap(Z)V
|
||||
.locals 1
|
||||
|
||||
.line 441
|
||||
iget-boolean v0, p0, Landroidx/cardview/widget/CardView;->mPreventCornerOverlap:Z
|
||||
|
||||
if-eq p1, v0, :cond_0
|
||||
|
||||
.line 442
|
||||
iput-boolean p1, p0, Landroidx/cardview/widget/CardView;->mPreventCornerOverlap:Z
|
||||
|
||||
.line 443
|
||||
sget-object p1, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {p1, v0}, Landroidx/cardview/widget/CardViewImpl;->onPreventCornerOverlapChanged(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setRadius(F)V
|
||||
.locals 2
|
||||
|
||||
.line 354
|
||||
sget-object v0, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v1, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {v0, v1, p1}, Landroidx/cardview/widget/CardViewImpl;->setRadius(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setUseCompatPadding(Z)V
|
||||
.locals 1
|
||||
|
||||
.line 203
|
||||
iget-boolean v0, p0, Landroidx/cardview/widget/CardView;->mCompatPadding:Z
|
||||
|
||||
if-eq v0, p1, :cond_0
|
||||
|
||||
.line 204
|
||||
iput-boolean p1, p0, Landroidx/cardview/widget/CardView;->mCompatPadding:Z
|
||||
|
||||
.line 205
|
||||
sget-object p1, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {p1, v0}, Landroidx/cardview/widget/CardViewImpl;->onCompatPaddingChanged(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,45 @@
|
||||
.class Landroidx/cardview/widget/CardViewApi17Impl$1;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CardViewApi17Impl.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/cardview/widget/RoundRectDrawableWithShadow$RoundRectHelper;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Landroidx/cardview/widget/CardViewApi17Impl;->initStatic()V
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$0:Landroidx/cardview/widget/CardViewApi17Impl;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/cardview/widget/CardViewApi17Impl;)V
|
||||
.locals 0
|
||||
|
||||
.line 30
|
||||
iput-object p1, p0, Landroidx/cardview/widget/CardViewApi17Impl$1;->this$0:Landroidx/cardview/widget/CardViewApi17Impl;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public drawRoundRect(Landroid/graphics/Canvas;Landroid/graphics/RectF;FLandroid/graphics/Paint;)V
|
||||
.locals 0
|
||||
|
||||
.line 34
|
||||
invoke-virtual {p1, p2, p3, p3, p4}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,29 @@
|
||||
.class Landroidx/cardview/widget/CardViewApi17Impl;
|
||||
.super Landroidx/cardview/widget/CardViewBaseImpl;
|
||||
.source "CardViewApi17Impl.java"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
.line 25
|
||||
invoke-direct {p0}, Landroidx/cardview/widget/CardViewBaseImpl;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public initStatic()V
|
||||
.locals 1
|
||||
|
||||
.line 29
|
||||
new-instance v0, Landroidx/cardview/widget/CardViewApi17Impl$1;
|
||||
|
||||
invoke-direct {v0, p0}, Landroidx/cardview/widget/CardViewApi17Impl$1;-><init>(Landroidx/cardview/widget/CardViewApi17Impl;)V
|
||||
|
||||
sput-object v0, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->sRoundRectHelper:Landroidx/cardview/widget/RoundRectDrawableWithShadow$RoundRectHelper;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,319 @@
|
||||
.class Landroidx/cardview/widget/CardViewApi21Impl;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CardViewApi21Impl.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
.line 26
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
||||
.locals 0
|
||||
|
||||
.line 122
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getCardBackground()Landroid/graphics/drawable/Drawable;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
check-cast p1, Landroidx/cardview/widget/RoundRectDrawable;
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public getBackgroundColor(Landroidx/cardview/widget/CardViewDelegate;)Landroid/content/res/ColorStateList;
|
||||
.locals 0
|
||||
|
||||
.line 118
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Landroidx/cardview/widget/RoundRectDrawable;->getColor()Landroid/content/res/ColorStateList;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public getElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.locals 0
|
||||
|
||||
.line 83
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getCardView()Landroid/view/View;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Landroid/view/View;->getElevation()F
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getMaxElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.locals 0
|
||||
|
||||
.line 58
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Landroidx/cardview/widget/RoundRectDrawable;->getPadding()F
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getMinHeight(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.locals 1
|
||||
|
||||
.line 68
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getRadius(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result p1
|
||||
|
||||
const/high16 v0, 0x40000000 # 2.0f
|
||||
|
||||
mul-float/2addr p1, v0
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getMinWidth(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.locals 1
|
||||
|
||||
.line 63
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getRadius(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result p1
|
||||
|
||||
const/high16 v0, 0x40000000 # 2.0f
|
||||
|
||||
mul-float/2addr p1, v0
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getRadius(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.locals 0
|
||||
|
||||
.line 73
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Landroidx/cardview/widget/RoundRectDrawable;->getRadius()F
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public initStatic()V
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public initialize(Landroidx/cardview/widget/CardViewDelegate;Landroid/content/Context;Landroid/content/res/ColorStateList;FFF)V
|
||||
.locals 0
|
||||
|
||||
.line 31
|
||||
new-instance p2, Landroidx/cardview/widget/RoundRectDrawable;
|
||||
|
||||
invoke-direct {p2, p3, p4}, Landroidx/cardview/widget/RoundRectDrawable;-><init>(Landroid/content/res/ColorStateList;F)V
|
||||
|
||||
.line 32
|
||||
invoke-interface {p1, p2}, Landroidx/cardview/widget/CardViewDelegate;->setCardBackground(Landroid/graphics/drawable/Drawable;)V
|
||||
|
||||
.line 34
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getCardView()Landroid/view/View;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
const/4 p3, 0x1
|
||||
|
||||
.line 35
|
||||
invoke-virtual {p2, p3}, Landroid/view/View;->setClipToOutline(Z)V
|
||||
|
||||
.line 36
|
||||
invoke-virtual {p2, p5}, Landroid/view/View;->setElevation(F)V
|
||||
|
||||
.line 37
|
||||
invoke-virtual {p0, p1, p6}, Landroidx/cardview/widget/CardViewApi21Impl;->setMaxElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onCompatPaddingChanged(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
.locals 1
|
||||
|
||||
.line 103
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getMaxElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-virtual {p0, p1, v0}, Landroidx/cardview/widget/CardViewApi21Impl;->setMaxElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onPreventCornerOverlapChanged(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
.locals 1
|
||||
|
||||
.line 108
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getMaxElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-virtual {p0, p1, v0}, Landroidx/cardview/widget/CardViewApi21Impl;->setMaxElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setBackgroundColor(Landroidx/cardview/widget/CardViewDelegate;Landroid/content/res/ColorStateList;)V
|
||||
.locals 0
|
||||
|
||||
.line 113
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1, p2}, Landroidx/cardview/widget/RoundRectDrawable;->setColor(Landroid/content/res/ColorStateList;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
.locals 0
|
||||
|
||||
.line 78
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getCardView()Landroid/view/View;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1, p2}, Landroid/view/View;->setElevation(F)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setMaxElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
.locals 3
|
||||
|
||||
.line 51
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
.line 52
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getUseCompatPadding()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getPreventCornerOverlap()Z
|
||||
|
||||
move-result v2
|
||||
|
||||
.line 51
|
||||
invoke-virtual {v0, p2, v1, v2}, Landroidx/cardview/widget/RoundRectDrawable;->setPadding(FZZ)V
|
||||
|
||||
.line 53
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->updatePadding(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setRadius(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
.locals 0
|
||||
|
||||
.line 42
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1, p2}, Landroidx/cardview/widget/RoundRectDrawable;->setRadius(F)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public updatePadding(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
.locals 4
|
||||
|
||||
.line 88
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getUseCompatPadding()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
.line 89
|
||||
invoke-interface {p1, v0, v0, v0, v0}, Landroidx/cardview/widget/CardViewDelegate;->setShadowPadding(IIII)V
|
||||
|
||||
return-void
|
||||
|
||||
.line 92
|
||||
:cond_0
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getMaxElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v0
|
||||
|
||||
.line 93
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getRadius(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v1
|
||||
|
||||
.line 95
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getPreventCornerOverlap()Z
|
||||
|
||||
move-result v2
|
||||
|
||||
invoke-static {v0, v1, v2}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->calculateHorizontalPadding(FFZ)F
|
||||
|
||||
move-result v2
|
||||
|
||||
float-to-double v2, v2
|
||||
|
||||
.line 94
|
||||
invoke-static {v2, v3}, Ljava/lang/Math;->ceil(D)D
|
||||
|
||||
move-result-wide v2
|
||||
|
||||
double-to-int v2, v2
|
||||
|
||||
.line 97
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getPreventCornerOverlap()Z
|
||||
|
||||
move-result v3
|
||||
|
||||
invoke-static {v0, v1, v3}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->calculateVerticalPadding(FFZ)F
|
||||
|
||||
move-result v0
|
||||
|
||||
float-to-double v0, v0
|
||||
|
||||
.line 96
|
||||
invoke-static {v0, v1}, Ljava/lang/Math;->ceil(D)D
|
||||
|
||||
move-result-wide v0
|
||||
|
||||
double-to-int v0, v0
|
||||
|
||||
.line 98
|
||||
invoke-interface {p1, v2, v0, v2, v0}, Landroidx/cardview/widget/CardViewDelegate;->setShadowPadding(IIII)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,240 @@
|
||||
.class Landroidx/cardview/widget/CardViewBaseImpl$1;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CardViewBaseImpl.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/cardview/widget/RoundRectDrawableWithShadow$RoundRectHelper;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Landroidx/cardview/widget/CardViewBaseImpl;->initStatic()V
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$0:Landroidx/cardview/widget/CardViewBaseImpl;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/cardview/widget/CardViewBaseImpl;)V
|
||||
.locals 0
|
||||
|
||||
.line 38
|
||||
iput-object p1, p0, Landroidx/cardview/widget/CardViewBaseImpl$1;->this$0:Landroidx/cardview/widget/CardViewBaseImpl;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public drawRoundRect(Landroid/graphics/Canvas;Landroid/graphics/RectF;FLandroid/graphics/Paint;)V
|
||||
.locals 16
|
||||
|
||||
move-object/from16 v0, p0
|
||||
|
||||
move-object/from16 v7, p1
|
||||
|
||||
move-object/from16 v8, p2
|
||||
|
||||
const/high16 v1, 0x40000000 # 2.0f
|
||||
|
||||
mul-float v1, v1, p3
|
||||
|
||||
.line 43
|
||||
invoke-virtual/range {p2 .. p2}, Landroid/graphics/RectF;->width()F
|
||||
|
||||
move-result v2
|
||||
|
||||
sub-float/2addr v2, v1
|
||||
|
||||
const/high16 v9, 0x3f800000 # 1.0f
|
||||
|
||||
sub-float v10, v2, v9
|
||||
|
||||
.line 44
|
||||
invoke-virtual/range {p2 .. p2}, Landroid/graphics/RectF;->height()F
|
||||
|
||||
move-result v2
|
||||
|
||||
sub-float/2addr v2, v1
|
||||
|
||||
sub-float v11, v2, v9
|
||||
|
||||
cmpl-float v1, p3, v9
|
||||
|
||||
if-ltz v1, :cond_0
|
||||
|
||||
const/high16 v1, 0x3f000000 # 0.5f
|
||||
|
||||
add-float v12, p3, v1
|
||||
|
||||
.line 48
|
||||
iget-object v1, v0, Landroidx/cardview/widget/CardViewBaseImpl$1;->this$0:Landroidx/cardview/widget/CardViewBaseImpl;
|
||||
|
||||
iget-object v1, v1, Landroidx/cardview/widget/CardViewBaseImpl;->mCornerRect:Landroid/graphics/RectF;
|
||||
|
||||
neg-float v2, v12
|
||||
|
||||
invoke-virtual {v1, v2, v2, v12, v12}, Landroid/graphics/RectF;->set(FFFF)V
|
||||
|
||||
.line 50
|
||||
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I
|
||||
|
||||
move-result v13
|
||||
|
||||
.line 51
|
||||
iget v1, v8, Landroid/graphics/RectF;->left:F
|
||||
|
||||
add-float/2addr v1, v12
|
||||
|
||||
iget v2, v8, Landroid/graphics/RectF;->top:F
|
||||
|
||||
add-float/2addr v2, v12
|
||||
|
||||
invoke-virtual {v7, v1, v2}, Landroid/graphics/Canvas;->translate(FF)V
|
||||
|
||||
.line 53
|
||||
iget-object v1, v0, Landroidx/cardview/widget/CardViewBaseImpl$1;->this$0:Landroidx/cardview/widget/CardViewBaseImpl;
|
||||
|
||||
iget-object v2, v1, Landroidx/cardview/widget/CardViewBaseImpl;->mCornerRect:Landroid/graphics/RectF;
|
||||
|
||||
const/high16 v4, 0x42b40000 # 90.0f
|
||||
|
||||
const/4 v5, 0x1
|
||||
|
||||
const/high16 v3, 0x43340000 # 180.0f
|
||||
|
||||
move-object/from16 v1, p1
|
||||
|
||||
move-object/from16 v6, p4
|
||||
|
||||
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V
|
||||
|
||||
const/4 v14, 0x0
|
||||
|
||||
.line 54
|
||||
invoke-virtual {v7, v10, v14}, Landroid/graphics/Canvas;->translate(FF)V
|
||||
|
||||
const/high16 v15, 0x42b40000 # 90.0f
|
||||
|
||||
.line 55
|
||||
invoke-virtual {v7, v15}, Landroid/graphics/Canvas;->rotate(F)V
|
||||
|
||||
.line 56
|
||||
iget-object v1, v0, Landroidx/cardview/widget/CardViewBaseImpl$1;->this$0:Landroidx/cardview/widget/CardViewBaseImpl;
|
||||
|
||||
iget-object v2, v1, Landroidx/cardview/widget/CardViewBaseImpl;->mCornerRect:Landroid/graphics/RectF;
|
||||
|
||||
move-object/from16 v1, p1
|
||||
|
||||
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V
|
||||
|
||||
.line 57
|
||||
invoke-virtual {v7, v11, v14}, Landroid/graphics/Canvas;->translate(FF)V
|
||||
|
||||
.line 58
|
||||
invoke-virtual {v7, v15}, Landroid/graphics/Canvas;->rotate(F)V
|
||||
|
||||
.line 59
|
||||
iget-object v1, v0, Landroidx/cardview/widget/CardViewBaseImpl$1;->this$0:Landroidx/cardview/widget/CardViewBaseImpl;
|
||||
|
||||
iget-object v2, v1, Landroidx/cardview/widget/CardViewBaseImpl;->mCornerRect:Landroid/graphics/RectF;
|
||||
|
||||
move-object/from16 v1, p1
|
||||
|
||||
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V
|
||||
|
||||
.line 60
|
||||
invoke-virtual {v7, v10, v14}, Landroid/graphics/Canvas;->translate(FF)V
|
||||
|
||||
.line 61
|
||||
invoke-virtual {v7, v15}, Landroid/graphics/Canvas;->rotate(F)V
|
||||
|
||||
.line 62
|
||||
iget-object v1, v0, Landroidx/cardview/widget/CardViewBaseImpl$1;->this$0:Landroidx/cardview/widget/CardViewBaseImpl;
|
||||
|
||||
iget-object v2, v1, Landroidx/cardview/widget/CardViewBaseImpl;->mCornerRect:Landroid/graphics/RectF;
|
||||
|
||||
move-object/from16 v1, p1
|
||||
|
||||
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V
|
||||
|
||||
.line 63
|
||||
invoke-virtual {v7, v13}, Landroid/graphics/Canvas;->restoreToCount(I)V
|
||||
|
||||
.line 65
|
||||
iget v1, v8, Landroid/graphics/RectF;->left:F
|
||||
|
||||
add-float/2addr v1, v12
|
||||
|
||||
sub-float v2, v1, v9
|
||||
|
||||
iget v3, v8, Landroid/graphics/RectF;->top:F
|
||||
|
||||
iget v1, v8, Landroid/graphics/RectF;->right:F
|
||||
|
||||
sub-float/2addr v1, v12
|
||||
|
||||
add-float v4, v1, v9
|
||||
|
||||
iget v1, v8, Landroid/graphics/RectF;->top:F
|
||||
|
||||
add-float v5, v1, v12
|
||||
|
||||
move-object/from16 v1, p1
|
||||
|
||||
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
|
||||
|
||||
.line 69
|
||||
iget v1, v8, Landroid/graphics/RectF;->left:F
|
||||
|
||||
add-float/2addr v1, v12
|
||||
|
||||
sub-float v2, v1, v9
|
||||
|
||||
iget v1, v8, Landroid/graphics/RectF;->bottom:F
|
||||
|
||||
sub-float v3, v1, v12
|
||||
|
||||
iget v1, v8, Landroid/graphics/RectF;->right:F
|
||||
|
||||
sub-float/2addr v1, v12
|
||||
|
||||
add-float v4, v1, v9
|
||||
|
||||
iget v5, v8, Landroid/graphics/RectF;->bottom:F
|
||||
|
||||
move-object/from16 v1, p1
|
||||
|
||||
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
|
||||
|
||||
.line 74
|
||||
:cond_0
|
||||
iget v2, v8, Landroid/graphics/RectF;->left:F
|
||||
|
||||
iget v1, v8, Landroid/graphics/RectF;->top:F
|
||||
|
||||
add-float v3, v1, p3
|
||||
|
||||
iget v4, v8, Landroid/graphics/RectF;->right:F
|
||||
|
||||
iget v1, v8, Landroid/graphics/RectF;->bottom:F
|
||||
|
||||
sub-float v5, v1, p3
|
||||
|
||||
move-object/from16 v1, p1
|
||||
|
||||
move-object/from16 v6, p4
|
||||
|
||||
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,349 @@
|
||||
.class Landroidx/cardview/widget/CardViewBaseImpl;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CardViewBaseImpl.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final mCornerRect:Landroid/graphics/RectF;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
.line 27
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
.line 29
|
||||
new-instance v0, Landroid/graphics/RectF;
|
||||
|
||||
invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V
|
||||
|
||||
iput-object v0, p0, Landroidx/cardview/widget/CardViewBaseImpl;->mCornerRect:Landroid/graphics/RectF;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private createBackground(Landroid/content/Context;Landroid/content/res/ColorStateList;FFF)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
.locals 7
|
||||
|
||||
.line 93
|
||||
new-instance v6, Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
move-object v0, v6
|
||||
|
||||
move-object v2, p2
|
||||
|
||||
move v3, p3
|
||||
|
||||
move v4, p4
|
||||
|
||||
move v5, p5
|
||||
|
||||
invoke-direct/range {v0 .. v5}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;-><init>(Landroid/content/res/Resources;Landroid/content/res/ColorStateList;FFF)V
|
||||
|
||||
return-object v6
|
||||
.end method
|
||||
|
||||
.method private getShadowBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
.locals 0
|
||||
|
||||
.line 171
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getCardBackground()Landroid/graphics/drawable/Drawable;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
check-cast p1, Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public getBackgroundColor(Landroidx/cardview/widget/CardViewDelegate;)Landroid/content/res/ColorStateList;
|
||||
.locals 0
|
||||
|
||||
.line 125
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getShadowBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->getColor()Landroid/content/res/ColorStateList;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public getElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.locals 0
|
||||
|
||||
.line 146
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getShadowBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->getShadowSize()F
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getMaxElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.locals 0
|
||||
|
||||
.line 157
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getShadowBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->getMaxShadowSize()F
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getMinHeight(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.locals 0
|
||||
|
||||
.line 167
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getShadowBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->getMinHeight()F
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getMinWidth(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.locals 0
|
||||
|
||||
.line 162
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getShadowBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->getMinWidth()F
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getRadius(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.locals 0
|
||||
|
||||
.line 136
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getShadowBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->getCornerRadius()F
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public initStatic()V
|
||||
.locals 1
|
||||
|
||||
.line 37
|
||||
new-instance v0, Landroidx/cardview/widget/CardViewBaseImpl$1;
|
||||
|
||||
invoke-direct {v0, p0}, Landroidx/cardview/widget/CardViewBaseImpl$1;-><init>(Landroidx/cardview/widget/CardViewBaseImpl;)V
|
||||
|
||||
sput-object v0, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->sRoundRectHelper:Landroidx/cardview/widget/RoundRectDrawableWithShadow$RoundRectHelper;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public initialize(Landroidx/cardview/widget/CardViewDelegate;Landroid/content/Context;Landroid/content/res/ColorStateList;FFF)V
|
||||
.locals 6
|
||||
|
||||
move-object v0, p0
|
||||
|
||||
move-object v1, p2
|
||||
|
||||
move-object v2, p3
|
||||
|
||||
move v3, p4
|
||||
|
||||
move v4, p5
|
||||
|
||||
move v5, p6
|
||||
|
||||
.line 83
|
||||
invoke-direct/range {v0 .. v5}, Landroidx/cardview/widget/CardViewBaseImpl;->createBackground(Landroid/content/Context;Landroid/content/res/ColorStateList;FFF)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
.line 85
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getPreventCornerOverlap()Z
|
||||
|
||||
move-result p3
|
||||
|
||||
invoke-virtual {p2, p3}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->setAddPaddingForCorners(Z)V
|
||||
|
||||
.line 86
|
||||
invoke-interface {p1, p2}, Landroidx/cardview/widget/CardViewDelegate;->setCardBackground(Landroid/graphics/drawable/Drawable;)V
|
||||
|
||||
.line 87
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->updatePadding(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onCompatPaddingChanged(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onPreventCornerOverlapChanged(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
.locals 2
|
||||
|
||||
.line 114
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getShadowBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getPreventCornerOverlap()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-virtual {v0, v1}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->setAddPaddingForCorners(Z)V
|
||||
|
||||
.line 115
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->updatePadding(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setBackgroundColor(Landroidx/cardview/widget/CardViewDelegate;Landroid/content/res/ColorStateList;)V
|
||||
.locals 0
|
||||
|
||||
.line 120
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getShadowBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1, p2}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->setColor(Landroid/content/res/ColorStateList;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
.locals 0
|
||||
|
||||
.line 141
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getShadowBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1, p2}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->setShadowSize(F)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setMaxElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
.locals 1
|
||||
|
||||
.line 151
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getShadowBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0, p2}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->setMaxShadowSize(F)V
|
||||
|
||||
.line 152
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->updatePadding(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setRadius(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
.locals 1
|
||||
|
||||
.line 130
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getShadowBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0, p2}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->setCornerRadius(F)V
|
||||
|
||||
.line 131
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->updatePadding(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public updatePadding(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
.locals 4
|
||||
|
||||
.line 99
|
||||
new-instance v0, Landroid/graphics/Rect;
|
||||
|
||||
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
||||
|
||||
.line 100
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getShadowBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v1, v0}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->getMaxShadowAndCornerPadding(Landroid/graphics/Rect;)V
|
||||
|
||||
.line 101
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getMinWidth(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v1
|
||||
|
||||
float-to-double v1, v1
|
||||
|
||||
invoke-static {v1, v2}, Ljava/lang/Math;->ceil(D)D
|
||||
|
||||
move-result-wide v1
|
||||
|
||||
double-to-int v1, v1
|
||||
|
||||
.line 102
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewBaseImpl;->getMinHeight(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v2
|
||||
|
||||
float-to-double v2, v2
|
||||
|
||||
invoke-static {v2, v3}, Ljava/lang/Math;->ceil(D)D
|
||||
|
||||
move-result-wide v2
|
||||
|
||||
double-to-int v2, v2
|
||||
|
||||
.line 101
|
||||
invoke-interface {p1, v1, v2}, Landroidx/cardview/widget/CardViewDelegate;->setMinWidthHeightInternal(II)V
|
||||
|
||||
.line 103
|
||||
iget v1, v0, Landroid/graphics/Rect;->left:I
|
||||
|
||||
iget v2, v0, Landroid/graphics/Rect;->top:I
|
||||
|
||||
iget v3, v0, Landroid/graphics/Rect;->right:I
|
||||
|
||||
iget v0, v0, Landroid/graphics/Rect;->bottom:I
|
||||
|
||||
invoke-interface {p1, v1, v2, v3, v0}, Landroidx/cardview/widget/CardViewDelegate;->setShadowPadding(IIII)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,26 @@
|
||||
.class interface abstract Landroidx/cardview/widget/CardViewDelegate;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CardViewDelegate.java"
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract getCardBackground()Landroid/graphics/drawable/Drawable;
|
||||
.end method
|
||||
|
||||
.method public abstract getCardView()Landroid/view/View;
|
||||
.end method
|
||||
|
||||
.method public abstract getPreventCornerOverlap()Z
|
||||
.end method
|
||||
|
||||
.method public abstract getUseCompatPadding()Z
|
||||
.end method
|
||||
|
||||
.method public abstract setCardBackground(Landroid/graphics/drawable/Drawable;)V
|
||||
.end method
|
||||
|
||||
.method public abstract setMinWidthHeightInternal(II)V
|
||||
.end method
|
||||
|
||||
.method public abstract setShadowPadding(IIII)V
|
||||
.end method
|
||||
@@ -0,0 +1,50 @@
|
||||
.class interface abstract Landroidx/cardview/widget/CardViewImpl;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CardViewImpl.java"
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract getBackgroundColor(Landroidx/cardview/widget/CardViewDelegate;)Landroid/content/res/ColorStateList;
|
||||
.end method
|
||||
|
||||
.method public abstract getElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.end method
|
||||
|
||||
.method public abstract getMaxElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.end method
|
||||
|
||||
.method public abstract getMinHeight(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.end method
|
||||
|
||||
.method public abstract getMinWidth(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.end method
|
||||
|
||||
.method public abstract getRadius(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.end method
|
||||
|
||||
.method public abstract initStatic()V
|
||||
.end method
|
||||
|
||||
.method public abstract initialize(Landroidx/cardview/widget/CardViewDelegate;Landroid/content/Context;Landroid/content/res/ColorStateList;FFF)V
|
||||
.end method
|
||||
|
||||
.method public abstract onCompatPaddingChanged(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
.end method
|
||||
|
||||
.method public abstract onPreventCornerOverlapChanged(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
.end method
|
||||
|
||||
.method public abstract setBackgroundColor(Landroidx/cardview/widget/CardViewDelegate;Landroid/content/res/ColorStateList;)V
|
||||
.end method
|
||||
|
||||
.method public abstract setElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
.end method
|
||||
|
||||
.method public abstract setMaxElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
.end method
|
||||
|
||||
.method public abstract setRadius(Landroidx/cardview/widget/CardViewDelegate;F)V
|
||||
.end method
|
||||
|
||||
.method public abstract updatePadding(Landroidx/cardview/widget/CardViewDelegate;)V
|
||||
.end method
|
||||
@@ -0,0 +1,612 @@
|
||||
.class Landroidx/cardview/widget/RoundRectDrawable;
|
||||
.super Landroid/graphics/drawable/Drawable;
|
||||
.source "RoundRectDrawable.java"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private mBackground:Landroid/content/res/ColorStateList;
|
||||
|
||||
.field private final mBoundsF:Landroid/graphics/RectF;
|
||||
|
||||
.field private final mBoundsI:Landroid/graphics/Rect;
|
||||
|
||||
.field private mInsetForPadding:Z
|
||||
|
||||
.field private mInsetForRadius:Z
|
||||
|
||||
.field private mPadding:F
|
||||
|
||||
.field private final mPaint:Landroid/graphics/Paint;
|
||||
|
||||
.field private mRadius:F
|
||||
|
||||
.field private mTint:Landroid/content/res/ColorStateList;
|
||||
|
||||
.field private mTintFilter:Landroid/graphics/PorterDuffColorFilter;
|
||||
|
||||
.field private mTintMode:Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroid/content/res/ColorStateList;F)V
|
||||
.locals 1
|
||||
|
||||
.line 55
|
||||
invoke-direct {p0}, Landroid/graphics/drawable/Drawable;-><init>()V
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
.line 47
|
||||
iput-boolean v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForPadding:Z
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
.line 48
|
||||
iput-boolean v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForRadius:Z
|
||||
|
||||
.line 53
|
||||
sget-object v0, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
iput-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTintMode:Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
.line 56
|
||||
iput p2, p0, Landroidx/cardview/widget/RoundRectDrawable;->mRadius:F
|
||||
|
||||
.line 57
|
||||
new-instance p2, Landroid/graphics/Paint;
|
||||
|
||||
const/4 v0, 0x5
|
||||
|
||||
invoke-direct {p2, v0}, Landroid/graphics/Paint;-><init>(I)V
|
||||
|
||||
iput-object p2, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPaint:Landroid/graphics/Paint;
|
||||
|
||||
.line 58
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/RoundRectDrawable;->setBackground(Landroid/content/res/ColorStateList;)V
|
||||
|
||||
.line 60
|
||||
new-instance p1, Landroid/graphics/RectF;
|
||||
|
||||
invoke-direct {p1}, Landroid/graphics/RectF;-><init>()V
|
||||
|
||||
iput-object p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBoundsF:Landroid/graphics/RectF;
|
||||
|
||||
.line 61
|
||||
new-instance p1, Landroid/graphics/Rect;
|
||||
|
||||
invoke-direct {p1}, Landroid/graphics/Rect;-><init>()V
|
||||
|
||||
iput-object p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBoundsI:Landroid/graphics/Rect;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private createTintFilter(Landroid/content/res/ColorStateList;Landroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuffColorFilter;
|
||||
.locals 2
|
||||
|
||||
if-eqz p1, :cond_1
|
||||
|
||||
if-nez p2, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 209
|
||||
:cond_0
|
||||
invoke-virtual {p0}, Landroidx/cardview/widget/RoundRectDrawable;->getState()[I
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-virtual {p1, v0, v1}, Landroid/content/res/ColorStateList;->getColorForState([II)I
|
||||
|
||||
move-result p1
|
||||
|
||||
.line 210
|
||||
new-instance v0, Landroid/graphics/PorterDuffColorFilter;
|
||||
|
||||
invoke-direct {v0, p1, p2}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
const/4 p1, 0x0
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method private setBackground(Landroid/content/res/ColorStateList;)V
|
||||
.locals 3
|
||||
|
||||
if-nez p1, :cond_0
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
.line 65
|
||||
invoke-static {p1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
:cond_0
|
||||
iput-object p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBackground:Landroid/content/res/ColorStateList;
|
||||
|
||||
.line 66
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPaint:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {p0}, Landroidx/cardview/widget/RoundRectDrawable;->getState()[I
|
||||
|
||||
move-result-object v1
|
||||
|
||||
iget-object v2, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBackground:Landroid/content/res/ColorStateList;
|
||||
|
||||
invoke-virtual {v2}, Landroid/content/res/ColorStateList;->getDefaultColor()I
|
||||
|
||||
move-result v2
|
||||
|
||||
invoke-virtual {p1, v1, v2}, Landroid/content/res/ColorStateList;->getColorForState([II)I
|
||||
|
||||
move-result p1
|
||||
|
||||
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private updateBounds(Landroid/graphics/Rect;)V
|
||||
.locals 5
|
||||
|
||||
if-nez p1, :cond_0
|
||||
|
||||
.line 106
|
||||
invoke-virtual {p0}, Landroidx/cardview/widget/RoundRectDrawable;->getBounds()Landroid/graphics/Rect;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
.line 108
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBoundsF:Landroid/graphics/RectF;
|
||||
|
||||
iget v1, p1, Landroid/graphics/Rect;->left:I
|
||||
|
||||
int-to-float v1, v1
|
||||
|
||||
iget v2, p1, Landroid/graphics/Rect;->top:I
|
||||
|
||||
int-to-float v2, v2
|
||||
|
||||
iget v3, p1, Landroid/graphics/Rect;->right:I
|
||||
|
||||
int-to-float v3, v3
|
||||
|
||||
iget v4, p1, Landroid/graphics/Rect;->bottom:I
|
||||
|
||||
int-to-float v4, v4
|
||||
|
||||
invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/RectF;->set(FFFF)V
|
||||
|
||||
.line 109
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBoundsI:Landroid/graphics/Rect;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V
|
||||
|
||||
.line 110
|
||||
iget-boolean p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForPadding:Z
|
||||
|
||||
if-eqz p1, :cond_1
|
||||
|
||||
.line 111
|
||||
iget p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPadding:F
|
||||
|
||||
iget v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mRadius:F
|
||||
|
||||
iget-boolean v1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForRadius:Z
|
||||
|
||||
invoke-static {p1, v0, v1}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->calculateVerticalPadding(FFZ)F
|
||||
|
||||
move-result p1
|
||||
|
||||
.line 112
|
||||
iget v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPadding:F
|
||||
|
||||
iget v1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mRadius:F
|
||||
|
||||
iget-boolean v2, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForRadius:Z
|
||||
|
||||
invoke-static {v0, v1, v2}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->calculateHorizontalPadding(FFZ)F
|
||||
|
||||
move-result v0
|
||||
|
||||
.line 113
|
||||
iget-object v1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBoundsI:Landroid/graphics/Rect;
|
||||
|
||||
float-to-double v2, v0
|
||||
|
||||
invoke-static {v2, v3}, Ljava/lang/Math;->ceil(D)D
|
||||
|
||||
move-result-wide v2
|
||||
|
||||
double-to-int v0, v2
|
||||
|
||||
float-to-double v2, p1
|
||||
|
||||
invoke-static {v2, v3}, Ljava/lang/Math;->ceil(D)D
|
||||
|
||||
move-result-wide v2
|
||||
|
||||
double-to-int p1, v2
|
||||
|
||||
invoke-virtual {v1, v0, p1}, Landroid/graphics/Rect;->inset(II)V
|
||||
|
||||
.line 115
|
||||
iget-object p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBoundsF:Landroid/graphics/RectF;
|
||||
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBoundsI:Landroid/graphics/Rect;
|
||||
|
||||
invoke-virtual {p1, v0}, Landroid/graphics/RectF;->set(Landroid/graphics/Rect;)V
|
||||
|
||||
:cond_1
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public draw(Landroid/graphics/Canvas;)V
|
||||
.locals 4
|
||||
|
||||
.line 87
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPaint:Landroid/graphics/Paint;
|
||||
|
||||
.line 90
|
||||
iget-object v1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTintFilter:Landroid/graphics/PorterDuffColorFilter;
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
invoke-virtual {v0}, Landroid/graphics/Paint;->getColorFilter()Landroid/graphics/ColorFilter;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
if-nez v1, :cond_0
|
||||
|
||||
.line 91
|
||||
iget-object v1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTintFilter:Landroid/graphics/PorterDuffColorFilter;
|
||||
|
||||
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v1, 0x0
|
||||
|
||||
.line 97
|
||||
:goto_0
|
||||
iget-object v2, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBoundsF:Landroid/graphics/RectF;
|
||||
|
||||
iget v3, p0, Landroidx/cardview/widget/RoundRectDrawable;->mRadius:F
|
||||
|
||||
invoke-virtual {p1, v2, v3, v3, v0}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
|
||||
|
||||
if-eqz v1, :cond_1
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
.line 100
|
||||
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
|
||||
|
||||
:cond_1
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public getColor()Landroid/content/res/ColorStateList;
|
||||
.locals 1
|
||||
|
||||
.line 164
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBackground:Landroid/content/res/ColorStateList;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public getOpacity()I
|
||||
.locals 1
|
||||
|
||||
const/4 v0, -0x3
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getOutline(Landroid/graphics/Outline;)V
|
||||
.locals 2
|
||||
|
||||
.line 127
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBoundsI:Landroid/graphics/Rect;
|
||||
|
||||
iget v1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mRadius:F
|
||||
|
||||
invoke-virtual {p1, v0, v1}, Landroid/graphics/Outline;->setRoundRect(Landroid/graphics/Rect;F)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method getPadding()F
|
||||
.locals 1
|
||||
|
||||
.line 82
|
||||
iget v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPadding:F
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getRadius()F
|
||||
.locals 1
|
||||
|
||||
.line 155
|
||||
iget v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mRadius:F
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public isStateful()Z
|
||||
.locals 1
|
||||
|
||||
.line 197
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTint:Landroid/content/res/ColorStateList;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
invoke-virtual {v0}, Landroid/content/res/ColorStateList;->isStateful()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_2
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBackground:Landroid/content/res/ColorStateList;
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
.line 198
|
||||
invoke-virtual {v0}, Landroid/content/res/ColorStateList;->isStateful()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_2
|
||||
|
||||
:cond_1
|
||||
invoke-super {p0}, Landroid/graphics/drawable/Drawable;->isStateful()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_3
|
||||
|
||||
:cond_2
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method protected onBoundsChange(Landroid/graphics/Rect;)V
|
||||
.locals 0
|
||||
|
||||
.line 121
|
||||
invoke-super {p0, p1}, Landroid/graphics/drawable/Drawable;->onBoundsChange(Landroid/graphics/Rect;)V
|
||||
|
||||
.line 122
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/RoundRectDrawable;->updateBounds(Landroid/graphics/Rect;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method protected onStateChange([I)Z
|
||||
.locals 3
|
||||
|
||||
.line 183
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBackground:Landroid/content/res/ColorStateList;
|
||||
|
||||
invoke-virtual {v0}, Landroid/content/res/ColorStateList;->getDefaultColor()I
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-virtual {v0, p1, v1}, Landroid/content/res/ColorStateList;->getColorForState([II)I
|
||||
|
||||
move-result p1
|
||||
|
||||
.line 184
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPaint:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {v0}, Landroid/graphics/Paint;->getColor()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
if-eq p1, v0, :cond_0
|
||||
|
||||
move v0, v1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
.line 186
|
||||
iget-object v2, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPaint:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {v2, p1}, Landroid/graphics/Paint;->setColor(I)V
|
||||
|
||||
.line 188
|
||||
:cond_1
|
||||
iget-object p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTint:Landroid/content/res/ColorStateList;
|
||||
|
||||
if-eqz p1, :cond_2
|
||||
|
||||
iget-object v2, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTintMode:Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
if-eqz v2, :cond_2
|
||||
|
||||
.line 189
|
||||
invoke-direct {p0, p1, v2}, Landroidx/cardview/widget/RoundRectDrawable;->createTintFilter(Landroid/content/res/ColorStateList;Landroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuffColorFilter;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
iput-object p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTintFilter:Landroid/graphics/PorterDuffColorFilter;
|
||||
|
||||
return v1
|
||||
|
||||
:cond_2
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public setAlpha(I)V
|
||||
.locals 1
|
||||
|
||||
.line 141
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPaint:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setAlpha(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setColor(Landroid/content/res/ColorStateList;)V
|
||||
.locals 0
|
||||
|
||||
.line 159
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/RoundRectDrawable;->setBackground(Landroid/content/res/ColorStateList;)V
|
||||
|
||||
.line 160
|
||||
invoke-virtual {p0}, Landroidx/cardview/widget/RoundRectDrawable;->invalidateSelf()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setColorFilter(Landroid/graphics/ColorFilter;)V
|
||||
.locals 1
|
||||
|
||||
.line 146
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPaint:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method setPadding(FZZ)V
|
||||
.locals 1
|
||||
|
||||
.line 70
|
||||
iget v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPadding:F
|
||||
|
||||
cmpl-float v0, p1, v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
iget-boolean v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForPadding:Z
|
||||
|
||||
if-ne v0, p2, :cond_0
|
||||
|
||||
iget-boolean v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForRadius:Z
|
||||
|
||||
if-ne v0, p3, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
.line 74
|
||||
:cond_0
|
||||
iput p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPadding:F
|
||||
|
||||
.line 75
|
||||
iput-boolean p2, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForPadding:Z
|
||||
|
||||
.line 76
|
||||
iput-boolean p3, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForRadius:Z
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
.line 77
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/RoundRectDrawable;->updateBounds(Landroid/graphics/Rect;)V
|
||||
|
||||
.line 78
|
||||
invoke-virtual {p0}, Landroidx/cardview/widget/RoundRectDrawable;->invalidateSelf()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method setRadius(F)V
|
||||
.locals 1
|
||||
|
||||
.line 131
|
||||
iget v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mRadius:F
|
||||
|
||||
cmpl-float v0, p1, v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
.line 134
|
||||
:cond_0
|
||||
iput p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mRadius:F
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
.line 135
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/RoundRectDrawable;->updateBounds(Landroid/graphics/Rect;)V
|
||||
|
||||
.line 136
|
||||
invoke-virtual {p0}, Landroidx/cardview/widget/RoundRectDrawable;->invalidateSelf()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setTintList(Landroid/content/res/ColorStateList;)V
|
||||
.locals 1
|
||||
|
||||
.line 169
|
||||
iput-object p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTint:Landroid/content/res/ColorStateList;
|
||||
|
||||
.line 170
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTintMode:Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
invoke-direct {p0, p1, v0}, Landroidx/cardview/widget/RoundRectDrawable;->createTintFilter(Landroid/content/res/ColorStateList;Landroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuffColorFilter;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
iput-object p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTintFilter:Landroid/graphics/PorterDuffColorFilter;
|
||||
|
||||
.line 171
|
||||
invoke-virtual {p0}, Landroidx/cardview/widget/RoundRectDrawable;->invalidateSelf()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
||||
.locals 1
|
||||
|
||||
.line 176
|
||||
iput-object p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTintMode:Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
.line 177
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTint:Landroid/content/res/ColorStateList;
|
||||
|
||||
invoke-direct {p0, v0, p1}, Landroidx/cardview/widget/RoundRectDrawable;->createTintFilter(Landroid/content/res/ColorStateList;Landroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuffColorFilter;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
iput-object p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTintFilter:Landroid/graphics/PorterDuffColorFilter;
|
||||
|
||||
.line 178
|
||||
invoke-virtual {p0}, Landroidx/cardview/widget/RoundRectDrawable;->invalidateSelf()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
@@ -0,0 +1,19 @@
|
||||
.class interface abstract Landroidx/cardview/widget/RoundRectDrawableWithShadow$RoundRectHelper;
|
||||
.super Ljava/lang/Object;
|
||||
.source "RoundRectDrawableWithShadow.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/cardview/widget/RoundRectDrawableWithShadow;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x608
|
||||
name = "RoundRectHelper"
|
||||
.end annotation
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract drawRoundRect(Landroid/graphics/Canvas;Landroid/graphics/RectF;FLandroid/graphics/Paint;)V
|
||||
.end method
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user