1966 lines
58 KiB
Smali
1966 lines
58 KiB
Smali
.class public abstract Lcom/google/android/material/navigation/NavigationBarItemView;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "NavigationBarItemView.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/appcompat/view/menu/MenuView$ItemView;
|
|
|
|
|
|
# static fields
|
|
.field private static final CHECKED_STATE_SET:[I
|
|
|
|
.field private static final INVALID_ITEM_POSITION:I = -0x1
|
|
|
|
|
|
# instance fields
|
|
.field private badgeDrawable:Lcom/google/android/material/badge/BadgeDrawable;
|
|
|
|
.field private final defaultMargin:I
|
|
|
|
.field private icon:Landroid/widget/ImageView;
|
|
|
|
.field private iconTint:Landroid/content/res/ColorStateList;
|
|
|
|
.field private isShifting:Z
|
|
|
|
.field private itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
.field private itemPosition:I
|
|
|
|
.field private final labelGroup:Landroid/view/ViewGroup;
|
|
|
|
.field private labelVisibilityMode:I
|
|
|
|
.field private final largeLabel:Landroid/widget/TextView;
|
|
|
|
.field private originalIconDrawable:Landroid/graphics/drawable/Drawable;
|
|
|
|
.field private scaleDownFactor:F
|
|
|
|
.field private scaleUpFactor:F
|
|
|
|
.field private shiftAmount:F
|
|
|
|
.field private final smallLabel:Landroid/widget/TextView;
|
|
|
|
.field private wrappedIconDrawable:Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const v2, 0x10100a0
|
|
|
|
aput v2, v0, v1
|
|
|
|
.line 68
|
|
sput-object v0, Lcom/google/android/material/navigation/NavigationBarItemView;->CHECKED_STATE_SET:[I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 5
|
|
|
|
.line 93
|
|
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 82
|
|
iput v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemPosition:I
|
|
|
|
.line 95
|
|
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->getItemLayoutResId()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {p1, v0, p0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
.line 96
|
|
sget p1, Lcom/google/android/material/R$id;->navigation_bar_item_icon_view:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/navigation/NavigationBarItemView;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
.line 97
|
|
sget p1, Lcom/google/android/material/R$id;->navigation_bar_item_labels_group:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/navigation/NavigationBarItemView;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/view/ViewGroup;
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelGroup:Landroid/view/ViewGroup;
|
|
|
|
.line 98
|
|
sget v0, Lcom/google/android/material/R$id;->navigation_bar_item_small_label_view:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/navigation/NavigationBarItemView;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
.line 99
|
|
sget v2, Lcom/google/android/material/R$id;->navigation_bar_item_large_label_view:I
|
|
|
|
invoke-virtual {p0, v2}, Lcom/google/android/material/navigation/NavigationBarItemView;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
iput-object v2, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
.line 101
|
|
invoke-virtual {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->getItemBackgroundResId()I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {p0, v3}, Lcom/google/android/material/navigation/NavigationBarItemView;->setBackgroundResource(I)V
|
|
|
|
.line 103
|
|
invoke-virtual {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->getItemDefaultMarginResId()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
move-result v3
|
|
|
|
iput v3, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->defaultMargin:I
|
|
|
|
.line 107
|
|
sget v3, Lcom/google/android/material/R$id;->mtrl_view_tag_bottom_padding:I
|
|
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getPaddingBottom()I
|
|
|
|
move-result v4
|
|
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {p1, v3, v4}, Landroid/view/ViewGroup;->setTag(ILjava/lang/Object;)V
|
|
|
|
const/4 p1, 0x2
|
|
|
|
.line 111
|
|
invoke-static {v0, p1}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V
|
|
|
|
.line 112
|
|
invoke-static {v2, p1}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V
|
|
|
|
.line 113
|
|
invoke-virtual {p0, v1}, Lcom/google/android/material/navigation/NavigationBarItemView;->setFocusable(Z)V
|
|
|
|
.line 114
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getTextSize()F
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v2}, Landroid/widget/TextView;->getTextSize()F
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/google/android/material/navigation/NavigationBarItemView;->calculateTextScaleFactors(FF)V
|
|
|
|
.line 117
|
|
iget-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 118
|
|
new-instance v0, Lcom/google/android/material/navigation/NavigationBarItemView$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/android/material/navigation/NavigationBarItemView$1;-><init>(Lcom/google/android/material/navigation/NavigationBarItemView;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/ImageView;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic access$000(Lcom/google/android/material/navigation/NavigationBarItemView;)Landroid/widget/ImageView;
|
|
.locals 0
|
|
|
|
.line 66
|
|
iget-object p0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic access$100(Lcom/google/android/material/navigation/NavigationBarItemView;Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
.line 66
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/navigation/NavigationBarItemView;->tryUpdateBadgeBounds(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private calculateTextScaleFactors(FF)V
|
|
.locals 2
|
|
|
|
sub-float v0, p1, p2
|
|
|
|
.line 480
|
|
iput v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->shiftAmount:F
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
mul-float v1, p2, v0
|
|
|
|
div-float/2addr v1, p1
|
|
|
|
.line 481
|
|
iput v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->scaleUpFactor:F
|
|
|
|
mul-float/2addr p1, v0
|
|
|
|
div-float/2addr p1, p2
|
|
|
|
.line 482
|
|
iput p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->scaleDownFactor:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private getCustomParentForBadge(Landroid/view/View;)Landroid/widget/FrameLayout;
|
|
.locals 2
|
|
|
|
.line 556
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 557
|
|
sget-boolean p1, Lcom/google/android/material/badge/BadgeUtils;->USE_COMPAT_PARENT:Z
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {p1}, Landroid/widget/ImageView;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object p1
|
|
|
|
move-object v1, p1
|
|
|
|
check-cast v1, Landroid/widget/FrameLayout;
|
|
|
|
:cond_0
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private getItemVisiblePosition()I
|
|
.locals 6
|
|
|
|
.line 358
|
|
invoke-virtual {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
.line 359
|
|
invoke-virtual {v0, p0}, Landroid/view/ViewGroup;->indexOfChild(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_1
|
|
|
|
.line 362
|
|
invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
.line 363
|
|
instance-of v5, v4, Lcom/google/android/material/navigation/NavigationBarItemView;
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
:cond_0
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return v3
|
|
.end method
|
|
|
|
.method private getSuggestedIconHeight()I
|
|
.locals 3
|
|
|
|
.line 579
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->badgeDrawable:Lcom/google/android/material/badge/BadgeDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 580
|
|
invoke-virtual {v0}, Lcom/google/android/material/badge/BadgeDrawable;->getMinimumHeight()I
|
|
|
|
move-result v0
|
|
|
|
div-int/lit8 v0, v0, 0x2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 586
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
.line 587
|
|
iget v1, v1, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v2}, Landroid/widget/ImageView;->getMeasuredWidth()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method private getSuggestedIconWidth()I
|
|
.locals 4
|
|
|
|
.line 564
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->badgeDrawable:Lcom/google/android/material/badge/BadgeDrawable;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
.line 567
|
|
:cond_0
|
|
invoke-virtual {v0}, Lcom/google/android/material/badge/BadgeDrawable;->getMinimumWidth()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->badgeDrawable:Lcom/google/android/material/badge/BadgeDrawable;
|
|
|
|
invoke-virtual {v1}, Lcom/google/android/material/badge/BadgeDrawable;->getHorizontalOffset()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 571
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
.line 572
|
|
iget v2, v1, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
|
|
|
|
invoke-static {v0, v2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
iget-object v3, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
.line 573
|
|
invoke-virtual {v3}, Landroid/widget/ImageView;->getMeasuredWidth()I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
iget v1, v1, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
|
|
|
|
.line 574
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
return v2
|
|
.end method
|
|
|
|
.method private hasBadge()Z
|
|
.locals 1
|
|
|
|
.line 515
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->badgeDrawable:Lcom/google/android/material/badge/BadgeDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method private static setViewLayoutParams(Landroid/view/View;II)V
|
|
.locals 1
|
|
|
|
.line 371
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
.line 372
|
|
iput p1, v0, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
|
|
|
|
.line 373
|
|
iput p2, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
|
|
|
|
.line 374
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static setViewScaleValues(Landroid/view/View;FFI)V
|
|
.locals 0
|
|
|
|
.line 379
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setScaleX(F)V
|
|
|
|
.line 380
|
|
invoke-virtual {p0, p2}, Landroid/view/View;->setScaleY(F)V
|
|
|
|
.line 381
|
|
invoke-virtual {p0, p3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private tryAttachBadgeToAnchor(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
.line 527
|
|
invoke-direct {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->hasBadge()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 532
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/navigation/NavigationBarItemView;->setClipChildren(Z)V
|
|
|
|
.line 533
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/navigation/NavigationBarItemView;->setClipToPadding(Z)V
|
|
|
|
.line 535
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->badgeDrawable:Lcom/google/android/material/badge/BadgeDrawable;
|
|
|
|
.line 536
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/navigation/NavigationBarItemView;->getCustomParentForBadge(Landroid/view/View;)Landroid/widget/FrameLayout;
|
|
|
|
move-result-object v1
|
|
|
|
.line 535
|
|
invoke-static {v0, p1, v1}, Lcom/google/android/material/badge/BadgeUtils;->attachBadgeDrawable(Lcom/google/android/material/badge/BadgeDrawable;Landroid/view/View;Landroid/widget/FrameLayout;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private tryRemoveBadgeFromAnchor(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
.line 541
|
|
invoke-direct {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->hasBadge()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 546
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/navigation/NavigationBarItemView;->setClipChildren(Z)V
|
|
|
|
.line 547
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/navigation/NavigationBarItemView;->setClipToPadding(Z)V
|
|
|
|
.line 549
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->badgeDrawable:Lcom/google/android/material/badge/BadgeDrawable;
|
|
|
|
invoke-static {v0, p1}, Lcom/google/android/material/badge/BadgeUtils;->detachBadgeDrawable(Lcom/google/android/material/badge/BadgeDrawable;Landroid/view/View;)V
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
.line 551
|
|
iput-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->badgeDrawable:Lcom/google/android/material/badge/BadgeDrawable;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private tryUpdateBadgeBounds(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
.line 519
|
|
invoke-direct {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->hasBadge()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 522
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->badgeDrawable:Lcom/google/android/material/badge/BadgeDrawable;
|
|
|
|
.line 523
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/navigation/NavigationBarItemView;->getCustomParentForBadge(Landroid/view/View;)Landroid/widget/FrameLayout;
|
|
|
|
move-result-object v1
|
|
|
|
.line 522
|
|
invoke-static {v0, p1, v1}, Lcom/google/android/material/badge/BadgeUtils;->setBadgeDrawableBounds(Lcom/google/android/material/badge/BadgeDrawable;Landroid/view/View;Landroid/widget/FrameLayout;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static updateViewPaddingBottom(Landroid/view/View;I)V
|
|
.locals 3
|
|
|
|
.line 386
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingLeft()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingRight()I
|
|
|
|
move-result v2
|
|
|
|
.line 385
|
|
invoke-virtual {p0, v0, v1, v2, p1}, Landroid/view/View;->setPadding(IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getBadge()Lcom/google/android/material/badge/BadgeDrawable;
|
|
.locals 1
|
|
|
|
.line 507
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->badgeDrawable:Lcom/google/android/material/badge/BadgeDrawable;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected getItemBackgroundResId()I
|
|
.locals 1
|
|
|
|
.line 597
|
|
sget v0, Lcom/google/android/material/R$drawable;->mtrl_navigation_bar_item_background:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getItemData()Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
.locals 1
|
|
|
|
.line 215
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected getItemDefaultMarginResId()I
|
|
.locals 1
|
|
|
|
.line 607
|
|
sget v0, Lcom/google/android/material/R$dimen;->mtrl_navigation_bar_item_default_margin:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected abstract getItemLayoutResId()I
|
|
.end method
|
|
|
|
.method public getItemPosition()I
|
|
.locals 1
|
|
|
|
.line 187
|
|
iget v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemPosition:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected getSuggestedMinimumHeight()I
|
|
.locals 3
|
|
|
|
.line 150
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelGroup:Landroid/view/ViewGroup;
|
|
|
|
invoke-virtual {v0}, Landroid/view/ViewGroup;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
.line 151
|
|
invoke-direct {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->getSuggestedIconHeight()I
|
|
|
|
move-result v1
|
|
|
|
iget v2, v0, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
iget-object v2, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelGroup:Landroid/view/ViewGroup;
|
|
|
|
.line 153
|
|
invoke-virtual {v2}, Landroid/view/ViewGroup;->getMeasuredHeight()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
iget v0, v0, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method protected getSuggestedMinimumWidth()I
|
|
.locals 3
|
|
|
|
.line 141
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelGroup:Landroid/view/ViewGroup;
|
|
|
|
invoke-virtual {v0}, Landroid/view/ViewGroup;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
.line 142
|
|
iget v1, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
|
|
|
|
iget-object v2, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelGroup:Landroid/view/ViewGroup;
|
|
|
|
.line 143
|
|
invoke-virtual {v2}, Landroid/view/ViewGroup;->getMeasuredWidth()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
iget v0, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
.line 145
|
|
invoke-direct {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->getSuggestedIconWidth()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public initialize(Landroidx/appcompat/view/menu/MenuItemImpl;I)V
|
|
.locals 2
|
|
|
|
.line 159
|
|
iput-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
.line 160
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->isCheckable()Z
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/navigation/NavigationBarItemView;->setCheckable(Z)V
|
|
|
|
.line 161
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->isChecked()Z
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/navigation/NavigationBarItemView;->setChecked(Z)V
|
|
|
|
.line 162
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->isEnabled()Z
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/navigation/NavigationBarItemView;->setEnabled(Z)V
|
|
|
|
.line 163
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->getIcon()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/navigation/NavigationBarItemView;->setIcon(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 164
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->getTitle()Ljava/lang/CharSequence;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/navigation/NavigationBarItemView;->setTitle(Ljava/lang/CharSequence;)V
|
|
|
|
.line 165
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->getItemId()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/navigation/NavigationBarItemView;->setId(I)V
|
|
|
|
.line 166
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->getContentDescription()Ljava/lang/CharSequence;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p2
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
.line 167
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->getContentDescription()Ljava/lang/CharSequence;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/navigation/NavigationBarItemView;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
.line 171
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->getTooltipText()Ljava/lang/CharSequence;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p2
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
.line 172
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->getTooltipText()Ljava/lang/CharSequence;
|
|
|
|
move-result-object p2
|
|
|
|
goto :goto_0
|
|
|
|
.line 173
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->getTitle()Ljava/lang/CharSequence;
|
|
|
|
move-result-object p2
|
|
|
|
.line 176
|
|
:goto_0
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x15
|
|
|
|
if-lt v0, v1, :cond_2
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x17
|
|
|
|
if-le v0, v1, :cond_3
|
|
|
|
.line 177
|
|
:cond_2
|
|
invoke-static {p0, p2}, Landroidx/appcompat/widget/TooltipCompat;->setTooltipText(Landroid/view/View;Ljava/lang/CharSequence;)V
|
|
|
|
.line 179
|
|
:cond_3
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->isVisible()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
const/16 p1, 0x8
|
|
|
|
:goto_1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/navigation/NavigationBarItemView;->setVisibility(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCreateDrawableState(I)[I
|
|
.locals 1
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
.line 407
|
|
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onCreateDrawableState(I)[I
|
|
|
|
move-result-object p1
|
|
|
|
.line 408
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/view/menu/MenuItemImpl;->isCheckable()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/view/menu/MenuItemImpl;->isChecked()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 409
|
|
sget-object v0, Lcom/google/android/material/navigation/NavigationBarItemView;->CHECKED_STATE_SET:[I
|
|
|
|
invoke-static {p1, v0}, Lcom/google/android/material/navigation/NavigationBarItemView;->mergeDrawableStates([I[I)[I
|
|
|
|
:cond_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
.locals 6
|
|
|
|
.line 326
|
|
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
|
|
.line 327
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->badgeDrawable:Lcom/google/android/material/badge/BadgeDrawable;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/badge/BadgeDrawable;->isVisible()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 328
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/view/menu/MenuItemImpl;->getTitle()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
.line 329
|
|
iget-object v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
invoke-virtual {v1}, Landroidx/appcompat/view/menu/MenuItemImpl;->getContentDescription()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 330
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/view/menu/MenuItemImpl;->getContentDescription()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
.line 332
|
|
:cond_0
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, ", "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->badgeDrawable:Lcom/google/android/material/badge/BadgeDrawable;
|
|
|
|
.line 333
|
|
invoke-virtual {v1}, Lcom/google/android/material/badge/BadgeDrawable;->getContentDescription()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 332
|
|
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
.line 335
|
|
:cond_1
|
|
invoke-static {p1}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;->wrap(Landroid/view/accessibility/AccessibilityNodeInfo;)Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 340
|
|
invoke-direct {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->getItemVisiblePosition()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 343
|
|
invoke-virtual {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->isSelected()Z
|
|
|
|
move-result v5
|
|
|
|
.line 337
|
|
invoke-static/range {v0 .. v5}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$CollectionItemInfoCompat;->obtain(IIIIZZ)Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$CollectionItemInfoCompat;
|
|
|
|
move-result-object v0
|
|
|
|
.line 336
|
|
invoke-virtual {p1, v0}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;->setCollectionItemInfo(Ljava/lang/Object;)V
|
|
|
|
.line 344
|
|
invoke-virtual {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->isSelected()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 345
|
|
invoke-virtual {p1, v0}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;->setClickable(Z)V
|
|
|
|
.line 346
|
|
sget-object v0, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$AccessibilityActionCompat;->ACTION_CLICK:Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$AccessibilityActionCompat;
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;->removeAction(Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$AccessibilityActionCompat;)Z
|
|
|
|
.line 348
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/google/android/material/R$string;->item_view_role_description:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;->setRoleDescription(Ljava/lang/CharSequence;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public prefersCondensedTitle()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method removeBadge()V
|
|
.locals 1
|
|
|
|
.line 511
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/android/material/navigation/NavigationBarItemView;->tryRemoveBadgeFromAnchor(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method setBadge(Lcom/google/android/material/badge/BadgeDrawable;)V
|
|
.locals 0
|
|
|
|
.line 499
|
|
iput-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->badgeDrawable:Lcom/google/android/material/badge/BadgeDrawable;
|
|
|
|
.line 500
|
|
iget-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 501
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/navigation/NavigationBarItemView;->tryAttachBadgeToAnchor(Landroid/view/View;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCheckable(Z)V
|
|
.locals 0
|
|
|
|
.line 238
|
|
invoke-virtual {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->refreshDrawableState()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChecked(Z)V
|
|
.locals 8
|
|
|
|
.line 243
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getWidth()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x2
|
|
|
|
div-int/2addr v1, v2
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setPivotX(F)V
|
|
|
|
.line 244
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getBaseline()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setPivotY(F)V
|
|
|
|
.line 245
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getWidth()I
|
|
|
|
move-result v1
|
|
|
|
div-int/2addr v1, v2
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setPivotX(F)V
|
|
|
|
.line 246
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getBaseline()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setPivotY(F)V
|
|
|
|
.line 248
|
|
iget v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelVisibilityMode:I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
const/16 v3, 0x11
|
|
|
|
const/16 v4, 0x31
|
|
|
|
const/high16 v5, 0x3f800000 # 1.0f
|
|
|
|
const/4 v6, 0x4
|
|
|
|
const/4 v7, 0x0
|
|
|
|
if-eq v0, v1, :cond_5
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
if-eq v0, v2, :cond_0
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 308
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
iget v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->defaultMargin:I
|
|
|
|
invoke-static {v0, v1, v3}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewLayoutParams(Landroid/view/View;II)V
|
|
|
|
.line 309
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
.line 310
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 293
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelGroup:Landroid/view/ViewGroup;
|
|
|
|
sget v1, Lcom/google/android/material/R$id;->mtrl_view_tag_bottom_padding:I
|
|
|
|
.line 294
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
.line 293
|
|
invoke-static {v0, v1}, Lcom/google/android/material/navigation/NavigationBarItemView;->updateViewPaddingBottom(Landroid/view/View;I)V
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 296
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
iget v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->defaultMargin:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
iget v2, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->shiftAmount:F
|
|
|
|
add-float/2addr v1, v2
|
|
|
|
float-to-int v1, v1
|
|
|
|
invoke-static {v0, v1, v4}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewLayoutParams(Landroid/view/View;II)V
|
|
|
|
.line 298
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-static {v0, v5, v5, v7}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewScaleValues(Landroid/view/View;FFI)V
|
|
|
|
.line 299
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
iget v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->scaleUpFactor:F
|
|
|
|
invoke-static {v0, v1, v1, v6}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewScaleValues(Landroid/view/View;FFI)V
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 301
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
iget v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->defaultMargin:I
|
|
|
|
invoke-static {v0, v1, v4}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewLayoutParams(Landroid/view/View;II)V
|
|
|
|
.line 302
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
iget v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->scaleDownFactor:F
|
|
|
|
invoke-static {v0, v1, v1, v6}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewScaleValues(Landroid/view/View;FFI)V
|
|
|
|
.line 303
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
invoke-static {v0, v5, v5, v7}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewScaleValues(Landroid/view/View;FFI)V
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_3
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 280
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
iget v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->defaultMargin:I
|
|
|
|
invoke-static {v0, v1, v4}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewLayoutParams(Landroid/view/View;II)V
|
|
|
|
.line 281
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelGroup:Landroid/view/ViewGroup;
|
|
|
|
sget v1, Lcom/google/android/material/R$id;->mtrl_view_tag_bottom_padding:I
|
|
|
|
.line 282
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
.line 281
|
|
invoke-static {v0, v1}, Lcom/google/android/material/navigation/NavigationBarItemView;->updateViewPaddingBottom(Landroid/view/View;I)V
|
|
|
|
.line 283
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, v7}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 285
|
|
:cond_4
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
iget v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->defaultMargin:I
|
|
|
|
invoke-static {v0, v1, v3}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewLayoutParams(Landroid/view/View;II)V
|
|
|
|
.line 286
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelGroup:Landroid/view/ViewGroup;
|
|
|
|
invoke-static {v0, v7}, Lcom/google/android/material/navigation/NavigationBarItemView;->updateViewPaddingBottom(Landroid/view/View;I)V
|
|
|
|
.line 287
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, v6}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
.line 289
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, v6}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 250
|
|
:cond_5
|
|
iget-boolean v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->isShifting:Z
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
.line 252
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
iget v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->defaultMargin:I
|
|
|
|
invoke-static {v0, v1, v4}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewLayoutParams(Landroid/view/View;II)V
|
|
|
|
.line 253
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelGroup:Landroid/view/ViewGroup;
|
|
|
|
sget v1, Lcom/google/android/material/R$id;->mtrl_view_tag_bottom_padding:I
|
|
|
|
.line 254
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
.line 253
|
|
invoke-static {v0, v1}, Lcom/google/android/material/navigation/NavigationBarItemView;->updateViewPaddingBottom(Landroid/view/View;I)V
|
|
|
|
.line 255
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, v7}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 257
|
|
:cond_6
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
iget v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->defaultMargin:I
|
|
|
|
invoke-static {v0, v1, v3}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewLayoutParams(Landroid/view/View;II)V
|
|
|
|
.line 258
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelGroup:Landroid/view/ViewGroup;
|
|
|
|
invoke-static {v0, v7}, Lcom/google/android/material/navigation/NavigationBarItemView;->updateViewPaddingBottom(Landroid/view/View;I)V
|
|
|
|
.line 259
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, v6}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
.line 261
|
|
:goto_1
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, v6}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 263
|
|
:cond_7
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelGroup:Landroid/view/ViewGroup;
|
|
|
|
sget v1, Lcom/google/android/material/R$id;->mtrl_view_tag_bottom_padding:I
|
|
|
|
.line 264
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
.line 263
|
|
invoke-static {v0, v1}, Lcom/google/android/material/navigation/NavigationBarItemView;->updateViewPaddingBottom(Landroid/view/View;I)V
|
|
|
|
if-eqz p1, :cond_8
|
|
|
|
.line 266
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
iget v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->defaultMargin:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
iget v2, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->shiftAmount:F
|
|
|
|
add-float/2addr v1, v2
|
|
|
|
float-to-int v1, v1
|
|
|
|
invoke-static {v0, v1, v4}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewLayoutParams(Landroid/view/View;II)V
|
|
|
|
.line 268
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-static {v0, v5, v5, v7}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewScaleValues(Landroid/view/View;FFI)V
|
|
|
|
.line 269
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
iget v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->scaleUpFactor:F
|
|
|
|
invoke-static {v0, v1, v1, v6}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewScaleValues(Landroid/view/View;FFI)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 271
|
|
:cond_8
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
iget v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->defaultMargin:I
|
|
|
|
invoke-static {v0, v1, v4}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewLayoutParams(Landroid/view/View;II)V
|
|
|
|
.line 272
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
iget v1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->scaleDownFactor:F
|
|
|
|
invoke-static {v0, v1, v1, v6}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewScaleValues(Landroid/view/View;FFI)V
|
|
|
|
.line 273
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
invoke-static {v0, v5, v5, v7}, Lcom/google/android/material/navigation/NavigationBarItemView;->setViewScaleValues(Landroid/view/View;FFI)V
|
|
|
|
.line 317
|
|
:goto_2
|
|
invoke-virtual {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->refreshDrawableState()V
|
|
|
|
.line 321
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/navigation/NavigationBarItemView;->setSelected(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setEnabled(Z)V
|
|
.locals 1
|
|
|
|
.line 391
|
|
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setEnabled(Z)V
|
|
|
|
.line 392
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setEnabled(Z)V
|
|
|
|
.line 393
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setEnabled(Z)V
|
|
|
|
.line 394
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setEnabled(Z)V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 398
|
|
invoke-virtual {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
const/16 v0, 0x3ea
|
|
|
|
invoke-static {p1, v0}, Landroidx/core/view/PointerIconCompat;->getSystemIcon(Landroid/content/Context;I)Landroidx/core/view/PointerIconCompat;
|
|
|
|
move-result-object p1
|
|
|
|
.line 397
|
|
invoke-static {p0, p1}, Landroidx/core/view/ViewCompat;->setPointerIcon(Landroid/view/View;Landroidx/core/view/PointerIconCompat;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 400
|
|
invoke-static {p0, p1}, Landroidx/core/view/ViewCompat;->setPointerIcon(Landroid/view/View;Landroidx/core/view/PointerIconCompat;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIcon(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
|
|
.line 419
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->originalIconDrawable:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 424
|
|
:cond_0
|
|
iput-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->originalIconDrawable:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 426
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getConstantState()Landroid/graphics/drawable/Drawable$ConstantState;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 428
|
|
:cond_1
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable$ConstantState;->newDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-static {p1}, Landroidx/core/graphics/drawable/DrawableCompat;->wrap(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
.line 429
|
|
iput-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->wrappedIconDrawable:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 430
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->iconTint:Landroid/content/res/ColorStateList;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 431
|
|
invoke-static {p1, v0}, Landroidx/core/graphics/drawable/DrawableCompat;->setTintList(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 434
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIconSize(I)V
|
|
.locals 1
|
|
|
|
.line 456
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
.line 457
|
|
iput p1, v0, Landroid/widget/FrameLayout$LayoutParams;->width:I
|
|
|
|
.line 458
|
|
iput p1, v0, Landroid/widget/FrameLayout$LayoutParams;->height:I
|
|
|
|
.line 459
|
|
iget-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->icon:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setIconTintList(Landroid/content/res/ColorStateList;)V
|
|
.locals 1
|
|
|
|
.line 448
|
|
iput-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->iconTint:Landroid/content/res/ColorStateList;
|
|
|
|
.line 449
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->wrappedIconDrawable:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 450
|
|
invoke-static {v0, p1}, Landroidx/core/graphics/drawable/DrawableCompat;->setTintList(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 451
|
|
iget-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->wrappedIconDrawable:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setItemBackground(I)V
|
|
.locals 1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
.line 487
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/material/navigation/NavigationBarItemView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
.line 488
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/navigation/NavigationBarItemView;->setItemBackground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setItemBackground(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 492
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getConstantState()Landroid/graphics/drawable/Drawable$ConstantState;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 493
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getConstantState()Landroid/graphics/drawable/Drawable$ConstantState;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable$ConstantState;->newDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
.line 495
|
|
:cond_0
|
|
invoke-static {p0, p1}, Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setItemPosition(I)V
|
|
.locals 0
|
|
|
|
.line 183
|
|
iput p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemPosition:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLabelVisibilityMode(I)V
|
|
.locals 1
|
|
|
|
.line 202
|
|
iget v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelVisibilityMode:I
|
|
|
|
if-eq v0, p1, :cond_1
|
|
|
|
.line 203
|
|
iput p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->labelVisibilityMode:I
|
|
|
|
.line 205
|
|
iget-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 207
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->isChecked()Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/navigation/NavigationBarItemView;->setChecked(Z)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShifting(Z)V
|
|
.locals 1
|
|
|
|
.line 191
|
|
iget-boolean v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->isShifting:Z
|
|
|
|
if-eq v0, p1, :cond_1
|
|
|
|
.line 192
|
|
iput-boolean p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->isShifting:Z
|
|
|
|
.line 194
|
|
iget-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 196
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->isChecked()Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/navigation/NavigationBarItemView;->setChecked(Z)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShortcut(ZC)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextAppearanceActive(I)V
|
|
.locals 1
|
|
|
|
.line 468
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-static {v0, p1}, Landroidx/core/widget/TextViewCompat;->setTextAppearance(Landroid/widget/TextView;I)V
|
|
|
|
.line 469
|
|
iget-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p1}, Landroid/widget/TextView;->getTextSize()F
|
|
|
|
move-result p1
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getTextSize()F
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/google/android/material/navigation/NavigationBarItemView;->calculateTextScaleFactors(FF)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextAppearanceInactive(I)V
|
|
.locals 1
|
|
|
|
.line 463
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
invoke-static {v0, p1}, Landroidx/core/widget/TextViewCompat;->setTextAppearance(Landroid/widget/TextView;I)V
|
|
|
|
.line 464
|
|
iget-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p1}, Landroid/widget/TextView;->getTextSize()F
|
|
|
|
move-result p1
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getTextSize()F
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/google/android/material/navigation/NavigationBarItemView;->calculateTextScaleFactors(FF)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTextColor(Landroid/content/res/ColorStateList;)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 474
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 475
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitle(Ljava/lang/CharSequence;)V
|
|
.locals 2
|
|
|
|
.line 220
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->smallLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 221
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->largeLabel:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 222
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/view/menu/MenuItemImpl;->getContentDescription()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 223
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/navigation/NavigationBarItemView;->setContentDescription(Ljava/lang/CharSequence;)V
|
|
|
|
.line 226
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 227
|
|
invoke-virtual {v0}, Landroidx/appcompat/view/menu/MenuItemImpl;->getTooltipText()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/google/android/material/navigation/NavigationBarItemView;->itemData:Landroidx/appcompat/view/menu/MenuItemImpl;
|
|
|
|
.line 229
|
|
invoke-virtual {p1}, Landroidx/appcompat/view/menu/MenuItemImpl;->getTooltipText()Ljava/lang/CharSequence;
|
|
|
|
move-result-object p1
|
|
|
|
.line 231
|
|
:cond_3
|
|
:goto_0
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x15
|
|
|
|
if-lt v0, v1, :cond_4
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x17
|
|
|
|
if-le v0, v1, :cond_5
|
|
|
|
.line 232
|
|
:cond_4
|
|
invoke-static {p0, p1}, Landroidx/appcompat/widget/TooltipCompat;->setTooltipText(Landroid/view/View;Ljava/lang/CharSequence;)V
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|
|
|
|
.method public showsIcon()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|