2696 lines
82 KiB
Smali
2696 lines
82 KiB
Smali
.class public Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
.super Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
|
.source "FloatingActionButton.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/core/view/TintableBackgroundView;
|
|
.implements Landroidx/core/widget/TintableImageSourceView;
|
|
.implements Lcom/google/android/material/expandable/ExpandableTransformationWidget;
|
|
.implements Lcom/google/android/material/shape/Shapeable;
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Landroidx/coordinatorlayout/widget/CoordinatorLayout$DefaultBehavior;
|
|
value = Lcom/google/android/material/floatingactionbutton/FloatingActionButton$Behavior;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/material/floatingactionbutton/FloatingActionButton$b;,
|
|
Lcom/google/android/material/floatingactionbutton/FloatingActionButton$c;,
|
|
Lcom/google/android/material/floatingactionbutton/FloatingActionButton$BaseBehavior;,
|
|
Lcom/google/android/material/floatingactionbutton/FloatingActionButton$Behavior;,
|
|
Lcom/google/android/material/floatingactionbutton/FloatingActionButton$Size;,
|
|
Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final AUTO_MINI_LARGEST_SCREEN_WIDTH:I = 0x1d6
|
|
|
|
.field public static final DEF_STYLE_RES:I
|
|
|
|
.field public static final EXPANDABLE_WIDGET_HELPER_KEY:Ljava/lang/String; = "expandableWidgetHelper"
|
|
|
|
.field public static final LOG_TAG:Ljava/lang/String; = "FloatingActionButton"
|
|
|
|
.field public static final NO_CUSTOM_SIZE:I = 0x0
|
|
|
|
.field public static final SIZE_AUTO:I = -0x1
|
|
|
|
.field public static final SIZE_MINI:I = 0x1
|
|
|
|
.field public static final SIZE_NORMAL:I
|
|
|
|
|
|
# instance fields
|
|
.field public backgroundTint:Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public backgroundTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public borderWidth:I
|
|
|
|
.field public compatPadding:Z
|
|
|
|
.field public customSize:I
|
|
|
|
.field public final expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final imageHelper:Landroidx/appcompat/widget/AppCompatImageHelper;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public imageMode:Landroid/graphics/PorterDuff$Mode;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public imagePadding:I
|
|
|
|
.field public imageTint:Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public impl:Lf/k/a/e/e/f;
|
|
|
|
.field public maxImageSize:I
|
|
|
|
.field public rippleColor:Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final shadowPadding:Landroid/graphics/Rect;
|
|
|
|
.field public size:I
|
|
|
|
.field public final touchArea:Landroid/graphics/Rect;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
sget v0, Lcom/google/android/material/R$style;->Widget_Design_FloatingActionButton:I
|
|
|
|
sput v0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->DEF_STYLE_RES:I
|
|
|
|
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}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;-><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, Lcom/google/android/material/R$attr;->floatingActionButtonStyle:I
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;-><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 10
|
|
.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, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->DEF_STYLE_RES:I
|
|
|
|
invoke-static {p1, p2, p3, v0}, Lcom/google/android/material/internal/ThemeEnforcement;->createThemedContext(Landroid/content/Context;Landroid/util/AttributeSet;II)Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/google/android/material/internal/VisibilityAwareImageButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
new-instance p1, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->shadowPadding:Landroid/graphics/Rect;
|
|
|
|
new-instance p1, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->touchArea:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v2, Lcom/google/android/material/R$styleable;->FloatingActionButton:[I
|
|
|
|
sget v4, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->DEF_STYLE_RES:I
|
|
|
|
const/4 v6, 0x0
|
|
|
|
new-array v5, v6, [I
|
|
|
|
move-object v0, p1
|
|
|
|
move-object v1, p2
|
|
|
|
move v3, p3
|
|
|
|
invoke-static/range {v0 .. v5}, Lcom/google/android/material/internal/ThemeEnforcement;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/google/android/material/R$styleable;->FloatingActionButton_backgroundTint:I
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTint:Landroid/content/res/ColorStateList;
|
|
|
|
sget v1, Lcom/google/android/material/R$styleable;->FloatingActionButton_backgroundTintMode:I
|
|
|
|
const/4 v2, -0x1
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {v1, v3}, Lcom/google/android/material/internal/ViewUtils;->parseTintMode(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
sget v1, Lcom/google/android/material/R$styleable;->FloatingActionButton_rippleColor:I
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
sget v1, Lcom/google/android/material/R$styleable;->FloatingActionButton_fabSize:I
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->size:I
|
|
|
|
sget v1, Lcom/google/android/material/R$styleable;->FloatingActionButton_fabCustomSize:I
|
|
|
|
invoke-virtual {v0, v1, v6}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->customSize:I
|
|
|
|
sget v1, Lcom/google/android/material/R$styleable;->FloatingActionButton_borderWidth:I
|
|
|
|
invoke-virtual {v0, v1, v6}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->borderWidth:I
|
|
|
|
sget v1, Lcom/google/android/material/R$styleable;->FloatingActionButton_elevation:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
move-result v1
|
|
|
|
sget v3, Lcom/google/android/material/R$styleable;->FloatingActionButton_hoveredFocusedTranslationZ:I
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
move-result v3
|
|
|
|
sget v4, Lcom/google/android/material/R$styleable;->FloatingActionButton_pressedTranslationZ:I
|
|
|
|
invoke-virtual {v0, v4, v2}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
move-result v2
|
|
|
|
sget v4, Lcom/google/android/material/R$styleable;->FloatingActionButton_useCompatPadding:I
|
|
|
|
invoke-virtual {v0, v4, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v4
|
|
|
|
iput-boolean v4, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->compatPadding:Z
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v4
|
|
|
|
sget v5, Lcom/google/android/material/R$dimen;->mtrl_fab_min_touch_target:I
|
|
|
|
invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v4
|
|
|
|
sget v5, Lcom/google/android/material/R$styleable;->FloatingActionButton_maxImageSize:I
|
|
|
|
invoke-virtual {v0, v5, v6}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v5
|
|
|
|
iput v5, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->maxImageSize:I
|
|
|
|
sget v5, Lcom/google/android/material/R$styleable;->FloatingActionButton_showMotionSpec:I
|
|
|
|
invoke-static {p1, v0, v5}, Lcom/google/android/material/animation/MotionSpec;->createFromAttribute(Landroid/content/Context;Landroid/content/res/TypedArray;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
move-result-object v5
|
|
|
|
sget v7, Lcom/google/android/material/R$styleable;->FloatingActionButton_hideMotionSpec:I
|
|
|
|
invoke-static {p1, v0, v7}, Lcom/google/android/material/animation/MotionSpec;->createFromAttribute(Landroid/content/Context;Landroid/content/res/TypedArray;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
move-result-object v7
|
|
|
|
sget v8, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->DEF_STYLE_RES:I
|
|
|
|
sget-object v9, Lcom/google/android/material/shape/ShapeAppearanceModel;->PILL:Lcom/google/android/material/shape/CornerSize;
|
|
|
|
invoke-static {p1, p2, p3, v8, v9}, Lcom/google/android/material/shape/ShapeAppearanceModel;->builder(Landroid/content/Context;Landroid/util/AttributeSet;IILcom/google/android/material/shape/CornerSize;)Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->build()Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
move-result-object p1
|
|
|
|
sget v8, Lcom/google/android/material/R$styleable;->FloatingActionButton_ensureMinTouchTargetSize:I
|
|
|
|
invoke-virtual {v0, v8, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/AppCompatImageHelper;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/appcompat/widget/AppCompatImageHelper;-><init>(Landroid/widget/ImageView;)V
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageHelper:Landroidx/appcompat/widget/AppCompatImageHelper;
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageHelper:Landroidx/appcompat/widget/AppCompatImageHelper;
|
|
|
|
invoke-virtual {v0, p2, p3}, Landroidx/appcompat/widget/AppCompatImageHelper;->loadFromAttributes(Landroid/util/AttributeSet;I)V
|
|
|
|
new-instance p2, Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
invoke-direct {p2, p0}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;-><init>(Lcom/google/android/material/expandable/ExpandableWidget;)V
|
|
|
|
iput-object p2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p1}, Lf/k/a/e/e/f;->a(Lcom/google/android/material/shape/ShapeAppearanceModel;)V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTint:Landroid/content/res/ColorStateList;
|
|
|
|
iget-object p3, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
iget v8, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->borderWidth:I
|
|
|
|
invoke-virtual {p1, p2, p3, v0, v8}, Lf/k/a/e/e/f;->a(Landroid/content/res/ColorStateList;Landroid/graphics/PorterDuff$Mode;Landroid/content/res/ColorStateList;I)V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
iput v4, p1, Lf/k/a/e/e/f;->k:I
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
iget p2, p1, Lf/k/a/e/e/f;->h:F
|
|
|
|
cmpl-float p2, p2, v1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
iput v1, p1, Lf/k/a/e/e/f;->h:F
|
|
|
|
iget p2, p1, Lf/k/a/e/e/f;->h:F
|
|
|
|
iget p3, p1, Lf/k/a/e/e/f;->i:F
|
|
|
|
iget v0, p1, Lf/k/a/e/e/f;->j:F
|
|
|
|
invoke-virtual {p1, p2, p3, v0}, Lf/k/a/e/e/f;->a(FFF)V
|
|
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
iget p2, p1, Lf/k/a/e/e/f;->i:F
|
|
|
|
cmpl-float p2, p2, v3
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
iput v3, p1, Lf/k/a/e/e/f;->i:F
|
|
|
|
iget p2, p1, Lf/k/a/e/e/f;->h:F
|
|
|
|
iget p3, p1, Lf/k/a/e/e/f;->i:F
|
|
|
|
iget v0, p1, Lf/k/a/e/e/f;->j:F
|
|
|
|
invoke-virtual {p1, p2, p3, v0}, Lf/k/a/e/e/f;->a(FFF)V
|
|
|
|
:cond_1
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
iget p2, p1, Lf/k/a/e/e/f;->j:F
|
|
|
|
cmpl-float p2, p2, v2
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
iput v2, p1, Lf/k/a/e/e/f;->j:F
|
|
|
|
iget p2, p1, Lf/k/a/e/e/f;->h:F
|
|
|
|
iget p3, p1, Lf/k/a/e/e/f;->i:F
|
|
|
|
iget v0, p1, Lf/k/a/e/e/f;->j:F
|
|
|
|
invoke-virtual {p1, p2, p3, v0}, Lf/k/a/e/e/f;->a(FFF)V
|
|
|
|
:cond_2
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
iget p2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->maxImageSize:I
|
|
|
|
iget p3, p1, Lf/k/a/e/e/f;->t:I
|
|
|
|
if-eq p3, p2, :cond_3
|
|
|
|
iput p2, p1, Lf/k/a/e/e/f;->t:I
|
|
|
|
iget p2, p1, Lf/k/a/e/e/f;->s:F
|
|
|
|
invoke-virtual {p1, p2}, Lf/k/a/e/e/f;->a(F)V
|
|
|
|
:cond_3
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object v5, p1, Lf/k/a/e/e/f;->p:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object v7, p1, Lf/k/a/e/e/f;->q:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
iput-boolean v6, p1, Lf/k/a/e/e/f;->f:Z
|
|
|
|
sget-object p1, Landroid/widget/ImageView$ScaleType;->MATRIX:Landroid/widget/ImageView$ScaleType;
|
|
|
|
invoke-virtual {p0, p1}, Landroid/widget/ImageButton;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$000(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imagePadding:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$101(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private createImpl()Lf/k/a/e/e/f;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
new-instance v0, Lf/k/a/e/e/i;
|
|
|
|
new-instance v1, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$b;
|
|
|
|
invoke-direct {v1, p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$b;-><init>(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V
|
|
|
|
invoke-direct {v0, p0, v1}, Lf/k/a/e/e/i;-><init>(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;Lcom/google/android/material/shadow/ShadowViewDelegate;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private getImpl()Lf/k/a/e/e/f;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->impl:Lf/k/a/e/e/f;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->createImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->impl:Lf/k/a/e/e/f;
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->impl:Lf/k/a/e/e/f;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private getSizeDimension(I)I
|
|
.locals 3
|
|
|
|
iget v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->customSize:I
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eq p1, v1, :cond_2
|
|
|
|
if-eq p1, v2, :cond_1
|
|
|
|
sget p1, Lcom/google/android/material/R$dimen;->design_fab_size_normal:I
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
sget p1, Lcom/google/android/material/R$dimen;->design_fab_size_mini:I
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_2
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
move-result-object p1
|
|
|
|
iget p1, p1, Landroid/content/res/Configuration;->screenWidthDp:I
|
|
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
move-result-object v0
|
|
|
|
iget v0, v0, Landroid/content/res/Configuration;->screenHeightDp:I
|
|
|
|
invoke-static {p1, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p1
|
|
|
|
const/16 v0, 0x1d6
|
|
|
|
if-ge p1, v0, :cond_3
|
|
|
|
invoke-direct {p0, v2}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getSizeDimension(I)I
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/4 p1, 0x0
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getSizeDimension(I)I
|
|
|
|
move-result p1
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method private offsetRectWithShadow(Landroid/graphics/Rect;)V
|
|
.locals 3
|
|
.param p1 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget v0, p1, Landroid/graphics/Rect;->left:I
|
|
|
|
iget-object v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->shadowPadding:Landroid/graphics/Rect;
|
|
|
|
iget v2, v1, Landroid/graphics/Rect;->left:I
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
iput v0, p1, Landroid/graphics/Rect;->left:I
|
|
|
|
iget v0, p1, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v2, v1, Landroid/graphics/Rect;->top:I
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
iput v0, p1, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v0, p1, Landroid/graphics/Rect;->right:I
|
|
|
|
iget v2, v1, Landroid/graphics/Rect;->right:I
|
|
|
|
sub-int/2addr v0, v2
|
|
|
|
iput v0, p1, Landroid/graphics/Rect;->right:I
|
|
|
|
iget v0, p1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
iget v1, v1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
iput v0, p1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private onApplySupportImageTint()V
|
|
.locals 4
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageTint:Landroid/content/res/ColorStateList;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
invoke-static {v0}, Landroidx/core/graphics/drawable/DrawableCompat;->clearColorFilter(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getDrawableState()[I
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/content/res/ColorStateList;->getColorForState([II)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
sget-object v2, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
:cond_2
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v1, v2}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getPorterDuffColorFilter(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuffColorFilter;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setColorFilter(Landroid/graphics/ColorFilter;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static resolveAdjustedSize(II)I
|
|
.locals 2
|
|
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result p1
|
|
|
|
const/high16 v1, -0x80000000
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/high16 p0, 0x40000000 # 2.0f
|
|
|
|
if-ne v0, p0, :cond_0
|
|
|
|
move p0, p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
throw p0
|
|
|
|
:cond_1
|
|
invoke-static {p0, p1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p0
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method private wrapOnVisibilityChangedListener(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)Lf/k/a/e/e/f$f;
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
new-instance v0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$a;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$a;-><init>(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public addOnHideAnimationListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
.locals 2
|
|
.param p1 # Landroid/animation/Animator$AnimatorListener;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->w:Ljava/util/ArrayList;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v1, v0, Lf/k/a/e/e/f;->w:Ljava/util/ArrayList;
|
|
|
|
:cond_0
|
|
iget-object v0, v0, Lf/k/a/e/e/f;->w:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public addOnShowAnimationListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
.locals 2
|
|
.param p1 # Landroid/animation/Animator$AnimatorListener;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->v:Ljava/util/ArrayList;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v1, v0, Lf/k/a/e/e/f;->v:Ljava/util/ArrayList;
|
|
|
|
:cond_0
|
|
iget-object v0, v0, Lf/k/a/e/e/f;->v:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public addTransformationCallback(Lcom/google/android/material/animation/TransformationCallback;)V
|
|
.locals 2
|
|
.param p1 # Lcom/google/android/material/animation/TransformationCallback;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/android/material/animation/TransformationCallback<",
|
|
"+",
|
|
"Lcom/google/android/material/floatingactionbutton/FloatingActionButton;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$c;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$c;-><init>(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;Lcom/google/android/material/animation/TransformationCallback;)V
|
|
|
|
iget-object p1, v0, Lf/k/a/e/e/f;->x:Ljava/util/ArrayList;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, v0, Lf/k/a/e/e/f;->x:Ljava/util/ArrayList;
|
|
|
|
:cond_0
|
|
iget-object p1, v0, Lf/k/a/e/e/f;->x:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p1, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public clearCustomSize()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setCustomSize(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public drawableStateChanged()V
|
|
.locals 2
|
|
|
|
invoke-super {p0}, Landroid/widget/ImageButton;->drawableStateChanged()V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getDrawableState()[I
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lf/k/a/e/e/f;->a([I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getBackgroundTintList()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTint:Landroid/content/res/ColorStateList;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getCompatElevation()F
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lf/k/a/e/e/f;->a()F
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCompatHoveredFocusedTranslationZ()F
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget v0, v0, Lf/k/a/e/e/f;->i:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCompatPressedTranslationZ()F
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget v0, v0, Lf/k/a/e/e/f;->j:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getContentBackground()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v0, v0, Lf/k/a/e/e/f;->e:Landroid/graphics/drawable/Drawable;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getContentRect(Landroid/graphics/Rect;)Z
|
|
.locals 3
|
|
.param p1 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getHeight()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1, v1, v1, v0, v2}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->offsetRectWithShadow(Landroid/graphics/Rect;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public getCustomSize()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
|
|
iget v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->customSize:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getExpandedComponentIdHint()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;->getExpandedComponentIdHint()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getHideMotionSpec()Lcom/google/android/material/animation/MotionSpec;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v0, v0, Lf/k/a/e/e/f;->q:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getMeasuredContentRect(Landroid/graphics/Rect;)V
|
|
.locals 3
|
|
.param p1 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getMeasuredWidth()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getMeasuredHeight()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {p1, v2, v2, v0, v1}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->offsetRectWithShadow(Landroid/graphics/Rect;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getRippleColor()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroid/content/res/ColorStateList;->getDefaultColor()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public getRippleColorStateList()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getShapeAppearanceModel()Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v0, v0, Lf/k/a/e/e/f;->a:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
invoke-static {v0}, Landroidx/core/util/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getShowMotionSpec()Lcom/google/android/material/animation/MotionSpec;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v0, v0, Lf/k/a/e/e/f;->p:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getSize()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->size:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSizeDimension()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->size:I
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getSizeDimension(I)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSupportBackgroundTintList()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getBackgroundTintList()Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getSupportBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getSupportImageTintList()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageTint:Landroid/content/res/ColorStateList;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getSupportImageTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getUseCompatPadding()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->compatPadding:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public hide()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->hide(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public hide(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->hide(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public hide(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;Z)V
|
|
.locals 3
|
|
.param p1 # Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->wrapOnVisibilityChangedListener(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)Lf/k/a/e/e/f$f;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0}, Lf/k/a/e/e/f;->b()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_0
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->o:Landroid/animation/Animator;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v1}, Landroid/animation/Animator;->cancel()V
|
|
|
|
:cond_1
|
|
invoke-virtual {v0}, Lf/k/a/e/e/f;->j()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->q:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->n:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/ImageButton;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Lcom/google/android/material/R$animator;->design_fab_hide_motion_spec:I
|
|
|
|
invoke-static {v1, v2}, Lcom/google/android/material/animation/MotionSpec;->createFromResource(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Lf/k/a/e/e/f;->n:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
:cond_3
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->n:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
invoke-static {v1}, Landroidx/core/util/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
:goto_0
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, v2, v2, v2}, Lf/k/a/e/e/f;->a(Lcom/google/android/material/animation/MotionSpec;FFF)Landroid/animation/AnimatorSet;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lf/k/a/e/e/d;
|
|
|
|
invoke-direct {v2, v0, p2, p1}, Lf/k/a/e/e/d;-><init>(Lf/k/a/e/e/f;ZLf/k/a/e/e/f$f;)V
|
|
|
|
invoke-virtual {v1, v2}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
iget-object p1, v0, Lf/k/a/e/e/f;->w:Ljava/util/ArrayList;
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_1
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Landroid/animation/Animator$AnimatorListener;
|
|
|
|
invoke-virtual {v1, p2}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
invoke-virtual {v1}, Landroid/animation/AnimatorSet;->start()V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
iget-object v0, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
if-eqz p2, :cond_6
|
|
|
|
const/16 v1, 0x8
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
const/4 v1, 0x4
|
|
|
|
:goto_2
|
|
invoke-virtual {v0, v1, p2}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->internalSetVisibility(IZ)V
|
|
|
|
if-eqz p1, :cond_7
|
|
|
|
check-cast p1, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$a;
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$a;->a()V
|
|
|
|
:cond_7
|
|
:goto_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public isExpanded()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;->isExpanded()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isOrWillBeHidden()Z
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lf/k/a/e/e/f;->b()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isOrWillBeShown()Z
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lf/k/a/e/e/f;->c()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public jumpDrawablesToCurrentState()V
|
|
.locals 1
|
|
|
|
invoke-super {p0}, Landroid/widget/ImageButton;->jumpDrawablesToCurrentState()V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lf/k/a/e/e/f;->d()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onAttachedToWindow()V
|
|
.locals 3
|
|
|
|
invoke-super {p0}, Landroid/widget/ImageButton;->onAttachedToWindow()V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->b:Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v2, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
invoke-static {v2, v1}, Lcom/google/android/material/shape/MaterialShapeUtils;->setParentAbsoluteElevation(Landroid/view/View;Lcom/google/android/material/shape/MaterialShapeDrawable;)V
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Lf/k/a/e/e/f;->h()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/ImageButton;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, v0, Lf/k/a/e/e/f;->E:Landroid/view/ViewTreeObserver$OnPreDrawListener;
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
new-instance v2, Lf/k/a/e/e/h;
|
|
|
|
invoke-direct {v2, v0}, Lf/k/a/e/e/h;-><init>(Lf/k/a/e/e/f;)V
|
|
|
|
iput-object v2, v0, Lf/k/a/e/e/f;->E:Landroid/view/ViewTreeObserver$OnPreDrawListener;
|
|
|
|
:cond_1
|
|
iget-object v0, v0, Lf/k/a/e/e/f;->E:Landroid/view/ViewTreeObserver$OnPreDrawListener;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDetachedFromWindow()V
|
|
.locals 3
|
|
|
|
invoke-super {p0}, Landroid/widget/ImageButton;->onDetachedFromWindow()V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/ImageButton;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, v0, Lf/k/a/e/e/f;->E:Landroid/view/ViewTreeObserver$OnPreDrawListener;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/ViewTreeObserver;->removeOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-object v1, v0, Lf/k/a/e/e/f;->E:Landroid/view/ViewTreeObserver$OnPreDrawListener;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onMeasure(II)V
|
|
.locals 2
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getSizeDimension()I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->maxImageSize:I
|
|
|
|
sub-int v1, v0, v1
|
|
|
|
div-int/lit8 v1, v1, 0x2
|
|
|
|
iput v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imagePadding:I
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lf/k/a/e/e/f;->m()V
|
|
|
|
invoke-static {v0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->resolveAdjustedSize(II)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {v0, p2}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->resolveAdjustedSize(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p1
|
|
|
|
iget-object p2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->shadowPadding:Landroid/graphics/Rect;
|
|
|
|
iget v0, p2, Landroid/graphics/Rect;->left:I
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
iget v1, p2, Landroid/graphics/Rect;->right:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iget v1, p2, Landroid/graphics/Rect;->top:I
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
iget p2, p2, Landroid/graphics/Rect;->bottom:I
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
invoke-virtual {p0, v0, p1}, Landroid/widget/ImageButton;->setMeasuredDimension(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
.locals 2
|
|
|
|
instance-of v0, p1, Lcom/google/android/material/stateful/ExtendableSavedState;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
check-cast p1, Lcom/google/android/material/stateful/ExtendableSavedState;
|
|
|
|
invoke-virtual {p1}, Landroidx/customview/view/AbsSavedState;->getSuperState()Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-super {p0, v0}, Landroid/widget/ImageButton;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
iget-object p1, p1, Lcom/google/android/material/stateful/ExtendableSavedState;->extendableStates:Landroidx/collection/SimpleArrayMap;
|
|
|
|
const-string v1, "expandableWidgetHelper"
|
|
|
|
invoke-virtual {p1, v1}, Landroidx/collection/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Landroidx/core/util/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;->onRestoreInstanceState(Landroid/os/Bundle;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSaveInstanceState()Landroid/os/Parcelable;
|
|
.locals 4
|
|
|
|
invoke-super {p0}, Landroid/widget/ImageButton;->onSaveInstanceState()Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
:cond_0
|
|
new-instance v1, Lcom/google/android/material/stateful/ExtendableSavedState;
|
|
|
|
invoke-direct {v1, v0}, Lcom/google/android/material/stateful/ExtendableSavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
iget-object v0, v1, Lcom/google/android/material/stateful/ExtendableSavedState;->extendableStates:Landroidx/collection/SimpleArrayMap;
|
|
|
|
iget-object v2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
invoke-virtual {v2}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;->onSaveInstanceState()Landroid/os/Bundle;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "expandableWidgetHelper"
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroidx/collection/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 3
|
|
.param p1 # Landroid/view/MotionEvent;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->touchArea:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getContentRect(Landroid/graphics/Rect;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->touchArea:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
move-result v1
|
|
|
|
float-to-int v1, v1
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
move-result v2
|
|
|
|
float-to-int v2, v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/graphics/Rect;->contains(II)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public removeOnHideAnimationListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
.locals 1
|
|
.param p1 # Landroid/animation/Animator$AnimatorListener;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v0, v0, Lf/k/a/e/e/f;->w:Ljava/util/ArrayList;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public removeOnShowAnimationListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
.locals 1
|
|
.param p1 # Landroid/animation/Animator$AnimatorListener;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v0, v0, Lf/k/a/e/e/f;->v:Ljava/util/ArrayList;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public removeTransformationCallback(Lcom/google/android/material/animation/TransformationCallback;)V
|
|
.locals 2
|
|
.param p1 # Lcom/google/android/material/animation/TransformationCallback;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/android/material/animation/TransformationCallback<",
|
|
"+",
|
|
"Lcom/google/android/material/floatingactionbutton/FloatingActionButton;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$c;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$c;-><init>(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;Lcom/google/android/material/animation/TransformationCallback;)V
|
|
|
|
iget-object p1, v0, Lf/k/a/e/e/f;->x:Ljava/util/ArrayList;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p1, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundColor(I)V
|
|
.locals 1
|
|
|
|
const-string p1, "FloatingActionButton"
|
|
|
|
const-string v0, "Setting a custom background is not supported."
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
|
|
const-string p1, "FloatingActionButton"
|
|
|
|
const-string v0, "Setting a custom background is not supported."
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundResource(I)V
|
|
.locals 1
|
|
|
|
const-string p1, "FloatingActionButton"
|
|
|
|
const-string v0, "Setting a custom background is not supported."
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
.locals 2
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTint:Landroid/content/res/ColorStateList;
|
|
|
|
if-eq v0, p1, :cond_1
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTint:Landroid/content/res/ColorStateList;
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->b:Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v1, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
:cond_0
|
|
iget-object v0, v0, Lf/k/a/e/e/f;->d:Lf/k/a/e/e/c;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0, p1}, Lf/k/a/e/e/c;->a(Landroid/content/res/ColorStateList;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 1
|
|
.param p1 # Landroid/graphics/PorterDuff$Mode;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v0, v0, Lf/k/a/e/e/f;->b:Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCompatElevation(F)V
|
|
.locals 3
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, v0, Lf/k/a/e/e/f;->h:F
|
|
|
|
cmpl-float v1, v1, p1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iput p1, v0, Lf/k/a/e/e/f;->h:F
|
|
|
|
iget p1, v0, Lf/k/a/e/e/f;->h:F
|
|
|
|
iget v1, v0, Lf/k/a/e/e/f;->i:F
|
|
|
|
iget v2, v0, Lf/k/a/e/e/f;->j:F
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Lf/k/a/e/e/f;->a(FFF)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCompatElevationResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setCompatElevation(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCompatHoveredFocusedTranslationZ(F)V
|
|
.locals 3
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, v0, Lf/k/a/e/e/f;->i:F
|
|
|
|
cmpl-float v1, v1, p1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iput p1, v0, Lf/k/a/e/e/f;->i:F
|
|
|
|
iget p1, v0, Lf/k/a/e/e/f;->h:F
|
|
|
|
iget v1, v0, Lf/k/a/e/e/f;->i:F
|
|
|
|
iget v2, v0, Lf/k/a/e/e/f;->j:F
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Lf/k/a/e/e/f;->a(FFF)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCompatHoveredFocusedTranslationZResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setCompatHoveredFocusedTranslationZ(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCompatPressedTranslationZ(F)V
|
|
.locals 3
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, v0, Lf/k/a/e/e/f;->j:F
|
|
|
|
cmpl-float v1, v1, p1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iput p1, v0, Lf/k/a/e/e/f;->j:F
|
|
|
|
iget p1, v0, Lf/k/a/e/e/f;->h:F
|
|
|
|
iget v1, v0, Lf/k/a/e/e/f;->i:F
|
|
|
|
iget v2, v0, Lf/k/a/e/e/f;->j:F
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Lf/k/a/e/e/f;->a(FFF)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCompatPressedTranslationZResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setCompatPressedTranslationZ(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCustomSize(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-ltz p1, :cond_1
|
|
|
|
iget v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->customSize:I
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
iput p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->customSize:I
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->requestLayout()V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "Custom size must be non-negative"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setElevation(F)V
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x15
|
|
.end annotation
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setElevation(F)V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v0, v0, Lf/k/a/e/e/f;->b:Lcom/google/android/material/shape/MaterialShapeDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setElevation(F)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setEnsureMinTouchTargetSize(Z)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-boolean v0, v0, Lf/k/a/e/e/f;->f:Z
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iput-boolean p1, v0, Lf/k/a/e/e/f;->f:Z
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->requestLayout()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setExpanded(Z)Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;->setExpanded(Z)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public setExpandedComponentIdHint(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/IdRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;->setExpandedComponentIdHint(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setHideMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/animation/MotionSpec;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object p1, v0, Lf/k/a/e/e/f;->q:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setHideMotionSpecResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/AnimatorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Lcom/google/android/material/animation/MotionSpec;->createFromResource(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setHideMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
iget v0, p1, Lf/k/a/e/e/f;->s:F
|
|
|
|
invoke-virtual {p1, v0}, Lf/k/a/e/e/f;->a(F)V
|
|
|
|
iget-object p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageTint:Landroid/content/res/ColorStateList;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->onApplySupportImageTint()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImageResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageHelper:Landroidx/appcompat/widget/AppCompatImageHelper;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatImageHelper;->setImageResource(I)V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->onApplySupportImageTint()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRippleColor(I)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-static {p1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setRippleColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRippleColor(Landroid/content/res/ColorStateList;)V
|
|
.locals 1
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
invoke-virtual {p1, v0}, Lf/k/a/e/e/f;->a(Landroid/content/res/ColorStateList;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setScaleX(F)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setScaleX(F)V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lf/k/a/e/e/f;->f()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setScaleY(F)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setScaleY(F)V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lf/k/a/e/e/f;->f()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShadowPaddingEnabled(Z)V
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iput-boolean p1, v0, Lf/k/a/e/e/f;->g:Z
|
|
|
|
invoke-virtual {v0}, Lf/k/a/e/e/f;->m()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShapeAppearanceModel(Lcom/google/android/material/shape/ShapeAppearanceModel;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lf/k/a/e/e/f;->a(Lcom/google/android/material/shape/ShapeAppearanceModel;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShowMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/animation/MotionSpec;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object p1, v0, Lf/k/a/e/e/f;->p:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShowMotionSpecResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/AnimatorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Lcom/google/android/material/animation/MotionSpec;->createFromResource(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setShowMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSize(I)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->customSize:I
|
|
|
|
iget v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->size:I
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
iput p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->size:I
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageButton;->requestLayout()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
.locals 0
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSupportBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/PorterDuff$Mode;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSupportImageTintList(Landroid/content/res/ColorStateList;)V
|
|
.locals 1
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageTint:Landroid/content/res/ColorStateList;
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageTint:Landroid/content/res/ColorStateList;
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->onApplySupportImageTint()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSupportImageTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 1
|
|
.param p1 # Landroid/graphics/PorterDuff$Mode;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->onApplySupportImageTint()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTranslationX(F)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setTranslationX(F)V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lf/k/a/e/e/f;->g()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTranslationY(F)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setTranslationY(F)V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lf/k/a/e/e/f;->g()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTranslationZ(F)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setTranslationZ(F)V
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lf/k/a/e/e/f;->g()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUseCompatPadding(Z)V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->compatPadding:Z
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iput-boolean p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->compatPadding:Z
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lf/k/a/e/e/f;->e()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVisibility(I)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public shouldEnsureMinTouchTargetSize()Z
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-boolean v0, v0, Lf/k/a/e/e/f;->f:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public show()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->show(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public show(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->show(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public show(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;Z)V
|
|
.locals 4
|
|
.param p1 # Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lf/k/a/e/e/f;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->wrapOnVisibilityChangedListener(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)Lf/k/a/e/e/f$f;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0}, Lf/k/a/e/e/f;->c()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_0
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->o:Landroid/animation/Animator;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v1}, Landroid/animation/Animator;->cancel()V
|
|
|
|
:cond_1
|
|
invoke-virtual {v0}, Lf/k/a/e/e/f;->j()Z
|
|
|
|
move-result v1
|
|
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/ImageButton;->getVisibility()I
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v1, v3}, Landroid/widget/ImageButton;->setAlpha(F)V
|
|
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
invoke-virtual {v1, v3}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setScaleY(F)V
|
|
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
invoke-virtual {v1, v3}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setScaleX(F)V
|
|
|
|
invoke-virtual {v0, v3}, Lf/k/a/e/e/f;->a(F)V
|
|
|
|
:cond_2
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->p:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->m:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/ImageButton;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
sget v3, Lcom/google/android/material/R$animator;->design_fab_show_motion_spec:I
|
|
|
|
invoke-static {v1, v3}, Lcom/google/android/material/animation/MotionSpec;->createFromResource(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Lf/k/a/e/e/f;->m:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
:cond_4
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->m:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
invoke-static {v1}, Landroidx/core/util/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1, v2, v2, v2}, Lf/k/a/e/e/f;->a(Lcom/google/android/material/animation/MotionSpec;FFF)Landroid/animation/AnimatorSet;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lf/k/a/e/e/e;
|
|
|
|
invoke-direct {v2, v0, p2, p1}, Lf/k/a/e/e/e;-><init>(Lf/k/a/e/e/f;ZLf/k/a/e/e/f$f;)V
|
|
|
|
invoke-virtual {v1, v2}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
iget-object p1, v0, Lf/k/a/e/e/f;->v:Ljava/util/ArrayList;
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_1
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_5
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Landroid/animation/Animator$AnimatorListener;
|
|
|
|
invoke-virtual {v1, p2}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
invoke-virtual {v1}, Landroid/animation/AnimatorSet;->start()V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
iget-object v1, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v1, v3, p2}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->internalSetVisibility(IZ)V
|
|
|
|
iget-object p2, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
invoke-virtual {p2, v2}, Landroid/widget/ImageButton;->setAlpha(F)V
|
|
|
|
iget-object p2, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
invoke-virtual {p2, v2}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setScaleY(F)V
|
|
|
|
iget-object p2, v0, Lf/k/a/e/e/f;->y:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
invoke-virtual {p2, v2}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setScaleX(F)V
|
|
|
|
invoke-virtual {v0, v2}, Lf/k/a/e/e/f;->a(F)V
|
|
|
|
if-eqz p1, :cond_7
|
|
|
|
check-cast p1, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$a;
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$a;->b()V
|
|
|
|
:cond_7
|
|
:goto_2
|
|
return-void
|
|
.end method
|