Changes of com.discord v1323
This commit is contained in:
parent
1234c09f33
commit
d9d9f382c9
28241 changed files with 0 additions and 4903974 deletions
|
@ -1,49 +0,0 @@
|
|||
.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 final cardBackgroundColor:I = 0x7f0400ec
|
||||
|
||||
.field public static final cardCornerRadius:I = 0x7f0400ed
|
||||
|
||||
.field public static final cardElevation:I = 0x7f0400ee
|
||||
|
||||
.field public static final cardMaxElevation:I = 0x7f0400f0
|
||||
|
||||
.field public static final cardPreventCornerOverlap:I = 0x7f0400f1
|
||||
|
||||
.field public static final cardUseCompatPadding:I = 0x7f0400f2
|
||||
|
||||
.field public static final cardViewStyle:I = 0x7f0400f3
|
||||
|
||||
.field public static final contentPadding:I = 0x7f04018a
|
||||
|
||||
.field public static final contentPaddingBottom:I = 0x7f04018b
|
||||
|
||||
.field public static final contentPaddingLeft:I = 0x7f04018c
|
||||
|
||||
.field public static final contentPaddingRight:I = 0x7f04018d
|
||||
|
||||
.field public static final contentPaddingTop:I = 0x7f04018e
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,33 +0,0 @@
|
|||
.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 final cardview_dark_background:I = 0x7f060072
|
||||
|
||||
.field public static final cardview_light_background:I = 0x7f060073
|
||||
|
||||
.field public static final cardview_shadow_end_color:I = 0x7f060074
|
||||
|
||||
.field public static final cardview_shadow_start_color:I = 0x7f060075
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,31 +0,0 @@
|
|||
.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 final cardview_compat_inset_shadow:I = 0x7f070072
|
||||
|
||||
.field public static final cardview_default_elevation:I = 0x7f070073
|
||||
|
||||
.field public static final cardview_default_radius:I = 0x7f070074
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,33 +0,0 @@
|
|||
.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 final Base_CardView:I = 0x7f130044
|
||||
|
||||
.field public static final CardView:I = 0x7f130120
|
||||
|
||||
.field public static final CardView_Dark:I = 0x7f130121
|
||||
|
||||
.field public static final CardView_Light:I = 0x7f130122
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,84 +0,0 @@
|
|||
.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 final CardView:[I
|
||||
|
||||
.field public static final CardView_android_minHeight:I = 0x1
|
||||
|
||||
.field public static final CardView_android_minWidth:I = 0x0
|
||||
|
||||
.field public static final CardView_cardBackgroundColor:I = 0x2
|
||||
|
||||
.field public static final CardView_cardCornerRadius:I = 0x3
|
||||
|
||||
.field public static final CardView_cardElevation:I = 0x4
|
||||
|
||||
.field public static final CardView_cardMaxElevation:I = 0x5
|
||||
|
||||
.field public static final CardView_cardPreventCornerOverlap:I = 0x6
|
||||
|
||||
.field public static final CardView_cardUseCompatPadding:I = 0x7
|
||||
|
||||
.field public static final CardView_contentPadding:I = 0x8
|
||||
|
||||
.field public static final CardView_contentPaddingBottom:I = 0x9
|
||||
|
||||
.field public static final CardView_contentPaddingLeft:I = 0xa
|
||||
|
||||
.field public static final CardView_contentPaddingRight:I = 0xb
|
||||
|
||||
.field public static final 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
|
||||
0x7f0400ec
|
||||
0x7f0400ed
|
||||
0x7f0400ee
|
||||
0x7f0400f0
|
||||
0x7f0400f1
|
||||
0x7f0400f2
|
||||
0x7f04018a
|
||||
0x7f04018b
|
||||
0x7f04018c
|
||||
0x7f04018d
|
||||
0x7f04018e
|
||||
.end array-data
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,24 +0,0 @@
|
|||
.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 public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,147 +0,0 @@
|
|||
.class public 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 = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public mCardBackground:Landroid/graphics/drawable/Drawable;
|
||||
|
||||
.field public final synthetic this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroidx/cardview/widget/CardView;)V
|
||||
.locals 0
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
iput-object p1, p0, Landroidx/cardview/widget/CardView$1;->mCardBackground:Landroid/graphics/drawable/Drawable;
|
||||
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroid/widget/FrameLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setMinWidthHeightInternal(II)V
|
||||
.locals 2
|
||||
|
||||
iget-object v0, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
iget v1, v0, Landroidx/cardview/widget/CardView;->mUserSetMinWidth:I
|
||||
|
||||
if-le p1, v1, :cond_0
|
||||
|
||||
invoke-static {v0, p1}, Landroidx/cardview/widget/CardView;->access$101(Landroidx/cardview/widget/CardView;I)V
|
||||
|
||||
:cond_0
|
||||
iget-object p1, p0, Landroidx/cardview/widget/CardView$1;->this$0:Landroidx/cardview/widget/CardView;
|
||||
|
||||
iget v0, p1, Landroidx/cardview/widget/CardView;->mUserSetMinHeight:I
|
||||
|
||||
if-le p2, v0, :cond_1
|
||||
|
||||
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 3
|
||||
|
||||
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
|
||||
|
||||
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 v2, v1, Landroid/graphics/Rect;->left:I
|
||||
|
||||
add-int/2addr p1, v2
|
||||
|
||||
iget v2, v1, Landroid/graphics/Rect;->top:I
|
||||
|
||||
add-int/2addr p2, v2
|
||||
|
||||
iget v2, v1, Landroid/graphics/Rect;->right:I
|
||||
|
||||
add-int/2addr p3, v2
|
||||
|
||||
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
|
|
@ -1,760 +0,0 @@
|
|||
.class public Landroidx/cardview/widget/CardView;
|
||||
.super Landroid/widget/FrameLayout;
|
||||
.source "CardView.java"
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final COLOR_BACKGROUND_ATTR:[I
|
||||
|
||||
.field public static final IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
.field public mCompatPadding:Z
|
||||
|
||||
.field public final mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
.field public mPreventCornerOverlap:Z
|
||||
|
||||
.field public final mShadowBounds:Landroid/graphics/Rect;
|
||||
|
||||
.field public mUserSetMinHeight:I
|
||||
|
||||
.field public mUserSetMinWidth:I
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 3
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
new-array v0, v0, [I
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const v2, 0x1010031
|
||||
|
||||
aput v2, v0, v1
|
||||
|
||||
sput-object v0, Landroidx/cardview/widget/CardView;->COLOR_BACKGROUND_ATTR:[I
|
||||
|
||||
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;
|
||||
|
||||
invoke-interface {v0}, Landroidx/cardview/widget/CardViewImpl;->initStatic()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Landroid/content/Context;)V
|
||||
.locals 1
|
||||
.param p1 # Landroid/content/Context;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
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
|
||||
.param p1 # Landroid/content/Context;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Landroid/util/AttributeSet;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
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 8
|
||||
.param p1 # Landroid/content/Context;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Landroid/util/AttributeSet;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
||||
|
||||
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;
|
||||
|
||||
new-instance v0, Landroid/graphics/Rect;
|
||||
|
||||
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
||||
|
||||
iput-object v0, p0, Landroidx/cardview/widget/CardView;->mShadowBounds:Landroid/graphics/Rect;
|
||||
|
||||
new-instance v0, Landroidx/cardview/widget/CardView$1;
|
||||
|
||||
invoke-direct {v0, p0}, Landroidx/cardview/widget/CardView$1;-><init>(Landroidx/cardview/widget/CardView;)V
|
||||
|
||||
iput-object v0, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
sget-object v0, Landroidx/cardview/R$styleable;->CardView:[I
|
||||
|
||||
sget v1, Landroidx/cardview/R$style;->CardView:I
|
||||
|
||||
invoke-virtual {p1, p2, v0, p3, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
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 v0, 0x0
|
||||
|
||||
if-eqz p3, :cond_0
|
||||
|
||||
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 v4, p3
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
||||
|
||||
move-result-object p3
|
||||
|
||||
sget-object v1, Landroidx/cardview/widget/CardView;->COLOR_BACKGROUND_ATTR:[I
|
||||
|
||||
invoke-virtual {p3, v1}, Landroid/content/Context;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;
|
||||
|
||||
move-result-object p3
|
||||
|
||||
invoke-virtual {p3, v0, v0}, Landroid/content/res/TypedArray;->getColor(II)I
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-virtual {p3}, Landroid/content/res/TypedArray;->recycle()V
|
||||
|
||||
const/4 p3, 0x3
|
||||
|
||||
new-array p3, p3, [F
|
||||
|
||||
invoke-static {v1, p3}, Landroid/graphics/Color;->colorToHSV(I[F)V
|
||||
|
||||
const/4 v1, 0x2
|
||||
|
||||
aget p3, p3, v1
|
||||
|
||||
const/high16 v1, 0x3f000000 # 0.5f
|
||||
|
||||
cmpl-float p3, p3, v1
|
||||
|
||||
if-lez p3, :cond_1
|
||||
|
||||
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;
|
||||
|
||||
move-result-object p3
|
||||
|
||||
sget v1, Landroidx/cardview/R$color;->cardview_light_background:I
|
||||
|
||||
invoke-virtual {p3, v1}, Landroid/content/res/Resources;->getColor(I)I
|
||||
|
||||
move-result p3
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;
|
||||
|
||||
move-result-object p3
|
||||
|
||||
sget v1, Landroidx/cardview/R$color;->cardview_dark_background:I
|
||||
|
||||
invoke-virtual {p3, v1}, Landroid/content/res/Resources;->getColor(I)I
|
||||
|
||||
move-result p3
|
||||
|
||||
:goto_1
|
||||
invoke-static {p3}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
|
||||
|
||||
move-result-object p3
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:goto_2
|
||||
sget p3, Landroidx/cardview/R$styleable;->CardView_cardCornerRadius:I
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-virtual {p2, p3, v1}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
||||
|
||||
move-result v5
|
||||
|
||||
sget p3, Landroidx/cardview/R$styleable;->CardView_cardElevation:I
|
||||
|
||||
invoke-virtual {p2, p3, v1}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
||||
|
||||
move-result v6
|
||||
|
||||
sget p3, Landroidx/cardview/R$styleable;->CardView_cardMaxElevation:I
|
||||
|
||||
invoke-virtual {p2, p3, v1}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
||||
|
||||
move-result p3
|
||||
|
||||
sget v1, Landroidx/cardview/R$styleable;->CardView_cardUseCompatPadding:I
|
||||
|
||||
invoke-virtual {p2, v1, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
||||
|
||||
move-result v1
|
||||
|
||||
iput-boolean v1, p0, Landroidx/cardview/widget/CardView;->mCompatPadding:Z
|
||||
|
||||
sget v1, Landroidx/cardview/R$styleable;->CardView_cardPreventCornerOverlap:I
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
invoke-virtual {p2, v1, v2}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
||||
|
||||
move-result v1
|
||||
|
||||
iput-boolean v1, p0, Landroidx/cardview/widget/CardView;->mPreventCornerOverlap:Z
|
||||
|
||||
sget v1, Landroidx/cardview/R$styleable;->CardView_contentPadding:I
|
||||
|
||||
invoke-virtual {p2, v1, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result v1
|
||||
|
||||
iget-object v2, p0, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
sget v3, Landroidx/cardview/R$styleable;->CardView_contentPaddingLeft:I
|
||||
|
||||
invoke-virtual {p2, v3, v1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result v3
|
||||
|
||||
iput v3, v2, Landroid/graphics/Rect;->left:I
|
||||
|
||||
iget-object v2, p0, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
sget v3, Landroidx/cardview/R$styleable;->CardView_contentPaddingTop:I
|
||||
|
||||
invoke-virtual {p2, v3, v1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result v3
|
||||
|
||||
iput v3, v2, Landroid/graphics/Rect;->top:I
|
||||
|
||||
iget-object v2, p0, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
sget v3, Landroidx/cardview/R$styleable;->CardView_contentPaddingRight:I
|
||||
|
||||
invoke-virtual {p2, v3, v1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result v3
|
||||
|
||||
iput v3, v2, Landroid/graphics/Rect;->right:I
|
||||
|
||||
iget-object v2, p0, Landroidx/cardview/widget/CardView;->mContentPadding:Landroid/graphics/Rect;
|
||||
|
||||
sget v3, Landroidx/cardview/R$styleable;->CardView_contentPaddingBottom:I
|
||||
|
||||
invoke-virtual {p2, v3, v1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result v1
|
||||
|
||||
iput v1, v2, Landroid/graphics/Rect;->bottom:I
|
||||
|
||||
cmpl-float v1, v6, p3
|
||||
|
||||
if-lez v1, :cond_2
|
||||
|
||||
move v7, v6
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_2
|
||||
move v7, p3
|
||||
|
||||
:goto_3
|
||||
sget p3, Landroidx/cardview/R$styleable;->CardView_android_minWidth:I
|
||||
|
||||
invoke-virtual {p2, p3, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result p3
|
||||
|
||||
iput p3, p0, Landroidx/cardview/widget/CardView;->mUserSetMinWidth:I
|
||||
|
||||
sget p3, Landroidx/cardview/R$styleable;->CardView_android_minHeight:I
|
||||
|
||||
invoke-virtual {p2, p3, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
||||
|
||||
move-result p3
|
||||
|
||||
iput p3, p0, Landroidx/cardview/widget/CardView;->mUserSetMinHeight:I
|
||||
|
||||
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
|
||||
|
||||
sget-object v1, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v2, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
move-object v3, p1
|
||||
|
||||
invoke-interface/range {v1 .. v7}, Landroidx/cardview/widget/CardViewImpl;->initialize(Landroidx/cardview/widget/CardViewDelegate;Landroid/content/Context;Landroid/content/res/ColorStateList;FFF)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static synthetic access$001(Landroidx/cardview/widget/CardView;IIII)V
|
||||
.locals 0
|
||||
|
||||
invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/FrameLayout;->setPadding(IIII)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static synthetic access$101(Landroidx/cardview/widget/CardView;I)V
|
||||
.locals 0
|
||||
|
||||
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setMinimumWidth(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static synthetic access$201(Landroidx/cardview/widget/CardView;I)V
|
||||
.locals 0
|
||||
|
||||
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
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
.annotation build Landroidx/annotation/Px;
|
||||
.end annotation
|
||||
|
||||
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
|
||||
.annotation build Landroidx/annotation/Px;
|
||||
.end annotation
|
||||
|
||||
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
|
||||
.annotation build Landroidx/annotation/Px;
|
||||
.end annotation
|
||||
|
||||
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
|
||||
.annotation build Landroidx/annotation/Px;
|
||||
.end annotation
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
iget-boolean v0, p0, Landroidx/cardview/widget/CardView;->mPreventCornerOverlap:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getRadius()F
|
||||
.locals 2
|
||||
|
||||
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
|
||||
|
||||
iget-boolean v0, p0, Landroidx/cardview/widget/CardView;->mCompatPadding:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public onMeasure(II)V
|
||||
.locals 5
|
||||
|
||||
sget-object v0, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
instance-of v0, v0, Landroidx/cardview/widget/CardViewApi21Impl;
|
||||
|
||||
if-nez v0, :cond_2
|
||||
|
||||
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/high16 v1, 0x40000000 # 2.0f
|
||||
|
||||
const/high16 v2, -0x80000000
|
||||
|
||||
if-eq v0, v2, :cond_0
|
||||
|
||||
if-eq v0, v1, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
sget-object v3, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v4, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {v3, v4}, Landroidx/cardview/widget/CardViewImpl;->getMinWidth(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v3
|
||||
|
||||
float-to-double v3, v3
|
||||
|
||||
invoke-static {v3, v4}, Ljava/lang/Math;->ceil(D)D
|
||||
|
||||
move-result-wide v3
|
||||
|
||||
double-to-int v3, v3
|
||||
|
||||
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
||||
|
||||
move-result p1
|
||||
|
||||
invoke-static {v3, p1}, Ljava/lang/Math;->max(II)I
|
||||
|
||||
move-result p1
|
||||
|
||||
invoke-static {p1, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
||||
|
||||
move-result p1
|
||||
|
||||
:goto_0
|
||||
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eq v0, v2, :cond_1
|
||||
|
||||
if-eq v0, v1, :cond_1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
sget-object v1, Landroidx/cardview/widget/CardView;->IMPL:Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
iget-object v2, p0, Landroidx/cardview/widget/CardView;->mCardViewDelegate:Landroidx/cardview/widget/CardViewDelegate;
|
||||
|
||||
invoke-interface {v1, v2}, Landroidx/cardview/widget/CardViewImpl;->getMinHeight(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
|
||||
|
||||
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
||||
|
||||
move-result p2
|
||||
|
||||
invoke-static {v1, p2}, Ljava/lang/Math;->max(II)I
|
||||
|
||||
move-result p2
|
||||
|
||||
invoke-static {p2, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
||||
|
||||
move-result p2
|
||||
|
||||
:goto_1
|
||||
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
||||
|
||||
goto :goto_2
|
||||
|
||||
: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
|
||||
.param p1 # I
|
||||
.annotation build Landroidx/annotation/ColorInt;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
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
|
||||
.param p1 # Landroid/content/res/ColorStateList;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
.param p1 # I
|
||||
.annotation build Landroidx/annotation/Px;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # I
|
||||
.annotation build Landroidx/annotation/Px;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p3 # I
|
||||
.annotation build Landroidx/annotation/Px;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p4 # I
|
||||
.annotation build Landroidx/annotation/Px;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
iput p1, p0, Landroidx/cardview/widget/CardView;->mUserSetMinHeight:I
|
||||
|
||||
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setMinimumHeight(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setMinimumWidth(I)V
|
||||
.locals 0
|
||||
|
||||
iput p1, p0, Landroidx/cardview/widget/CardView;->mUserSetMinWidth:I
|
||||
|
||||
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
|
||||
|
||||
iget-boolean v0, p0, Landroidx/cardview/widget/CardView;->mPreventCornerOverlap:Z
|
||||
|
||||
if-eq p1, v0, :cond_0
|
||||
|
||||
iput-boolean p1, p0, Landroidx/cardview/widget/CardView;->mPreventCornerOverlap:Z
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
iget-boolean v0, p0, Landroidx/cardview/widget/CardView;->mCompatPadding:Z
|
||||
|
||||
if-eq v0, p1, :cond_0
|
||||
|
||||
iput-boolean p1, p0, Landroidx/cardview/widget/CardView;->mCompatPadding:Z
|
||||
|
||||
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
|
|
@ -1,43 +0,0 @@
|
|||
.class public 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 = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final synthetic this$0:Landroidx/cardview/widget/CardViewApi17Impl;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroidx/cardview/widget/CardViewApi17Impl;)V
|
||||
.locals 0
|
||||
|
||||
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
|
||||
|
||||
invoke-virtual {p1, p2, p3, p3, p4}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,33 +0,0 @@
|
|||
.class public Landroidx/cardview/widget/CardViewApi17Impl;
|
||||
.super Landroidx/cardview/widget/CardViewBaseImpl;
|
||||
.source "CardViewApi17Impl.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x11
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Landroidx/cardview/widget/CardViewBaseImpl;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public initStatic()V
|
||||
.locals 1
|
||||
|
||||
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
|
|
@ -1,297 +0,0 @@
|
|||
.class public Landroidx/cardview/widget/CardViewApi21Impl;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CardViewApi21Impl.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x15
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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 p1, p1, v0
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getMinWidth(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.locals 1
|
||||
|
||||
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 p1, p1, v0
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public getRadius(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
.locals 0
|
||||
|
||||
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
|
||||
|
||||
new-instance p2, Landroidx/cardview/widget/RoundRectDrawable;
|
||||
|
||||
invoke-direct {p2, p3, p4}, Landroidx/cardview/widget/RoundRectDrawable;-><init>(Landroid/content/res/ColorStateList;F)V
|
||||
|
||||
invoke-interface {p1, p2}, Landroidx/cardview/widget/CardViewDelegate;->setCardBackground(Landroid/graphics/drawable/Drawable;)V
|
||||
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getCardView()Landroid/view/View;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
const/4 p3, 0x1
|
||||
|
||||
invoke-virtual {p2, p3}, Landroid/view/View;->setClipToOutline(Z)V
|
||||
|
||||
invoke-virtual {p2, p5}, Landroid/view/View;->setElevation(F)V
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
.param p2 # Landroid/content/res/ColorStateList;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getUseCompatPadding()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getPreventCornerOverlap()Z
|
||||
|
||||
move-result v2
|
||||
|
||||
invoke-virtual {v0, p2, v1, v2}, Landroidx/cardview/widget/RoundRectDrawable;->setPadding(FZZ)V
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getUseCompatPadding()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-interface {p1, v0, v0, v0, v0}, Landroidx/cardview/widget/CardViewDelegate;->setShadowPadding(IIII)V
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getMaxElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getRadius(Landroidx/cardview/widget/CardViewDelegate;)F
|
||||
|
||||
move-result v1
|
||||
|
||||
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
|
||||
|
||||
invoke-static {v2, v3}, Ljava/lang/Math;->ceil(D)D
|
||||
|
||||
move-result-wide v2
|
||||
|
||||
double-to-int v2, v2
|
||||
|
||||
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
|
||||
|
||||
invoke-static {v0, v1}, Ljava/lang/Math;->ceil(D)D
|
||||
|
||||
move-result-wide v0
|
||||
|
||||
double-to-int v0, v0
|
||||
|
||||
invoke-interface {p1, v2, v0, v2, v0}, Landroidx/cardview/widget/CardViewDelegate;->setShadowPadding(IIII)V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,216 +0,0 @@
|
|||
.class public 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 = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final synthetic this$0:Landroidx/cardview/widget/CardViewBaseImpl;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroidx/cardview/widget/CardViewBaseImpl;)V
|
||||
.locals 0
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I
|
||||
|
||||
move-result v13
|
||||
|
||||
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
|
||||
|
||||
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 v3, 0x43340000 # 180.0f
|
||||
|
||||
const/high16 v4, 0x42b40000 # 90.0f
|
||||
|
||||
const/4 v5, 0x1
|
||||
|
||||
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
|
||||
|
||||
invoke-virtual {v7, v10, v14}, Landroid/graphics/Canvas;->translate(FF)V
|
||||
|
||||
const/high16 v15, 0x42b40000 # 90.0f
|
||||
|
||||
invoke-virtual {v7, v15}, Landroid/graphics/Canvas;->rotate(F)V
|
||||
|
||||
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
|
||||
|
||||
invoke-virtual {v7, v11, v14}, Landroid/graphics/Canvas;->translate(FF)V
|
||||
|
||||
invoke-virtual {v7, v15}, Landroid/graphics/Canvas;->rotate(F)V
|
||||
|
||||
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
|
||||
|
||||
invoke-virtual {v7, v10, v14}, Landroid/graphics/Canvas;->translate(FF)V
|
||||
|
||||
invoke-virtual {v7, v15}, Landroid/graphics/Canvas;->rotate(F)V
|
||||
|
||||
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
|
||||
|
||||
invoke-virtual {v7, v13}, Landroid/graphics/Canvas;->restoreToCount(I)V
|
||||
|
||||
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
|
||||
|
||||
add-float v5, v3, v12
|
||||
|
||||
move-object/from16 v1, p1
|
||||
|
||||
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
|
||||
|
||||
iget v1, v8, Landroid/graphics/RectF;->left:F
|
||||
|
||||
add-float/2addr v1, v12
|
||||
|
||||
sub-float v2, v1, v9
|
||||
|
||||
iget v5, v8, Landroid/graphics/RectF;->bottom:F
|
||||
|
||||
sub-float v3, v5, v12
|
||||
|
||||
iget v1, v8, Landroid/graphics/RectF;->right:F
|
||||
|
||||
sub-float/2addr v1, v12
|
||||
|
||||
add-float v4, v1, v9
|
||||
|
||||
move-object/from16 v1, p1
|
||||
|
||||
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
|
||||
|
||||
: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
|
|
@ -1,324 +0,0 @@
|
|||
.class public Landroidx/cardview/widget/CardViewBaseImpl;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CardViewBaseImpl.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/cardview/widget/CardViewImpl;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final mCornerRect:Landroid/graphics/RectF;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getPreventCornerOverlap()Z
|
||||
|
||||
move-result p3
|
||||
|
||||
invoke-virtual {p2, p3}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->setAddPaddingForCorners(Z)V
|
||||
|
||||
invoke-interface {p1, p2}, Landroidx/cardview/widget/CardViewDelegate;->setCardBackground(Landroid/graphics/drawable/Drawable;)V
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
.param p2 # Landroid/content/res/ColorStateList;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
new-instance v0, Landroid/graphics/Rect;
|
||||
|
||||
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
invoke-interface {p1, v1, v2}, Landroidx/cardview/widget/CardViewDelegate;->setMinWidthHeightInternal(II)V
|
||||
|
||||
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
|
|
@ -1,26 +0,0 @@
|
|||
.class public 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
|
|
@ -1,54 +0,0 @@
|
|||
.class public 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
|
||||
.param p2 # Landroid/content/res/ColorStateList;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
.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
|
|
@ -1,563 +0,0 @@
|
|||
.class public Landroidx/cardview/widget/RoundRectDrawable;
|
||||
.super Landroid/graphics/drawable/Drawable;
|
||||
.source "RoundRectDrawable.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x15
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public mBackground:Landroid/content/res/ColorStateList;
|
||||
|
||||
.field public final mBoundsF:Landroid/graphics/RectF;
|
||||
|
||||
.field public final mBoundsI:Landroid/graphics/Rect;
|
||||
|
||||
.field public mInsetForPadding:Z
|
||||
|
||||
.field public mInsetForRadius:Z
|
||||
|
||||
.field public mPadding:F
|
||||
|
||||
.field public final mPaint:Landroid/graphics/Paint;
|
||||
|
||||
.field public mRadius:F
|
||||
|
||||
.field public mTint:Landroid/content/res/ColorStateList;
|
||||
|
||||
.field public mTintFilter:Landroid/graphics/PorterDuffColorFilter;
|
||||
|
||||
.field public mTintMode:Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Landroid/content/res/ColorStateList;F)V
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Landroid/graphics/drawable/Drawable;-><init>()V
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
iput-boolean v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForPadding:Z
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
iput-boolean v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForRadius:Z
|
||||
|
||||
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;
|
||||
|
||||
iput p2, p0, Landroidx/cardview/widget/RoundRectDrawable;->mRadius:F
|
||||
|
||||
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;
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/RoundRectDrawable;->setBackground(Landroid/content/res/ColorStateList;)V
|
||||
|
||||
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;
|
||||
|
||||
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
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->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
|
||||
|
||||
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
|
||||
|
||||
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;
|
||||
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPaint:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->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
|
||||
|
||||
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
: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
|
||||
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mBoundsI:Landroid/graphics/Rect;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V
|
||||
|
||||
iget-boolean p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForPadding:Z
|
||||
|
||||
if-eqz p1, :cond_1
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
iget-object v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPaint:Landroid/graphics/Paint;
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
: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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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 public getPadding()F
|
||||
.locals 1
|
||||
|
||||
iget v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPadding:F
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getRadius()F
|
||||
.locals 1
|
||||
|
||||
iget v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mRadius:F
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public isStateful()Z
|
||||
.locals 1
|
||||
|
||||
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
|
||||
|
||||
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 public onBoundsChange(Landroid/graphics/Rect;)V
|
||||
.locals 0
|
||||
|
||||
invoke-super {p0, p1}, Landroid/graphics/drawable/Drawable;->onBoundsChange(Landroid/graphics/Rect;)V
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/RoundRectDrawable;->updateBounds(Landroid/graphics/Rect;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onStateChange([I)Z
|
||||
.locals 3
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
iget-object v2, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPaint:Landroid/graphics/Paint;
|
||||
|
||||
invoke-virtual {v2, p1}, Landroid/graphics/Paint;->setColor(I)V
|
||||
|
||||
: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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
.param p1 # Landroid/content/res/ColorStateList;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/RoundRectDrawable;->setBackground(Landroid/content/res/ColorStateList;)V
|
||||
|
||||
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setColorFilter(Landroid/graphics/ColorFilter;)V
|
||||
.locals 1
|
||||
|
||||
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 public setPadding(FZZ)V
|
||||
.locals 1
|
||||
|
||||
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
|
||||
|
||||
:cond_0
|
||||
iput p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mPadding:F
|
||||
|
||||
iput-boolean p2, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForPadding:Z
|
||||
|
||||
iput-boolean p3, p0, Landroidx/cardview/widget/RoundRectDrawable;->mInsetForRadius:Z
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/RoundRectDrawable;->updateBounds(Landroid/graphics/Rect;)V
|
||||
|
||||
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setRadius(F)V
|
||||
.locals 1
|
||||
|
||||
iget v0, p0, Landroidx/cardview/widget/RoundRectDrawable;->mRadius:F
|
||||
|
||||
cmpl-float v0, p1, v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
iput p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mRadius:F
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/cardview/widget/RoundRectDrawable;->updateBounds(Landroid/graphics/Rect;)V
|
||||
|
||||
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setTintList(Landroid/content/res/ColorStateList;)V
|
||||
.locals 1
|
||||
|
||||
iput-object p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTint:Landroid/content/res/ColorStateList;
|
||||
|
||||
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;
|
||||
|
||||
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public setTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
||||
.locals 1
|
||||
|
||||
iput-object p1, p0, Landroidx/cardview/widget/RoundRectDrawable;->mTintMode:Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
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;
|
||||
|
||||
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,19 +0,0 @@
|
|||
.class public 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 = 0x609
|
||||
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
Loading…
Add table
Add a link
Reference in a new issue