Initial commit
This commit is contained in:
15
sources/com/google/android/material/R$animator.java
Normal file
15
sources/com/google/android/material/R$animator.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package com.google.android.material;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class R$animator {
|
||||
public static final int design_appbar_state_list_animator = 2130837504;
|
||||
public static final int design_fab_hide_motion_spec = 2130837505;
|
||||
public static final int design_fab_show_motion_spec = 2130837506;
|
||||
public static final int mtrl_btn_state_list_anim = 2130837507;
|
||||
public static final int mtrl_btn_unelevated_state_list_anim = 2130837508;
|
||||
public static final int mtrl_chip_state_list_anim = 2130837509;
|
||||
public static final int mtrl_fab_hide_motion_spec = 2130837510;
|
||||
public static final int mtrl_fab_show_motion_spec = 2130837511;
|
||||
public static final int mtrl_fab_transformation_sheet_collapse_spec = 2130837512;
|
||||
public static final int mtrl_fab_transformation_sheet_expand_spec = 2130837513;
|
||||
}
|
||||
482
sources/com/google/android/material/R$attr.java
Normal file
482
sources/com/google/android/material/R$attr.java
Normal file
@@ -0,0 +1,482 @@
|
||||
package com.google.android.material;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class R$attr {
|
||||
public static final int actionBarDivider = 2130968576;
|
||||
public static final int actionBarItemBackground = 2130968577;
|
||||
public static final int actionBarPopupTheme = 2130968578;
|
||||
public static final int actionBarSize = 2130968579;
|
||||
public static final int actionBarSplitStyle = 2130968580;
|
||||
public static final int actionBarStyle = 2130968581;
|
||||
public static final int actionBarTabBarStyle = 2130968582;
|
||||
public static final int actionBarTabStyle = 2130968583;
|
||||
public static final int actionBarTabTextStyle = 2130968584;
|
||||
public static final int actionBarTheme = 2130968585;
|
||||
public static final int actionBarWidgetTheme = 2130968586;
|
||||
public static final int actionButtonStyle = 2130968587;
|
||||
public static final int actionDropDownStyle = 2130968589;
|
||||
public static final int actionLayout = 2130968590;
|
||||
public static final int actionMenuTextAppearance = 2130968591;
|
||||
public static final int actionMenuTextColor = 2130968592;
|
||||
public static final int actionModeBackground = 2130968593;
|
||||
public static final int actionModeCloseButtonStyle = 2130968594;
|
||||
public static final int actionModeCloseDrawable = 2130968595;
|
||||
public static final int actionModeCopyDrawable = 2130968596;
|
||||
public static final int actionModeCutDrawable = 2130968597;
|
||||
public static final int actionModeFindDrawable = 2130968598;
|
||||
public static final int actionModePasteDrawable = 2130968599;
|
||||
public static final int actionModePopupWindowStyle = 2130968600;
|
||||
public static final int actionModeSelectAllDrawable = 2130968601;
|
||||
public static final int actionModeShareDrawable = 2130968602;
|
||||
public static final int actionModeSplitBackground = 2130968603;
|
||||
public static final int actionModeStyle = 2130968604;
|
||||
public static final int actionModeWebSearchDrawable = 2130968605;
|
||||
public static final int actionOverflowButtonStyle = 2130968606;
|
||||
public static final int actionOverflowMenuStyle = 2130968607;
|
||||
public static final int actionProviderClass = 2130968608;
|
||||
public static final int actionViewClass = 2130968609;
|
||||
public static final int activityChooserViewStyle = 2130968610;
|
||||
public static final int alertDialogButtonGroupStyle = 2130968611;
|
||||
public static final int alertDialogCenterButtons = 2130968612;
|
||||
public static final int alertDialogStyle = 2130968613;
|
||||
public static final int alertDialogTheme = 2130968614;
|
||||
public static final int allowStacking = 2130968615;
|
||||
public static final int alpha = 2130968616;
|
||||
public static final int alphabeticModifiers = 2130968617;
|
||||
public static final int arrowHeadLength = 2130968618;
|
||||
public static final int arrowShaftLength = 2130968619;
|
||||
public static final int autoCompleteTextViewStyle = 2130968623;
|
||||
public static final int autoSizeMaxTextSize = 2130968624;
|
||||
public static final int autoSizeMinTextSize = 2130968625;
|
||||
public static final int autoSizePresetSizes = 2130968626;
|
||||
public static final int autoSizeStepGranularity = 2130968627;
|
||||
public static final int autoSizeTextType = 2130968628;
|
||||
public static final int background = 2130968629;
|
||||
public static final int backgroundSplit = 2130968630;
|
||||
public static final int backgroundStacked = 2130968631;
|
||||
public static final int backgroundTint = 2130968632;
|
||||
public static final int backgroundTintMode = 2130968633;
|
||||
public static final int barLength = 2130968636;
|
||||
public static final int behavior_autoHide = 2130968639;
|
||||
public static final int behavior_fitToContents = 2130968640;
|
||||
public static final int behavior_hideable = 2130968641;
|
||||
public static final int behavior_overlapTop = 2130968642;
|
||||
public static final int behavior_peekHeight = 2130968643;
|
||||
public static final int behavior_skipCollapsed = 2130968644;
|
||||
public static final int borderWidth = 2130968647;
|
||||
public static final int borderlessButtonStyle = 2130968648;
|
||||
public static final int bottomAppBarStyle = 2130968649;
|
||||
public static final int bottomNavigationStyle = 2130968651;
|
||||
public static final int bottomSheetDialogTheme = 2130968652;
|
||||
public static final int bottomSheetStyle = 2130968653;
|
||||
public static final int boxBackgroundColor = 2130968654;
|
||||
public static final int boxBackgroundMode = 2130968655;
|
||||
public static final int boxCollapsedPaddingTop = 2130968656;
|
||||
public static final int boxCornerRadiusBottomEnd = 2130968657;
|
||||
public static final int boxCornerRadiusBottomStart = 2130968658;
|
||||
public static final int boxCornerRadiusTopEnd = 2130968659;
|
||||
public static final int boxCornerRadiusTopStart = 2130968660;
|
||||
public static final int boxStrokeColor = 2130968661;
|
||||
public static final int boxStrokeWidth = 2130968662;
|
||||
public static final int buttonBarButtonStyle = 2130968663;
|
||||
public static final int buttonBarNegativeButtonStyle = 2130968664;
|
||||
public static final int buttonBarNeutralButtonStyle = 2130968665;
|
||||
public static final int buttonBarPositiveButtonStyle = 2130968666;
|
||||
public static final int buttonBarStyle = 2130968667;
|
||||
public static final int buttonGravity = 2130968668;
|
||||
public static final int buttonIconDimen = 2130968669;
|
||||
public static final int buttonPanelSideLayout = 2130968670;
|
||||
public static final int buttonStyle = 2130968672;
|
||||
public static final int buttonStyleSmall = 2130968673;
|
||||
public static final int buttonTint = 2130968674;
|
||||
public static final int buttonTintMode = 2130968675;
|
||||
public static final int cardBackgroundColor = 2130968676;
|
||||
public static final int cardCornerRadius = 2130968677;
|
||||
public static final int cardElevation = 2130968678;
|
||||
public static final int cardMaxElevation = 2130968679;
|
||||
public static final int cardPreventCornerOverlap = 2130968680;
|
||||
public static final int cardUseCompatPadding = 2130968681;
|
||||
public static final int cardViewStyle = 2130968682;
|
||||
public static final int checkboxStyle = 2130968684;
|
||||
public static final int checkedChip = 2130968685;
|
||||
public static final int checkedIcon = 2130968686;
|
||||
public static final int checkedIconEnabled = 2130968687;
|
||||
public static final int checkedIconVisible = 2130968688;
|
||||
public static final int checkedTextViewStyle = 2130968689;
|
||||
public static final int chipBackgroundColor = 2130968690;
|
||||
public static final int chipCornerRadius = 2130968691;
|
||||
public static final int chipEndPadding = 2130968692;
|
||||
public static final int chipGroupStyle = 2130968693;
|
||||
public static final int chipIcon = 2130968694;
|
||||
public static final int chipIconEnabled = 2130968695;
|
||||
public static final int chipIconSize = 2130968696;
|
||||
public static final int chipIconTint = 2130968697;
|
||||
public static final int chipIconVisible = 2130968698;
|
||||
public static final int chipMinHeight = 2130968699;
|
||||
public static final int chipSpacing = 2130968700;
|
||||
public static final int chipSpacingHorizontal = 2130968701;
|
||||
public static final int chipSpacingVertical = 2130968702;
|
||||
public static final int chipStandaloneStyle = 2130968703;
|
||||
public static final int chipStartPadding = 2130968704;
|
||||
public static final int chipStrokeColor = 2130968705;
|
||||
public static final int chipStrokeWidth = 2130968706;
|
||||
public static final int chipStyle = 2130968707;
|
||||
public static final int closeIcon = 2130968715;
|
||||
public static final int closeIconEnabled = 2130968716;
|
||||
public static final int closeIconEndPadding = 2130968717;
|
||||
public static final int closeIconSize = 2130968718;
|
||||
public static final int closeIconStartPadding = 2130968719;
|
||||
public static final int closeIconTint = 2130968720;
|
||||
public static final int closeIconVisible = 2130968721;
|
||||
public static final int closeItemLayout = 2130968722;
|
||||
public static final int collapseContentDescription = 2130968723;
|
||||
public static final int collapseIcon = 2130968724;
|
||||
public static final int collapsedTitleGravity = 2130968725;
|
||||
public static final int collapsedTitleTextAppearance = 2130968726;
|
||||
public static final int color = 2130968727;
|
||||
public static final int colorAccent = 2130968728;
|
||||
public static final int colorBackgroundFloating = 2130968729;
|
||||
public static final int colorButtonNormal = 2130968730;
|
||||
public static final int colorControlActivated = 2130968731;
|
||||
public static final int colorControlHighlight = 2130968732;
|
||||
public static final int colorControlNormal = 2130968733;
|
||||
public static final int colorError = 2130968734;
|
||||
public static final int colorPrimary = 2130968735;
|
||||
public static final int colorPrimaryDark = 2130968736;
|
||||
public static final int colorSecondary = 2130968738;
|
||||
public static final int colorSwitchThumbNormal = 2130968739;
|
||||
public static final int commitIcon = 2130968753;
|
||||
public static final int contentDescription = 2130968757;
|
||||
public static final int contentInsetEnd = 2130968760;
|
||||
public static final int contentInsetEndWithActions = 2130968761;
|
||||
public static final int contentInsetLeft = 2130968762;
|
||||
public static final int contentInsetRight = 2130968763;
|
||||
public static final int contentInsetStart = 2130968764;
|
||||
public static final int contentInsetStartWithNavigation = 2130968765;
|
||||
public static final int contentPadding = 2130968766;
|
||||
public static final int contentPaddingBottom = 2130968767;
|
||||
public static final int contentPaddingLeft = 2130968768;
|
||||
public static final int contentPaddingRight = 2130968769;
|
||||
public static final int contentPaddingTop = 2130968770;
|
||||
public static final int contentScrim = 2130968771;
|
||||
public static final int controlBackground = 2130968772;
|
||||
public static final int coordinatorLayoutStyle = 2130968773;
|
||||
public static final int cornerRadius = 2130968774;
|
||||
public static final int counterEnabled = 2130968775;
|
||||
public static final int counterMaxLength = 2130968776;
|
||||
public static final int counterOverflowTextAppearance = 2130968777;
|
||||
public static final int counterTextAppearance = 2130968778;
|
||||
public static final int customNavigationLayout = 2130968779;
|
||||
public static final int defaultQueryHint = 2130968780;
|
||||
public static final int dialogCornerRadius = 2130968783;
|
||||
public static final int dialogPreferredPadding = 2130968784;
|
||||
public static final int dialogTheme = 2130968785;
|
||||
public static final int displayOptions = 2130968786;
|
||||
public static final int divider = 2130968787;
|
||||
public static final int dividerHorizontal = 2130968788;
|
||||
public static final int dividerPadding = 2130968789;
|
||||
public static final int dividerVertical = 2130968790;
|
||||
public static final int drawableSize = 2130968792;
|
||||
public static final int drawerArrowStyle = 2130968793;
|
||||
public static final int dropDownListViewStyle = 2130968794;
|
||||
public static final int dropdownListPreferredItemHeight = 2130968795;
|
||||
public static final int editTextBackground = 2130968796;
|
||||
public static final int editTextColor = 2130968797;
|
||||
public static final int editTextStyle = 2130968798;
|
||||
public static final int elevation = 2130968799;
|
||||
public static final int enforceMaterialTheme = 2130968801;
|
||||
public static final int enforceTextAppearance = 2130968802;
|
||||
public static final int errorEnabled = 2130968803;
|
||||
public static final int errorTextAppearance = 2130968804;
|
||||
public static final int expandActivityOverflowButtonDrawable = 2130968805;
|
||||
public static final int expanded = 2130968806;
|
||||
public static final int expandedTitleGravity = 2130968807;
|
||||
public static final int expandedTitleMargin = 2130968808;
|
||||
public static final int expandedTitleMarginBottom = 2130968809;
|
||||
public static final int expandedTitleMarginEnd = 2130968810;
|
||||
public static final int expandedTitleMarginStart = 2130968811;
|
||||
public static final int expandedTitleMarginTop = 2130968812;
|
||||
public static final int expandedTitleTextAppearance = 2130968813;
|
||||
public static final int fabAlignmentMode = 2130968814;
|
||||
public static final int fabCradleMargin = 2130968815;
|
||||
public static final int fabCradleRoundedCornerRadius = 2130968816;
|
||||
public static final int fabCradleVerticalOffset = 2130968817;
|
||||
public static final int fabCustomSize = 2130968818;
|
||||
public static final int fabSize = 2130968819;
|
||||
public static final int fastScrollEnabled = 2130968820;
|
||||
public static final int fastScrollHorizontalThumbDrawable = 2130968821;
|
||||
public static final int fastScrollHorizontalTrackDrawable = 2130968822;
|
||||
public static final int fastScrollVerticalThumbDrawable = 2130968823;
|
||||
public static final int fastScrollVerticalTrackDrawable = 2130968824;
|
||||
public static final int firstBaselineToTopHeight = 2130968825;
|
||||
public static final int floatingActionButtonStyle = 2130968826;
|
||||
public static final int font = 2130968827;
|
||||
public static final int fontFamily = 2130968828;
|
||||
public static final int fontProviderAuthority = 2130968829;
|
||||
public static final int fontProviderCerts = 2130968830;
|
||||
public static final int fontProviderFetchStrategy = 2130968831;
|
||||
public static final int fontProviderFetchTimeout = 2130968832;
|
||||
public static final int fontProviderPackage = 2130968833;
|
||||
public static final int fontProviderQuery = 2130968834;
|
||||
public static final int fontStyle = 2130968835;
|
||||
public static final int fontVariationSettings = 2130968836;
|
||||
public static final int fontWeight = 2130968837;
|
||||
public static final int foregroundInsidePadding = 2130968838;
|
||||
public static final int gapBetweenBars = 2130968840;
|
||||
public static final int goIcon = 2130968842;
|
||||
public static final int headerLayout = 2130968843;
|
||||
public static final int height = 2130968844;
|
||||
public static final int helperText = 2130968846;
|
||||
public static final int helperTextEnabled = 2130968847;
|
||||
public static final int helperTextTextAppearance = 2130968848;
|
||||
public static final int hideMotionSpec = 2130968849;
|
||||
public static final int hideOnContentScroll = 2130968850;
|
||||
public static final int hideOnScroll = 2130968851;
|
||||
public static final int hintAnimationEnabled = 2130968852;
|
||||
public static final int hintEnabled = 2130968853;
|
||||
public static final int hintTextAppearance = 2130968854;
|
||||
public static final int homeAsUpIndicator = 2130968855;
|
||||
public static final int homeLayout = 2130968856;
|
||||
public static final int hoveredFocusedTranslationZ = 2130968857;
|
||||
public static final int icon = 2130968858;
|
||||
public static final int iconEndPadding = 2130968859;
|
||||
public static final int iconGravity = 2130968860;
|
||||
public static final int iconPadding = 2130968861;
|
||||
public static final int iconSize = 2130968862;
|
||||
public static final int iconStartPadding = 2130968863;
|
||||
public static final int iconTint = 2130968864;
|
||||
public static final int iconTintMode = 2130968865;
|
||||
public static final int iconifiedByDefault = 2130968866;
|
||||
public static final int imageButtonStyle = 2130968869;
|
||||
public static final int indeterminateProgressStyle = 2130968871;
|
||||
public static final int initialActivityCount = 2130968877;
|
||||
public static final int insetForeground = 2130968878;
|
||||
public static final int isLightTheme = 2130968879;
|
||||
public static final int itemBackground = 2130968882;
|
||||
public static final int itemHorizontalPadding = 2130968883;
|
||||
public static final int itemHorizontalTranslationEnabled = 2130968884;
|
||||
public static final int itemIconPadding = 2130968885;
|
||||
public static final int itemIconSize = 2130968886;
|
||||
public static final int itemIconTint = 2130968887;
|
||||
public static final int itemPadding = 2130968888;
|
||||
public static final int itemSpacing = 2130968889;
|
||||
public static final int itemTextAppearance = 2130968890;
|
||||
public static final int itemTextAppearanceActive = 2130968891;
|
||||
public static final int itemTextAppearanceInactive = 2130968892;
|
||||
public static final int itemTextColor = 2130968893;
|
||||
public static final int keylines = 2130968894;
|
||||
public static final int labelVisibilityMode = 2130968917;
|
||||
public static final int lastBaselineToBottomHeight = 2130968918;
|
||||
public static final int layout = 2130968919;
|
||||
public static final int layoutManager = 2130968920;
|
||||
public static final int layout_anchor = 2130968921;
|
||||
public static final int layout_anchorGravity = 2130968922;
|
||||
public static final int layout_behavior = 2130968923;
|
||||
public static final int layout_collapseMode = 2130968924;
|
||||
public static final int layout_collapseParallaxMultiplier = 2130968925;
|
||||
public static final int layout_dodgeInsetEdges = 2130968967;
|
||||
public static final int layout_insetEdge = 2130968976;
|
||||
public static final int layout_keyline = 2130968977;
|
||||
public static final int layout_scrollFlags = 2130968979;
|
||||
public static final int layout_scrollInterpolator = 2130968980;
|
||||
public static final int liftOnScroll = 2130968983;
|
||||
public static final int lineHeight = 2130968984;
|
||||
public static final int lineSpacing = 2130968985;
|
||||
public static final int listChoiceBackgroundIndicator = 2130968986;
|
||||
public static final int listDividerAlertDialog = 2130968987;
|
||||
public static final int listItemLayout = 2130968988;
|
||||
public static final int listLayout = 2130968989;
|
||||
public static final int listMenuViewStyle = 2130968990;
|
||||
public static final int listPopupWindowStyle = 2130968991;
|
||||
public static final int listPreferredItemHeight = 2130968992;
|
||||
public static final int listPreferredItemHeightLarge = 2130968993;
|
||||
public static final int listPreferredItemHeightSmall = 2130968994;
|
||||
public static final int listPreferredItemPaddingLeft = 2130968995;
|
||||
public static final int listPreferredItemPaddingRight = 2130968996;
|
||||
public static final int logo = 2130968997;
|
||||
public static final int logoDescription = 2130968998;
|
||||
public static final int materialButtonStyle = 2130969004;
|
||||
public static final int materialCardViewStyle = 2130969005;
|
||||
public static final int maxActionInlineWidth = 2130969006;
|
||||
public static final int maxButtonHeight = 2130969007;
|
||||
public static final int maxImageSize = 2130969008;
|
||||
public static final int measureWithLargestChild = 2130969010;
|
||||
public static final int menu = 2130969011;
|
||||
public static final int multiChoiceItemLayout = 2130969012;
|
||||
public static final int navigationContentDescription = 2130969013;
|
||||
public static final int navigationIcon = 2130969014;
|
||||
public static final int navigationMode = 2130969015;
|
||||
public static final int navigationViewStyle = 2130969016;
|
||||
public static final int numericModifiers = 2130969022;
|
||||
public static final int overlapAnchor = 2130969023;
|
||||
public static final int paddingBottomNoButtons = 2130969024;
|
||||
public static final int paddingEnd = 2130969025;
|
||||
public static final int paddingStart = 2130969026;
|
||||
public static final int paddingTopNoTitle = 2130969028;
|
||||
public static final int panelBackground = 2130969029;
|
||||
public static final int panelMenuListTheme = 2130969030;
|
||||
public static final int panelMenuListWidth = 2130969031;
|
||||
public static final int passwordToggleContentDescription = 2130969032;
|
||||
public static final int passwordToggleDrawable = 2130969033;
|
||||
public static final int passwordToggleEnabled = 2130969034;
|
||||
public static final int passwordToggleTint = 2130969035;
|
||||
public static final int passwordToggleTintMode = 2130969036;
|
||||
public static final int popupMenuStyle = 2130969037;
|
||||
public static final int popupTheme = 2130969038;
|
||||
public static final int popupWindowStyle = 2130969039;
|
||||
public static final int preserveIconSpacing = 2130969040;
|
||||
public static final int pressedTranslationZ = 2130969041;
|
||||
public static final int progressBarPadding = 2130969042;
|
||||
public static final int progressBarStyle = 2130969043;
|
||||
public static final int queryBackground = 2130969044;
|
||||
public static final int queryHint = 2130969045;
|
||||
public static final int radioButtonStyle = 2130969046;
|
||||
public static final int ratingBarStyle = 2130969048;
|
||||
public static final int ratingBarStyleIndicator = 2130969049;
|
||||
public static final int ratingBarStyleSmall = 2130969050;
|
||||
public static final int reverseLayout = 2130969051;
|
||||
public static final int rippleColor = 2130969055;
|
||||
public static final int scrimAnimationDuration = 2130969066;
|
||||
public static final int scrimBackground = 2130969067;
|
||||
public static final int scrimVisibleHeightTrigger = 2130969068;
|
||||
public static final int searchHintIcon = 2130969070;
|
||||
public static final int searchIcon = 2130969071;
|
||||
public static final int searchViewStyle = 2130969072;
|
||||
public static final int seekBarStyle = 2130969073;
|
||||
public static final int selectableItemBackground = 2130969074;
|
||||
public static final int selectableItemBackgroundBorderless = 2130969075;
|
||||
public static final int showAsAction = 2130969076;
|
||||
public static final int showDividers = 2130969077;
|
||||
public static final int showMotionSpec = 2130969078;
|
||||
public static final int showText = 2130969079;
|
||||
public static final int showTitle = 2130969080;
|
||||
public static final int singleChoiceItemLayout = 2130969082;
|
||||
public static final int singleLine = 2130969083;
|
||||
public static final int singleSelection = 2130969084;
|
||||
public static final int snackbarButtonStyle = 2130969085;
|
||||
public static final int snackbarStyle = 2130969086;
|
||||
public static final int spanCount = 2130969087;
|
||||
public static final int spinBars = 2130969088;
|
||||
public static final int spinnerDropDownItemStyle = 2130969089;
|
||||
public static final int spinnerStyle = 2130969090;
|
||||
public static final int splitTrack = 2130969091;
|
||||
public static final int srcCompat = 2130969092;
|
||||
public static final int stackFromEnd = 2130969093;
|
||||
public static final int state_above_anchor = 2130969094;
|
||||
public static final int state_collapsed = 2130969095;
|
||||
public static final int state_collapsible = 2130969096;
|
||||
public static final int state_liftable = 2130969097;
|
||||
public static final int state_lifted = 2130969098;
|
||||
public static final int statusBarBackground = 2130969100;
|
||||
public static final int statusBarScrim = 2130969101;
|
||||
public static final int strokeColor = 2130969102;
|
||||
public static final int strokeWidth = 2130969103;
|
||||
public static final int subMenuArrow = 2130969104;
|
||||
public static final int submitBackground = 2130969105;
|
||||
public static final int subtitle = 2130969106;
|
||||
public static final int subtitleTextAppearance = 2130969107;
|
||||
public static final int subtitleTextColor = 2130969108;
|
||||
public static final int subtitleTextStyle = 2130969109;
|
||||
public static final int suggestionRowLayout = 2130969110;
|
||||
public static final int switchMinWidth = 2130969111;
|
||||
public static final int switchPadding = 2130969112;
|
||||
public static final int switchStyle = 2130969113;
|
||||
public static final int switchTextAppearance = 2130969114;
|
||||
public static final int tabBackground = 2130969115;
|
||||
public static final int tabContentStart = 2130969116;
|
||||
public static final int tabGravity = 2130969117;
|
||||
public static final int tabIconTint = 2130969118;
|
||||
public static final int tabIconTintMode = 2130969119;
|
||||
public static final int tabIndicator = 2130969120;
|
||||
public static final int tabIndicatorAnimationDuration = 2130969121;
|
||||
public static final int tabIndicatorColor = 2130969122;
|
||||
public static final int tabIndicatorFullWidth = 2130969123;
|
||||
public static final int tabIndicatorGravity = 2130969124;
|
||||
public static final int tabIndicatorHeight = 2130969125;
|
||||
public static final int tabInlineLabel = 2130969126;
|
||||
public static final int tabMaxWidth = 2130969127;
|
||||
public static final int tabMinWidth = 2130969128;
|
||||
public static final int tabMode = 2130969129;
|
||||
public static final int tabPadding = 2130969130;
|
||||
public static final int tabPaddingBottom = 2130969131;
|
||||
public static final int tabPaddingEnd = 2130969132;
|
||||
public static final int tabPaddingStart = 2130969133;
|
||||
public static final int tabPaddingTop = 2130969134;
|
||||
public static final int tabRippleColor = 2130969135;
|
||||
public static final int tabSelectedTextColor = 2130969136;
|
||||
public static final int tabStyle = 2130969137;
|
||||
public static final int tabTextAppearance = 2130969138;
|
||||
public static final int tabTextColor = 2130969139;
|
||||
public static final int tabUnboundedRipple = 2130969140;
|
||||
public static final int textAllCaps = 2130969145;
|
||||
public static final int textAppearanceBody1 = 2130969146;
|
||||
public static final int textAppearanceBody2 = 2130969147;
|
||||
public static final int textAppearanceButton = 2130969148;
|
||||
public static final int textAppearanceCaption = 2130969149;
|
||||
public static final int textAppearanceHeadline1 = 2130969150;
|
||||
public static final int textAppearanceHeadline2 = 2130969151;
|
||||
public static final int textAppearanceHeadline3 = 2130969152;
|
||||
public static final int textAppearanceHeadline4 = 2130969153;
|
||||
public static final int textAppearanceHeadline5 = 2130969154;
|
||||
public static final int textAppearanceHeadline6 = 2130969155;
|
||||
public static final int textAppearanceLargePopupMenu = 2130969156;
|
||||
public static final int textAppearanceListItem = 2130969157;
|
||||
public static final int textAppearanceListItemSecondary = 2130969158;
|
||||
public static final int textAppearanceListItemSmall = 2130969159;
|
||||
public static final int textAppearanceOverline = 2130969160;
|
||||
public static final int textAppearancePopupMenuHeader = 2130969161;
|
||||
public static final int textAppearanceSearchResultSubtitle = 2130969162;
|
||||
public static final int textAppearanceSearchResultTitle = 2130969163;
|
||||
public static final int textAppearanceSmallPopupMenu = 2130969164;
|
||||
public static final int textAppearanceSubtitle1 = 2130969165;
|
||||
public static final int textAppearanceSubtitle2 = 2130969166;
|
||||
public static final int textColorAlertDialogListItem = 2130969167;
|
||||
public static final int textColorSearchUrl = 2130969168;
|
||||
public static final int textEndPadding = 2130969169;
|
||||
public static final int textInputStyle = 2130969170;
|
||||
public static final int textStartPadding = 2130969171;
|
||||
public static final int theme = 2130969172;
|
||||
public static final int thickness = 2130969173;
|
||||
public static final int thumbTextPadding = 2130969174;
|
||||
public static final int thumbTint = 2130969175;
|
||||
public static final int thumbTintMode = 2130969176;
|
||||
public static final int tickMark = 2130969177;
|
||||
public static final int tickMarkTint = 2130969178;
|
||||
public static final int tickMarkTintMode = 2130969179;
|
||||
public static final int tint = 2130969180;
|
||||
public static final int tintMode = 2130969181;
|
||||
public static final int title = 2130969182;
|
||||
public static final int titleEnabled = 2130969183;
|
||||
public static final int titleMargin = 2130969184;
|
||||
public static final int titleMarginBottom = 2130969185;
|
||||
public static final int titleMarginEnd = 2130969186;
|
||||
public static final int titleMarginStart = 2130969187;
|
||||
public static final int titleMarginTop = 2130969188;
|
||||
public static final int titleMargins = 2130969189;
|
||||
public static final int titleTextAppearance = 2130969190;
|
||||
public static final int titleTextColor = 2130969191;
|
||||
public static final int titleTextStyle = 2130969192;
|
||||
public static final int toolbarId = 2130969198;
|
||||
public static final int toolbarNavigationButtonStyle = 2130969199;
|
||||
public static final int toolbarStyle = 2130969200;
|
||||
public static final int tooltipForegroundColor = 2130969201;
|
||||
public static final int tooltipFrameBackground = 2130969202;
|
||||
public static final int tooltipText = 2130969203;
|
||||
public static final int track = 2130969205;
|
||||
public static final int trackTint = 2130969206;
|
||||
public static final int trackTintMode = 2130969207;
|
||||
public static final int ttcIndex = 2130969208;
|
||||
public static final int useCompatPadding = 2130969223;
|
||||
public static final int viewInflaterClass = 2130969224;
|
||||
public static final int voiceIcon = 2130969225;
|
||||
public static final int windowActionBar = 2130969250;
|
||||
public static final int windowActionBarOverlay = 2130969251;
|
||||
public static final int windowActionModeOverlay = 2130969252;
|
||||
public static final int windowFixedHeightMajor = 2130969253;
|
||||
public static final int windowFixedHeightMinor = 2130969254;
|
||||
public static final int windowFixedWidthMajor = 2130969255;
|
||||
public static final int windowFixedWidthMinor = 2130969256;
|
||||
public static final int windowMinWidthMajor = 2130969257;
|
||||
public static final int windowMinWidthMinor = 2130969258;
|
||||
public static final int windowNoTitle = 2130969259;
|
||||
}
|
||||
132
sources/com/google/android/material/R$color.java
Normal file
132
sources/com/google/android/material/R$color.java
Normal file
@@ -0,0 +1,132 @@
|
||||
package com.google.android.material;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class R$color {
|
||||
public static final int abc_background_cache_hint_selector_material_dark = 2131099648;
|
||||
public static final int abc_background_cache_hint_selector_material_light = 2131099649;
|
||||
public static final int abc_btn_colored_borderless_text_material = 2131099650;
|
||||
public static final int abc_btn_colored_text_material = 2131099651;
|
||||
public static final int abc_color_highlight_material = 2131099652;
|
||||
public static final int abc_hint_foreground_material_dark = 2131099653;
|
||||
public static final int abc_hint_foreground_material_light = 2131099654;
|
||||
public static final int abc_input_method_navigation_guard = 2131099655;
|
||||
public static final int abc_primary_text_disable_only_material_dark = 2131099656;
|
||||
public static final int abc_primary_text_disable_only_material_light = 2131099657;
|
||||
public static final int abc_primary_text_material_dark = 2131099658;
|
||||
public static final int abc_primary_text_material_light = 2131099659;
|
||||
public static final int abc_search_url_text = 2131099660;
|
||||
public static final int abc_search_url_text_normal = 2131099661;
|
||||
public static final int abc_search_url_text_pressed = 2131099662;
|
||||
public static final int abc_search_url_text_selected = 2131099663;
|
||||
public static final int abc_secondary_text_material_dark = 2131099664;
|
||||
public static final int abc_secondary_text_material_light = 2131099665;
|
||||
public static final int abc_tint_btn_checkable = 2131099666;
|
||||
public static final int abc_tint_default = 2131099667;
|
||||
public static final int abc_tint_edittext = 2131099668;
|
||||
public static final int abc_tint_seek_thumb = 2131099669;
|
||||
public static final int abc_tint_spinner = 2131099670;
|
||||
public static final int abc_tint_switch_track = 2131099671;
|
||||
public static final int accent_material_dark = 2131099672;
|
||||
public static final int accent_material_light = 2131099673;
|
||||
public static final int background_floating_material_dark = 2131099675;
|
||||
public static final int background_floating_material_light = 2131099676;
|
||||
public static final int background_material_dark = 2131099677;
|
||||
public static final int background_material_light = 2131099678;
|
||||
public static final int bright_foreground_disabled_material_dark = 2131099745;
|
||||
public static final int bright_foreground_disabled_material_light = 2131099746;
|
||||
public static final int bright_foreground_inverse_material_dark = 2131099747;
|
||||
public static final int bright_foreground_inverse_material_light = 2131099748;
|
||||
public static final int bright_foreground_material_dark = 2131099749;
|
||||
public static final int bright_foreground_material_light = 2131099750;
|
||||
public static final int button_material_dark = 2131099755;
|
||||
public static final int button_material_light = 2131099756;
|
||||
public static final int cardview_dark_background = 2131099757;
|
||||
public static final int cardview_light_background = 2131099758;
|
||||
public static final int cardview_shadow_end_color = 2131099759;
|
||||
public static final int cardview_shadow_start_color = 2131099760;
|
||||
public static final int design_bottom_navigation_shadow_color = 2131099838;
|
||||
public static final int design_default_color_primary = 2131099839;
|
||||
public static final int design_default_color_primary_dark = 2131099840;
|
||||
public static final int design_error = 2131099841;
|
||||
public static final int design_fab_shadow_end_color = 2131099842;
|
||||
public static final int design_fab_shadow_mid_color = 2131099843;
|
||||
public static final int design_fab_shadow_start_color = 2131099844;
|
||||
public static final int design_fab_stroke_end_inner_color = 2131099845;
|
||||
public static final int design_fab_stroke_end_outer_color = 2131099846;
|
||||
public static final int design_fab_stroke_top_inner_color = 2131099847;
|
||||
public static final int design_fab_stroke_top_outer_color = 2131099848;
|
||||
public static final int design_snackbar_background_color = 2131099849;
|
||||
public static final int design_tint_password_toggle = 2131099850;
|
||||
public static final int dim_foreground_disabled_material_dark = 2131099851;
|
||||
public static final int dim_foreground_disabled_material_light = 2131099852;
|
||||
public static final int dim_foreground_material_dark = 2131099853;
|
||||
public static final int dim_foreground_material_light = 2131099854;
|
||||
public static final int error_color_material_dark = 2131099857;
|
||||
public static final int error_color_material_light = 2131099858;
|
||||
public static final int foreground_material_dark = 2131099859;
|
||||
public static final int foreground_material_light = 2131099860;
|
||||
public static final int highlighted_text_material_dark = 2131099863;
|
||||
public static final int highlighted_text_material_light = 2131099864;
|
||||
public static final int material_blue_grey_800 = 2131099887;
|
||||
public static final int material_blue_grey_900 = 2131099888;
|
||||
public static final int material_blue_grey_950 = 2131099889;
|
||||
public static final int material_deep_teal_200 = 2131099890;
|
||||
public static final int material_deep_teal_500 = 2131099891;
|
||||
public static final int material_grey_100 = 2131099892;
|
||||
public static final int material_grey_300 = 2131099893;
|
||||
public static final int material_grey_50 = 2131099894;
|
||||
public static final int material_grey_600 = 2131099895;
|
||||
public static final int material_grey_800 = 2131099896;
|
||||
public static final int material_grey_850 = 2131099897;
|
||||
public static final int material_grey_900 = 2131099898;
|
||||
public static final int mtrl_bottom_nav_colored_item_tint = 2131099900;
|
||||
public static final int mtrl_bottom_nav_item_tint = 2131099901;
|
||||
public static final int mtrl_btn_bg_color_disabled = 2131099902;
|
||||
public static final int mtrl_btn_bg_color_selector = 2131099903;
|
||||
public static final int mtrl_btn_ripple_color = 2131099904;
|
||||
public static final int mtrl_btn_stroke_color_selector = 2131099905;
|
||||
public static final int mtrl_btn_text_btn_ripple_color = 2131099906;
|
||||
public static final int mtrl_btn_text_color_disabled = 2131099907;
|
||||
public static final int mtrl_btn_text_color_selector = 2131099908;
|
||||
public static final int mtrl_btn_transparent_bg_color = 2131099909;
|
||||
public static final int mtrl_chip_background_color = 2131099910;
|
||||
public static final int mtrl_chip_close_icon_tint = 2131099911;
|
||||
public static final int mtrl_chip_ripple_color = 2131099912;
|
||||
public static final int mtrl_chip_text_color = 2131099913;
|
||||
public static final int mtrl_fab_ripple_color = 2131099914;
|
||||
public static final int mtrl_scrim_color = 2131099915;
|
||||
public static final int mtrl_tabs_colored_ripple_color = 2131099916;
|
||||
public static final int mtrl_tabs_icon_color_selector = 2131099917;
|
||||
public static final int mtrl_tabs_icon_color_selector_colored = 2131099918;
|
||||
public static final int mtrl_tabs_legacy_text_color_selector = 2131099919;
|
||||
public static final int mtrl_tabs_ripple_color = 2131099920;
|
||||
public static final int mtrl_text_btn_text_color_selector = 2131099921;
|
||||
public static final int mtrl_textinput_default_box_stroke_color = 2131099922;
|
||||
public static final int mtrl_textinput_disabled_color = 2131099923;
|
||||
public static final int mtrl_textinput_filled_box_default_background_color = 2131099924;
|
||||
public static final int mtrl_textinput_hovered_box_stroke_color = 2131099925;
|
||||
public static final int notification_action_color_filter = 2131099926;
|
||||
public static final int notification_icon_bg_color = 2131099927;
|
||||
public static final int primary_dark_material_dark = 2131099930;
|
||||
public static final int primary_dark_material_light = 2131099931;
|
||||
public static final int primary_material_dark = 2131099932;
|
||||
public static final int primary_material_light = 2131099933;
|
||||
public static final int primary_text_default_material_dark = 2131099934;
|
||||
public static final int primary_text_default_material_light = 2131099935;
|
||||
public static final int primary_text_disabled_material_dark = 2131099936;
|
||||
public static final int primary_text_disabled_material_light = 2131099937;
|
||||
public static final int ripple_material_dark = 2131099945;
|
||||
public static final int ripple_material_light = 2131099946;
|
||||
public static final int secondary_text_default_material_dark = 2131099947;
|
||||
public static final int secondary_text_default_material_light = 2131099948;
|
||||
public static final int secondary_text_disabled_material_dark = 2131099949;
|
||||
public static final int secondary_text_disabled_material_light = 2131099950;
|
||||
public static final int switch_thumb_disabled_material_dark = 2131099958;
|
||||
public static final int switch_thumb_disabled_material_light = 2131099959;
|
||||
public static final int switch_thumb_material_dark = 2131099960;
|
||||
public static final int switch_thumb_material_light = 2131099961;
|
||||
public static final int switch_thumb_normal_material_dark = 2131099962;
|
||||
public static final int switch_thumb_normal_material_light = 2131099963;
|
||||
public static final int tooltip_background_dark = 2131099980;
|
||||
public static final int tooltip_background_light = 2131099981;
|
||||
}
|
||||
220
sources/com/google/android/material/R$dimen.java
Normal file
220
sources/com/google/android/material/R$dimen.java
Normal file
@@ -0,0 +1,220 @@
|
||||
package com.google.android.material;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class R$dimen {
|
||||
public static final int abc_action_bar_content_inset_material = 2131165184;
|
||||
public static final int abc_action_bar_content_inset_with_nav = 2131165185;
|
||||
public static final int abc_action_bar_default_height_material = 2131165186;
|
||||
public static final int abc_action_bar_default_padding_end_material = 2131165187;
|
||||
public static final int abc_action_bar_default_padding_start_material = 2131165188;
|
||||
public static final int abc_action_bar_elevation_material = 2131165189;
|
||||
public static final int abc_action_bar_icon_vertical_padding_material = 2131165190;
|
||||
public static final int abc_action_bar_overflow_padding_end_material = 2131165191;
|
||||
public static final int abc_action_bar_overflow_padding_start_material = 2131165192;
|
||||
public static final int abc_action_bar_stacked_max_height = 2131165193;
|
||||
public static final int abc_action_bar_stacked_tab_max_width = 2131165194;
|
||||
public static final int abc_action_bar_subtitle_bottom_margin_material = 2131165195;
|
||||
public static final int abc_action_bar_subtitle_top_margin_material = 2131165196;
|
||||
public static final int abc_action_button_min_height_material = 2131165197;
|
||||
public static final int abc_action_button_min_width_material = 2131165198;
|
||||
public static final int abc_action_button_min_width_overflow_material = 2131165199;
|
||||
public static final int abc_alert_dialog_button_bar_height = 2131165200;
|
||||
public static final int abc_alert_dialog_button_dimen = 2131165201;
|
||||
public static final int abc_button_inset_horizontal_material = 2131165202;
|
||||
public static final int abc_button_inset_vertical_material = 2131165203;
|
||||
public static final int abc_button_padding_horizontal_material = 2131165204;
|
||||
public static final int abc_button_padding_vertical_material = 2131165205;
|
||||
public static final int abc_cascading_menus_min_smallest_width = 2131165206;
|
||||
public static final int abc_config_prefDialogWidth = 2131165207;
|
||||
public static final int abc_control_corner_material = 2131165208;
|
||||
public static final int abc_control_inset_material = 2131165209;
|
||||
public static final int abc_control_padding_material = 2131165210;
|
||||
public static final int abc_dialog_corner_radius_material = 2131165211;
|
||||
public static final int abc_dialog_fixed_height_major = 2131165212;
|
||||
public static final int abc_dialog_fixed_height_minor = 2131165213;
|
||||
public static final int abc_dialog_fixed_width_major = 2131165214;
|
||||
public static final int abc_dialog_fixed_width_minor = 2131165215;
|
||||
public static final int abc_dialog_list_padding_bottom_no_buttons = 2131165216;
|
||||
public static final int abc_dialog_list_padding_top_no_title = 2131165217;
|
||||
public static final int abc_dialog_min_width_major = 2131165218;
|
||||
public static final int abc_dialog_min_width_minor = 2131165219;
|
||||
public static final int abc_dialog_padding_material = 2131165220;
|
||||
public static final int abc_dialog_padding_top_material = 2131165221;
|
||||
public static final int abc_dialog_title_divider_material = 2131165222;
|
||||
public static final int abc_disabled_alpha_material_dark = 2131165223;
|
||||
public static final int abc_disabled_alpha_material_light = 2131165224;
|
||||
public static final int abc_dropdownitem_icon_width = 2131165225;
|
||||
public static final int abc_dropdownitem_text_padding_left = 2131165226;
|
||||
public static final int abc_dropdownitem_text_padding_right = 2131165227;
|
||||
public static final int abc_edit_text_inset_bottom_material = 2131165228;
|
||||
public static final int abc_edit_text_inset_horizontal_material = 2131165229;
|
||||
public static final int abc_edit_text_inset_top_material = 2131165230;
|
||||
public static final int abc_floating_window_z = 2131165231;
|
||||
public static final int abc_list_item_padding_horizontal_material = 2131165232;
|
||||
public static final int abc_panel_menu_list_width = 2131165233;
|
||||
public static final int abc_progress_bar_height_material = 2131165234;
|
||||
public static final int abc_search_view_preferred_height = 2131165235;
|
||||
public static final int abc_search_view_preferred_width = 2131165236;
|
||||
public static final int abc_seekbar_track_background_height_material = 2131165237;
|
||||
public static final int abc_seekbar_track_progress_height_material = 2131165238;
|
||||
public static final int abc_select_dialog_padding_start_material = 2131165239;
|
||||
public static final int abc_switch_padding = 2131165240;
|
||||
public static final int abc_text_size_body_1_material = 2131165241;
|
||||
public static final int abc_text_size_body_2_material = 2131165242;
|
||||
public static final int abc_text_size_button_material = 2131165243;
|
||||
public static final int abc_text_size_caption_material = 2131165244;
|
||||
public static final int abc_text_size_display_1_material = 2131165245;
|
||||
public static final int abc_text_size_display_2_material = 2131165246;
|
||||
public static final int abc_text_size_display_3_material = 2131165247;
|
||||
public static final int abc_text_size_display_4_material = 2131165248;
|
||||
public static final int abc_text_size_headline_material = 2131165249;
|
||||
public static final int abc_text_size_large_material = 2131165250;
|
||||
public static final int abc_text_size_medium_material = 2131165251;
|
||||
public static final int abc_text_size_menu_header_material = 2131165252;
|
||||
public static final int abc_text_size_menu_material = 2131165253;
|
||||
public static final int abc_text_size_small_material = 2131165254;
|
||||
public static final int abc_text_size_subhead_material = 2131165255;
|
||||
public static final int abc_text_size_subtitle_material_toolbar = 2131165256;
|
||||
public static final int abc_text_size_title_material = 2131165257;
|
||||
public static final int abc_text_size_title_material_toolbar = 2131165258;
|
||||
public static final int cardview_compat_inset_shadow = 2131165337;
|
||||
public static final int cardview_default_elevation = 2131165338;
|
||||
public static final int cardview_default_radius = 2131165339;
|
||||
public static final int compat_button_inset_horizontal_material = 2131165503;
|
||||
public static final int compat_button_inset_vertical_material = 2131165504;
|
||||
public static final int compat_button_padding_horizontal_material = 2131165505;
|
||||
public static final int compat_button_padding_vertical_material = 2131165506;
|
||||
public static final int compat_control_corner_material = 2131165507;
|
||||
public static final int compat_notification_large_icon_max_height = 2131165508;
|
||||
public static final int compat_notification_large_icon_max_width = 2131165509;
|
||||
public static final int design_appbar_elevation = 2131165594;
|
||||
public static final int design_bottom_navigation_active_item_max_width = 2131165595;
|
||||
public static final int design_bottom_navigation_active_item_min_width = 2131165596;
|
||||
public static final int design_bottom_navigation_active_text_size = 2131165597;
|
||||
public static final int design_bottom_navigation_elevation = 2131165598;
|
||||
public static final int design_bottom_navigation_height = 2131165599;
|
||||
public static final int design_bottom_navigation_icon_size = 2131165600;
|
||||
public static final int design_bottom_navigation_item_max_width = 2131165601;
|
||||
public static final int design_bottom_navigation_item_min_width = 2131165602;
|
||||
public static final int design_bottom_navigation_margin = 2131165603;
|
||||
public static final int design_bottom_navigation_shadow_height = 2131165604;
|
||||
public static final int design_bottom_navigation_text_size = 2131165605;
|
||||
public static final int design_bottom_sheet_modal_elevation = 2131165606;
|
||||
public static final int design_bottom_sheet_peek_height_min = 2131165607;
|
||||
public static final int design_fab_border_width = 2131165608;
|
||||
public static final int design_fab_elevation = 2131165609;
|
||||
public static final int design_fab_image_size = 2131165610;
|
||||
public static final int design_fab_size_mini = 2131165611;
|
||||
public static final int design_fab_size_normal = 2131165612;
|
||||
public static final int design_fab_translation_z_hovered_focused = 2131165613;
|
||||
public static final int design_fab_translation_z_pressed = 2131165614;
|
||||
public static final int design_navigation_elevation = 2131165615;
|
||||
public static final int design_navigation_icon_padding = 2131165616;
|
||||
public static final int design_navigation_icon_size = 2131165617;
|
||||
public static final int design_navigation_item_horizontal_padding = 2131165618;
|
||||
public static final int design_navigation_item_icon_padding = 2131165619;
|
||||
public static final int design_navigation_max_width = 2131165620;
|
||||
public static final int design_navigation_padding_bottom = 2131165621;
|
||||
public static final int design_navigation_separator_vertical_padding = 2131165622;
|
||||
public static final int design_snackbar_action_inline_max_width = 2131165623;
|
||||
public static final int design_snackbar_background_corner_radius = 2131165624;
|
||||
public static final int design_snackbar_elevation = 2131165625;
|
||||
public static final int design_snackbar_extra_spacing_horizontal = 2131165626;
|
||||
public static final int design_snackbar_max_width = 2131165627;
|
||||
public static final int design_snackbar_min_width = 2131165628;
|
||||
public static final int design_snackbar_padding_horizontal = 2131165629;
|
||||
public static final int design_snackbar_padding_vertical = 2131165630;
|
||||
public static final int design_snackbar_padding_vertical_2lines = 2131165631;
|
||||
public static final int design_snackbar_text_size = 2131165632;
|
||||
public static final int design_tab_max_width = 2131165633;
|
||||
public static final int design_tab_scrollable_min_width = 2131165634;
|
||||
public static final int design_tab_text_size = 2131165635;
|
||||
public static final int design_tab_text_size_2line = 2131165636;
|
||||
public static final int design_textinput_caption_translate_y = 2131165637;
|
||||
public static final int disabled_alpha_material_dark = 2131165654;
|
||||
public static final int disabled_alpha_material_light = 2131165655;
|
||||
public static final int fastscroll_default_thickness = 2131169804;
|
||||
public static final int fastscroll_margin = 2131169805;
|
||||
public static final int fastscroll_minimum_range = 2131169806;
|
||||
public static final int highlight_alpha_material_colored = 2131169820;
|
||||
public static final int highlight_alpha_material_dark = 2131169821;
|
||||
public static final int highlight_alpha_material_light = 2131169822;
|
||||
public static final int hint_alpha_material_dark = 2131169823;
|
||||
public static final int hint_alpha_material_light = 2131169824;
|
||||
public static final int hint_pressed_alpha_material_dark = 2131169825;
|
||||
public static final int hint_pressed_alpha_material_light = 2131169826;
|
||||
public static final int item_touch_helper_max_drag_scroll_per_frame = 2131169890;
|
||||
public static final int item_touch_helper_swipe_escape_max_velocity = 2131169891;
|
||||
public static final int item_touch_helper_swipe_escape_velocity = 2131169892;
|
||||
public static final int mtrl_bottomappbar_fabOffsetEndMode = 2131171962;
|
||||
public static final int mtrl_bottomappbar_fab_cradle_margin = 2131171963;
|
||||
public static final int mtrl_bottomappbar_fab_cradle_rounded_corner_radius = 2131171964;
|
||||
public static final int mtrl_bottomappbar_fab_cradle_vertical_offset = 2131171965;
|
||||
public static final int mtrl_bottomappbar_height = 2131171966;
|
||||
public static final int mtrl_btn_corner_radius = 2131171967;
|
||||
public static final int mtrl_btn_dialog_btn_min_width = 2131171968;
|
||||
public static final int mtrl_btn_disabled_elevation = 2131171969;
|
||||
public static final int mtrl_btn_disabled_z = 2131171970;
|
||||
public static final int mtrl_btn_elevation = 2131171971;
|
||||
public static final int mtrl_btn_focused_z = 2131171972;
|
||||
public static final int mtrl_btn_hovered_z = 2131171973;
|
||||
public static final int mtrl_btn_icon_btn_padding_left = 2131171974;
|
||||
public static final int mtrl_btn_icon_padding = 2131171975;
|
||||
public static final int mtrl_btn_inset = 2131171976;
|
||||
public static final int mtrl_btn_letter_spacing = 2131171977;
|
||||
public static final int mtrl_btn_padding_bottom = 2131171978;
|
||||
public static final int mtrl_btn_padding_left = 2131171979;
|
||||
public static final int mtrl_btn_padding_right = 2131171980;
|
||||
public static final int mtrl_btn_padding_top = 2131171981;
|
||||
public static final int mtrl_btn_pressed_z = 2131171982;
|
||||
public static final int mtrl_btn_stroke_size = 2131171983;
|
||||
public static final int mtrl_btn_text_btn_icon_padding = 2131171984;
|
||||
public static final int mtrl_btn_text_btn_padding_left = 2131171985;
|
||||
public static final int mtrl_btn_text_btn_padding_right = 2131171986;
|
||||
public static final int mtrl_btn_text_size = 2131171987;
|
||||
public static final int mtrl_btn_z = 2131171988;
|
||||
public static final int mtrl_card_elevation = 2131171989;
|
||||
public static final int mtrl_card_spacing = 2131171990;
|
||||
public static final int mtrl_chip_pressed_translation_z = 2131171991;
|
||||
public static final int mtrl_chip_text_size = 2131171992;
|
||||
public static final int mtrl_fab_elevation = 2131171993;
|
||||
public static final int mtrl_fab_translation_z_hovered_focused = 2131171994;
|
||||
public static final int mtrl_fab_translation_z_pressed = 2131171995;
|
||||
public static final int mtrl_navigation_elevation = 2131171996;
|
||||
public static final int mtrl_navigation_item_horizontal_padding = 2131171997;
|
||||
public static final int mtrl_navigation_item_icon_padding = 2131171998;
|
||||
public static final int mtrl_snackbar_background_corner_radius = 2131171999;
|
||||
public static final int mtrl_snackbar_margin = 2131172000;
|
||||
public static final int mtrl_textinput_box_bottom_offset = 2131172001;
|
||||
public static final int mtrl_textinput_box_corner_radius_medium = 2131172002;
|
||||
public static final int mtrl_textinput_box_corner_radius_small = 2131172003;
|
||||
public static final int mtrl_textinput_box_label_cutout_padding = 2131172004;
|
||||
public static final int mtrl_textinput_box_padding_end = 2131172005;
|
||||
public static final int mtrl_textinput_box_stroke_width_default = 2131172006;
|
||||
public static final int mtrl_textinput_box_stroke_width_focused = 2131172007;
|
||||
public static final int mtrl_textinput_outline_box_expanded_padding = 2131172008;
|
||||
public static final int mtrl_toolbar_default_height = 2131172009;
|
||||
public static final int notification_action_icon_size = 2131172010;
|
||||
public static final int notification_action_text_size = 2131172011;
|
||||
public static final int notification_big_circle_margin = 2131172012;
|
||||
public static final int notification_content_margin_start = 2131172013;
|
||||
public static final int notification_large_icon_height = 2131172014;
|
||||
public static final int notification_large_icon_width = 2131172015;
|
||||
public static final int notification_main_column_padding_top = 2131172016;
|
||||
public static final int notification_media_narrow_margin = 2131172017;
|
||||
public static final int notification_right_icon_size = 2131172018;
|
||||
public static final int notification_right_side_padding_top = 2131172019;
|
||||
public static final int notification_small_icon_background_padding = 2131172020;
|
||||
public static final int notification_small_icon_size_as_large = 2131172021;
|
||||
public static final int notification_subtext_size = 2131172022;
|
||||
public static final int notification_top_pad = 2131172023;
|
||||
public static final int notification_top_pad_large_text = 2131172024;
|
||||
public static final int tooltip_corner_radius = 2131172288;
|
||||
public static final int tooltip_horizontal_padding = 2131172289;
|
||||
public static final int tooltip_margin = 2131172290;
|
||||
public static final int tooltip_precise_anchor_extra_offset = 2131172291;
|
||||
public static final int tooltip_precise_anchor_threshold = 2131172292;
|
||||
public static final int tooltip_vertical_padding = 2131172293;
|
||||
public static final int tooltip_y_offset_non_touch = 2131172294;
|
||||
public static final int tooltip_y_offset_touch = 2131172295;
|
||||
}
|
||||
117
sources/com/google/android/material/R$drawable.java
Normal file
117
sources/com/google/android/material/R$drawable.java
Normal file
@@ -0,0 +1,117 @@
|
||||
package com.google.android.material;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class R$drawable {
|
||||
public static final int abc_ab_share_pack_mtrl_alpha = 2131230726;
|
||||
public static final int abc_action_bar_item_background_material = 2131230727;
|
||||
public static final int abc_btn_borderless_material = 2131230728;
|
||||
public static final int abc_btn_check_material = 2131230729;
|
||||
public static final int abc_btn_check_to_on_mtrl_000 = 2131230730;
|
||||
public static final int abc_btn_check_to_on_mtrl_015 = 2131230731;
|
||||
public static final int abc_btn_colored_material = 2131230732;
|
||||
public static final int abc_btn_default_mtrl_shape = 2131230733;
|
||||
public static final int abc_btn_radio_material = 2131230734;
|
||||
public static final int abc_btn_radio_to_on_mtrl_000 = 2131230735;
|
||||
public static final int abc_btn_radio_to_on_mtrl_015 = 2131230736;
|
||||
public static final int abc_btn_switch_to_on_mtrl_00001 = 2131230737;
|
||||
public static final int abc_btn_switch_to_on_mtrl_00012 = 2131230738;
|
||||
public static final int abc_cab_background_internal_bg = 2131230739;
|
||||
public static final int abc_cab_background_top_material = 2131230740;
|
||||
public static final int abc_cab_background_top_mtrl_alpha = 2131230741;
|
||||
public static final int abc_control_background_material = 2131230742;
|
||||
public static final int abc_dialog_material_background = 2131230743;
|
||||
public static final int abc_edit_text_material = 2131230744;
|
||||
public static final int abc_ic_ab_back_material = 2131230745;
|
||||
public static final int abc_ic_arrow_drop_right_black_24dp = 2131230746;
|
||||
public static final int abc_ic_clear_material = 2131230747;
|
||||
public static final int abc_ic_commit_search_api_mtrl_alpha = 2131230748;
|
||||
public static final int abc_ic_go_search_api_material = 2131230749;
|
||||
public static final int abc_ic_menu_copy_mtrl_am_alpha = 2131230750;
|
||||
public static final int abc_ic_menu_cut_mtrl_alpha = 2131230751;
|
||||
public static final int abc_ic_menu_overflow_material = 2131230752;
|
||||
public static final int abc_ic_menu_paste_mtrl_am_alpha = 2131230753;
|
||||
public static final int abc_ic_menu_selectall_mtrl_alpha = 2131230754;
|
||||
public static final int abc_ic_menu_share_mtrl_alpha = 2131230755;
|
||||
public static final int abc_ic_search_api_material = 2131230756;
|
||||
public static final int abc_ic_star_black_16dp = 2131230757;
|
||||
public static final int abc_ic_star_black_36dp = 2131230758;
|
||||
public static final int abc_ic_star_black_48dp = 2131230759;
|
||||
public static final int abc_ic_star_half_black_16dp = 2131230760;
|
||||
public static final int abc_ic_star_half_black_36dp = 2131230761;
|
||||
public static final int abc_ic_star_half_black_48dp = 2131230762;
|
||||
public static final int abc_ic_voice_search_api_material = 2131230763;
|
||||
public static final int abc_item_background_holo_dark = 2131230764;
|
||||
public static final int abc_item_background_holo_light = 2131230765;
|
||||
public static final int abc_list_divider_material = 2131230766;
|
||||
public static final int abc_list_divider_mtrl_alpha = 2131230767;
|
||||
public static final int abc_list_focused_holo = 2131230768;
|
||||
public static final int abc_list_longpressed_holo = 2131230769;
|
||||
public static final int abc_list_pressed_holo_dark = 2131230770;
|
||||
public static final int abc_list_pressed_holo_light = 2131230771;
|
||||
public static final int abc_list_selector_background_transition_holo_dark = 2131230772;
|
||||
public static final int abc_list_selector_background_transition_holo_light = 2131230773;
|
||||
public static final int abc_list_selector_disabled_holo_dark = 2131230774;
|
||||
public static final int abc_list_selector_disabled_holo_light = 2131230775;
|
||||
public static final int abc_list_selector_holo_dark = 2131230776;
|
||||
public static final int abc_list_selector_holo_light = 2131230777;
|
||||
public static final int abc_menu_hardkey_panel_mtrl_mult = 2131230778;
|
||||
public static final int abc_popup_background_mtrl_mult = 2131230779;
|
||||
public static final int abc_ratingbar_indicator_material = 2131230780;
|
||||
public static final int abc_ratingbar_material = 2131230781;
|
||||
public static final int abc_ratingbar_small_material = 2131230782;
|
||||
public static final int abc_scrubber_control_off_mtrl_alpha = 2131230783;
|
||||
public static final int abc_scrubber_control_to_pressed_mtrl_000 = 2131230784;
|
||||
public static final int abc_scrubber_control_to_pressed_mtrl_005 = 2131230785;
|
||||
public static final int abc_scrubber_primary_mtrl_alpha = 2131230786;
|
||||
public static final int abc_scrubber_track_mtrl_alpha = 2131230787;
|
||||
public static final int abc_seekbar_thumb_material = 2131230788;
|
||||
public static final int abc_seekbar_tick_mark_material = 2131230789;
|
||||
public static final int abc_seekbar_track_material = 2131230790;
|
||||
public static final int abc_spinner_mtrl_am_alpha = 2131230791;
|
||||
public static final int abc_spinner_textfield_background_material = 2131230792;
|
||||
public static final int abc_switch_thumb_material = 2131230793;
|
||||
public static final int abc_switch_track_mtrl_alpha = 2131230794;
|
||||
public static final int abc_tab_indicator_material = 2131230795;
|
||||
public static final int abc_tab_indicator_mtrl_alpha = 2131230796;
|
||||
public static final int abc_text_cursor_material = 2131230797;
|
||||
public static final int abc_text_select_handle_left_mtrl_dark = 2131230798;
|
||||
public static final int abc_text_select_handle_left_mtrl_light = 2131230799;
|
||||
public static final int abc_text_select_handle_middle_mtrl_dark = 2131230800;
|
||||
public static final int abc_text_select_handle_middle_mtrl_light = 2131230801;
|
||||
public static final int abc_text_select_handle_right_mtrl_dark = 2131230802;
|
||||
public static final int abc_text_select_handle_right_mtrl_light = 2131230803;
|
||||
public static final int abc_textfield_activated_mtrl_alpha = 2131230804;
|
||||
public static final int abc_textfield_default_mtrl_alpha = 2131230805;
|
||||
public static final int abc_textfield_search_activated_mtrl_alpha = 2131230806;
|
||||
public static final int abc_textfield_search_default_mtrl_alpha = 2131230807;
|
||||
public static final int abc_textfield_search_material = 2131230808;
|
||||
public static final int abc_vector_test = 2131230809;
|
||||
public static final int avd_hide_password = 2131230828;
|
||||
public static final int avd_show_password = 2131230829;
|
||||
public static final int design_bottom_navigation_item_background = 2131231084;
|
||||
public static final int design_fab_background = 2131231085;
|
||||
public static final int design_ic_visibility = 2131231086;
|
||||
public static final int design_ic_visibility_off = 2131231087;
|
||||
public static final int design_password_eye = 2131231088;
|
||||
public static final int design_snackbar_background = 2131231089;
|
||||
public static final int ic_mtrl_chip_checked_black = 2131231334;
|
||||
public static final int ic_mtrl_chip_checked_circle = 2131231335;
|
||||
public static final int ic_mtrl_chip_close_circle = 2131231336;
|
||||
public static final int mtrl_snackbar_background = 2131231529;
|
||||
public static final int mtrl_tabs_default_indicator = 2131231530;
|
||||
public static final int navigation_empty_icon = 2131231531;
|
||||
public static final int notification_action_background = 2131231536;
|
||||
public static final int notification_bg = 2131231537;
|
||||
public static final int notification_bg_low = 2131231538;
|
||||
public static final int notification_bg_low_normal = 2131231539;
|
||||
public static final int notification_bg_low_pressed = 2131231540;
|
||||
public static final int notification_bg_normal = 2131231541;
|
||||
public static final int notification_bg_normal_pressed = 2131231542;
|
||||
public static final int notification_icon_background = 2131231543;
|
||||
public static final int notification_template_icon_bg = 2131231544;
|
||||
public static final int notification_template_icon_low_bg = 2131231545;
|
||||
public static final int notification_tile_bg = 2131231546;
|
||||
public static final int notify_panel_notification_icon_bg = 2131231547;
|
||||
public static final int tooltip_frame_dark = 2131231823;
|
||||
public static final int tooltip_frame_light = 2131231824;
|
||||
}
|
||||
157
sources/com/google/android/material/R$id.java
Normal file
157
sources/com/google/android/material/R$id.java
Normal file
@@ -0,0 +1,157 @@
|
||||
package com.google.android.material;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class R$id {
|
||||
public static final int action_bar = 2131296272;
|
||||
public static final int action_bar_activity_content = 2131296273;
|
||||
public static final int action_bar_container = 2131296274;
|
||||
public static final int action_bar_root = 2131296275;
|
||||
public static final int action_bar_spinner = 2131296276;
|
||||
public static final int action_bar_subtitle = 2131296277;
|
||||
public static final int action_bar_title = 2131296278;
|
||||
public static final int action_container = 2131296279;
|
||||
public static final int action_context_bar = 2131296280;
|
||||
public static final int action_divider = 2131296281;
|
||||
public static final int action_image = 2131296282;
|
||||
public static final int action_menu_divider = 2131296283;
|
||||
public static final int action_menu_presenter = 2131296284;
|
||||
public static final int action_mode_bar = 2131296285;
|
||||
public static final int action_mode_bar_stub = 2131296286;
|
||||
public static final int action_mode_close_button = 2131296287;
|
||||
public static final int action_text = 2131296288;
|
||||
public static final int actions = 2131296289;
|
||||
public static final int activity_chooser_view_content = 2131296290;
|
||||
public static final int add = 2131296309;
|
||||
public static final int alertTitle = 2131296315;
|
||||
public static final int async = 2131296326;
|
||||
public static final int auto = 2131296327;
|
||||
public static final int blocking = 2131296343;
|
||||
public static final int bottom = 2131296348;
|
||||
public static final int buttonPanel = 2131296399;
|
||||
public static final int center = 2131296441;
|
||||
public static final int checkbox = 2131296449;
|
||||
public static final int chronometer = 2131296452;
|
||||
public static final int container = 2131296480;
|
||||
public static final int content = 2131296481;
|
||||
public static final int contentPanel = 2131296485;
|
||||
public static final int coordinator = 2131296497;
|
||||
public static final int custom = 2131296508;
|
||||
public static final int customPanel = 2131296509;
|
||||
public static final int decor_content_parent = 2131296525;
|
||||
public static final int default_activity_button = 2131296526;
|
||||
public static final int design_bottom_sheet = 2131296529;
|
||||
public static final int design_menu_item_action_area = 2131296530;
|
||||
public static final int design_menu_item_action_area_stub = 2131296531;
|
||||
public static final int design_menu_item_text = 2131296532;
|
||||
public static final int design_navigation_view = 2131296533;
|
||||
public static final int edit_query = 2131296556;
|
||||
public static final int end = 2131296567;
|
||||
public static final int expand_activities_button = 2131296594;
|
||||
public static final int expanded_menu = 2131296595;
|
||||
public static final int fill = 2131296607;
|
||||
public static final int filled = 2131296610;
|
||||
public static final int fixed = 2131296616;
|
||||
public static final int forever = 2131296644;
|
||||
public static final int ghost_view = 2131296650;
|
||||
public static final int group_divider = 2131296671;
|
||||
public static final int home = 2131296696;
|
||||
public static final int icon = 2131296701;
|
||||
public static final int icon_group = 2131296702;
|
||||
public static final int image = 2131296817;
|
||||
public static final int info = 2131296971;
|
||||
public static final int italic = 2131296980;
|
||||
public static final int item_touch_helper_previous_elevation = 2131296991;
|
||||
public static final int labeled = 2131297045;
|
||||
public static final int largeLabel = 2131297047;
|
||||
public static final int left = 2131297071;
|
||||
public static final int line1 = 2131297087;
|
||||
public static final int line3 = 2131297088;
|
||||
public static final int listMode = 2131297089;
|
||||
public static final int list_item = 2131297090;
|
||||
public static final int masked = 2131297151;
|
||||
public static final int message = 2131297163;
|
||||
public static final int mini = 2131297170;
|
||||
public static final int mtrl_child_content_container = 2131297179;
|
||||
public static final int mtrl_internal_children_alpha_tag = 2131297180;
|
||||
public static final int multiply = 2131297181;
|
||||
public static final int navigation_header_container = 2131297185;
|
||||
public static final int none = 2131297193;
|
||||
public static final int normal = 2131297194;
|
||||
public static final int notification_background = 2131297195;
|
||||
public static final int notification_main_column = 2131297196;
|
||||
public static final int notification_main_column_container = 2131297197;
|
||||
public static final int outline = 2131297205;
|
||||
public static final int parallax = 2131297213;
|
||||
public static final int parentPanel = 2131297216;
|
||||
public static final int parent_matrix = 2131297217;
|
||||
public static final int pin = 2131297237;
|
||||
public static final int progress_circular = 2131297255;
|
||||
public static final int progress_horizontal = 2131297256;
|
||||
public static final int radio = 2131297284;
|
||||
public static final int right = 2131297305;
|
||||
public static final int right_icon = 2131297308;
|
||||
public static final int right_side = 2131297309;
|
||||
public static final int save_image_matrix = 2131297437;
|
||||
public static final int save_non_transition_alpha = 2131297438;
|
||||
public static final int save_scale_type = 2131297439;
|
||||
public static final int screen = 2131297445;
|
||||
public static final int scrollIndicatorDown = 2131297447;
|
||||
public static final int scrollIndicatorUp = 2131297448;
|
||||
public static final int scrollView = 2131297449;
|
||||
public static final int scrollable = 2131297450;
|
||||
public static final int search_badge = 2131297451;
|
||||
public static final int search_bar = 2131297452;
|
||||
public static final int search_button = 2131297453;
|
||||
public static final int search_close_btn = 2131297454;
|
||||
public static final int search_edit_frame = 2131297455;
|
||||
public static final int search_go_btn = 2131297456;
|
||||
public static final int search_mag_icon = 2131297457;
|
||||
public static final int search_plate = 2131297458;
|
||||
public static final int search_src_text = 2131297459;
|
||||
public static final int search_voice_btn = 2131297460;
|
||||
public static final int select_dialog_listview = 2131297462;
|
||||
public static final int selected = 2131297463;
|
||||
public static final int shortcut = 2131297475;
|
||||
public static final int smallLabel = 2131297484;
|
||||
public static final int snackbar_action = 2131297485;
|
||||
public static final int snackbar_text = 2131297486;
|
||||
public static final int spacer = 2131297490;
|
||||
public static final int split_action_bar = 2131297493;
|
||||
public static final int src_atop = 2131297496;
|
||||
public static final int src_in = 2131297497;
|
||||
public static final int src_over = 2131297498;
|
||||
public static final int start = 2131297500;
|
||||
public static final int stretch = 2131297509;
|
||||
public static final int submenuarrow = 2131297512;
|
||||
public static final int submit_area = 2131297513;
|
||||
public static final int tabMode = 2131297522;
|
||||
public static final int tag_transition_group = 2131297528;
|
||||
public static final int tag_unhandled_key_event_manager = 2131297529;
|
||||
public static final int tag_unhandled_key_listeners = 2131297530;
|
||||
public static final int text = 2131297537;
|
||||
public static final int text2 = 2131297538;
|
||||
public static final int textSpacerNoButtons = 2131297539;
|
||||
public static final int textSpacerNoTitle = 2131297540;
|
||||
public static final int text_input_password_toggle = 2131297545;
|
||||
public static final int textinput_counter = 2131297546;
|
||||
public static final int textinput_error = 2131297547;
|
||||
public static final int textinput_helper_text = 2131297548;
|
||||
public static final int time = 2131297551;
|
||||
public static final int title = 2131297555;
|
||||
public static final int titleDividerNoCustom = 2131297556;
|
||||
public static final int title_template = 2131297565;
|
||||
public static final int top = 2131297568;
|
||||
public static final int topPanel = 2131297569;
|
||||
public static final int touch_outside = 2131297571;
|
||||
public static final int transition_current_scene = 2131297572;
|
||||
public static final int transition_layout_save = 2131297573;
|
||||
public static final int transition_position = 2131297574;
|
||||
public static final int transition_scene_layoutid_cache = 2131297575;
|
||||
public static final int transition_transform = 2131297576;
|
||||
public static final int uniform = 2131297895;
|
||||
public static final int unlabeled = 2131297897;
|
||||
public static final int up = 2131297898;
|
||||
public static final int view_offset_helper = 2131297946;
|
||||
public static final int visible = 2131297955;
|
||||
public static final int wrap_content = 2131297986;
|
||||
}
|
||||
20
sources/com/google/android/material/R$integer.java
Normal file
20
sources/com/google/android/material/R$integer.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package com.google.android.material;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class R$integer {
|
||||
public static final int abc_config_activityDefaultDur = 2131361792;
|
||||
public static final int abc_config_activityShortDur = 2131361793;
|
||||
public static final int app_bar_elevation_anim_duration = 2131361794;
|
||||
public static final int bottom_sheet_slide_duration = 2131361795;
|
||||
public static final int cancel_button_image_alpha = 2131361796;
|
||||
public static final int config_tooltipAnimTime = 2131361797;
|
||||
public static final int design_snackbar_text_max_lines = 2131361798;
|
||||
public static final int design_tab_indicator_anim_duration_ms = 2131361799;
|
||||
public static final int hide_password_duration = 2131361801;
|
||||
public static final int mtrl_btn_anim_delay_ms = 2131361804;
|
||||
public static final int mtrl_btn_anim_duration_ms = 2131361805;
|
||||
public static final int mtrl_chip_anim_duration = 2131361806;
|
||||
public static final int mtrl_tab_indicator_anim_duration_ms = 2131361807;
|
||||
public static final int show_password_duration = 2131361808;
|
||||
public static final int status_bar_notification_info_maxnum = 2131361809;
|
||||
}
|
||||
59
sources/com/google/android/material/R$layout.java
Normal file
59
sources/com/google/android/material/R$layout.java
Normal file
@@ -0,0 +1,59 @@
|
||||
package com.google.android.material;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class R$layout {
|
||||
public static final int abc_action_bar_title_item = 2131492864;
|
||||
public static final int abc_action_bar_up_container = 2131492865;
|
||||
public static final int abc_action_menu_item_layout = 2131492866;
|
||||
public static final int abc_action_menu_layout = 2131492867;
|
||||
public static final int abc_action_mode_bar = 2131492868;
|
||||
public static final int abc_action_mode_close_item_material = 2131492869;
|
||||
public static final int abc_activity_chooser_view = 2131492870;
|
||||
public static final int abc_activity_chooser_view_list_item = 2131492871;
|
||||
public static final int abc_alert_dialog_button_bar_material = 2131492872;
|
||||
public static final int abc_alert_dialog_material = 2131492873;
|
||||
public static final int abc_alert_dialog_title_material = 2131492874;
|
||||
public static final int abc_cascading_menu_item_layout = 2131492875;
|
||||
public static final int abc_dialog_title_material = 2131492876;
|
||||
public static final int abc_expanded_menu_layout = 2131492877;
|
||||
public static final int abc_list_menu_item_checkbox = 2131492878;
|
||||
public static final int abc_list_menu_item_icon = 2131492879;
|
||||
public static final int abc_list_menu_item_layout = 2131492880;
|
||||
public static final int abc_list_menu_item_radio = 2131492881;
|
||||
public static final int abc_popup_menu_header_item_layout = 2131492882;
|
||||
public static final int abc_popup_menu_item_layout = 2131492883;
|
||||
public static final int abc_screen_content_include = 2131492884;
|
||||
public static final int abc_screen_simple = 2131492885;
|
||||
public static final int abc_screen_simple_overlay_action_mode = 2131492886;
|
||||
public static final int abc_screen_toolbar = 2131492887;
|
||||
public static final int abc_search_dropdown_item_icons_2line = 2131492888;
|
||||
public static final int abc_search_view = 2131492889;
|
||||
public static final int abc_select_dialog_material = 2131492890;
|
||||
public static final int abc_tooltip = 2131492891;
|
||||
public static final int design_bottom_navigation_item = 2131493036;
|
||||
public static final int design_bottom_sheet_dialog = 2131493037;
|
||||
public static final int design_layout_snackbar = 2131493038;
|
||||
public static final int design_layout_snackbar_include = 2131493039;
|
||||
public static final int design_layout_tab_icon = 2131493040;
|
||||
public static final int design_layout_tab_text = 2131493041;
|
||||
public static final int design_menu_item_action_area = 2131493042;
|
||||
public static final int design_navigation_item = 2131493043;
|
||||
public static final int design_navigation_item_header = 2131493044;
|
||||
public static final int design_navigation_item_separator = 2131493045;
|
||||
public static final int design_navigation_item_subheader = 2131493046;
|
||||
public static final int design_navigation_menu = 2131493047;
|
||||
public static final int design_navigation_menu_item = 2131493048;
|
||||
public static final int design_text_input_password_icon = 2131493049;
|
||||
public static final int mtrl_layout_snackbar = 2131493286;
|
||||
public static final int mtrl_layout_snackbar_include = 2131493287;
|
||||
public static final int notification_action = 2131493288;
|
||||
public static final int notification_action_tombstone = 2131493289;
|
||||
public static final int notification_template_custom_big = 2131493296;
|
||||
public static final int notification_template_icon_group = 2131493297;
|
||||
public static final int notification_template_part_chronometer = 2131493301;
|
||||
public static final int notification_template_part_time = 2131493302;
|
||||
public static final int select_dialog_item_material = 2131493348;
|
||||
public static final int select_dialog_multichoice_material = 2131493349;
|
||||
public static final int select_dialog_singlechoice_material = 2131493350;
|
||||
public static final int support_simple_spinner_dropdown_item = 2131493355;
|
||||
}
|
||||
59
sources/com/google/android/material/R$string.java
Normal file
59
sources/com/google/android/material/R$string.java
Normal file
@@ -0,0 +1,59 @@
|
||||
package com.google.android.material;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class R$string {
|
||||
public static final int abc_action_bar_home_description = 2131820553;
|
||||
public static final int abc_action_bar_up_description = 2131820554;
|
||||
public static final int abc_action_menu_overflow_description = 2131820555;
|
||||
public static final int abc_action_mode_done = 2131820556;
|
||||
public static final int abc_activity_chooser_view_see_all = 2131820557;
|
||||
public static final int abc_activitychooserview_choose_application = 2131820558;
|
||||
public static final int abc_capital_off = 2131820559;
|
||||
public static final int abc_capital_on = 2131820560;
|
||||
public static final int abc_font_family_body_1_material = 2131820561;
|
||||
public static final int abc_font_family_body_2_material = 2131820562;
|
||||
public static final int abc_font_family_button_material = 2131820563;
|
||||
public static final int abc_font_family_caption_material = 2131820564;
|
||||
public static final int abc_font_family_display_1_material = 2131820565;
|
||||
public static final int abc_font_family_display_2_material = 2131820566;
|
||||
public static final int abc_font_family_display_3_material = 2131820567;
|
||||
public static final int abc_font_family_display_4_material = 2131820568;
|
||||
public static final int abc_font_family_headline_material = 2131820569;
|
||||
public static final int abc_font_family_menu_material = 2131820570;
|
||||
public static final int abc_font_family_subhead_material = 2131820571;
|
||||
public static final int abc_font_family_title_material = 2131820572;
|
||||
public static final int abc_menu_alt_shortcut_label = 2131820573;
|
||||
public static final int abc_menu_ctrl_shortcut_label = 2131820574;
|
||||
public static final int abc_menu_delete_shortcut_label = 2131820575;
|
||||
public static final int abc_menu_enter_shortcut_label = 2131820576;
|
||||
public static final int abc_menu_function_shortcut_label = 2131820577;
|
||||
public static final int abc_menu_meta_shortcut_label = 2131820578;
|
||||
public static final int abc_menu_shift_shortcut_label = 2131820579;
|
||||
public static final int abc_menu_space_shortcut_label = 2131820580;
|
||||
public static final int abc_menu_sym_shortcut_label = 2131820581;
|
||||
public static final int abc_prepend_shortcut_label = 2131820582;
|
||||
public static final int abc_search_hint = 2131820583;
|
||||
public static final int abc_searchview_description_clear = 2131820584;
|
||||
public static final int abc_searchview_description_query = 2131820585;
|
||||
public static final int abc_searchview_description_search = 2131820586;
|
||||
public static final int abc_searchview_description_submit = 2131820587;
|
||||
public static final int abc_searchview_description_voice = 2131820588;
|
||||
public static final int abc_shareactionprovider_share_with = 2131820589;
|
||||
public static final int abc_shareactionprovider_share_with_application = 2131820590;
|
||||
public static final int abc_toolbar_collapse_description = 2131820591;
|
||||
public static final int appbar_scrolling_view_behavior = 2131820661;
|
||||
public static final int bottom_sheet_behavior = 2131820682;
|
||||
public static final int character_counter_content_description = 2131820730;
|
||||
public static final int character_counter_pattern = 2131820731;
|
||||
public static final int fab_transformation_scrim_behavior = 2131821018;
|
||||
public static final int fab_transformation_sheet_behavior = 2131821019;
|
||||
public static final int hide_bottom_view_on_scroll_behavior = 2131821117;
|
||||
public static final int mtrl_chip_close_icon_content_description = 2131821290;
|
||||
public static final int password_toggle_content_description = 2131821336;
|
||||
public static final int path_password_eye = 2131821337;
|
||||
public static final int path_password_eye_mask_strike_through = 2131821338;
|
||||
public static final int path_password_eye_mask_visible = 2131821339;
|
||||
public static final int path_password_strike_through = 2131821340;
|
||||
public static final int search_menu_title = 2131821508;
|
||||
public static final int status_bar_notification_info_overflow = 2131821607;
|
||||
}
|
||||
500
sources/com/google/android/material/R$style.java
Normal file
500
sources/com/google/android/material/R$style.java
Normal file
@@ -0,0 +1,500 @@
|
||||
package com.google.android.material;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class R$style {
|
||||
public static final int AlertDialog_AppCompat = 2131886081;
|
||||
public static final int AlertDialog_AppCompat_Light = 2131886082;
|
||||
public static final int Animation_AppCompat_Dialog = 2131886084;
|
||||
public static final int Animation_AppCompat_DropDownUp = 2131886085;
|
||||
public static final int Animation_AppCompat_Tooltip = 2131886086;
|
||||
public static final int Animation_Design_BottomSheetDialog = 2131886087;
|
||||
public static final int Base_AlertDialog_AppCompat = 2131886093;
|
||||
public static final int Base_AlertDialog_AppCompat_Light = 2131886094;
|
||||
public static final int Base_Animation_AppCompat_Dialog = 2131886095;
|
||||
public static final int Base_Animation_AppCompat_DropDownUp = 2131886096;
|
||||
public static final int Base_Animation_AppCompat_Tooltip = 2131886097;
|
||||
public static final int Base_CardView = 2131886098;
|
||||
public static final int Base_DialogWindowTitleBackground_AppCompat = 2131886100;
|
||||
public static final int Base_DialogWindowTitle_AppCompat = 2131886099;
|
||||
public static final int Base_TextAppearance_AppCompat = 2131886101;
|
||||
public static final int Base_TextAppearance_AppCompat_Body1 = 2131886102;
|
||||
public static final int Base_TextAppearance_AppCompat_Body2 = 2131886103;
|
||||
public static final int Base_TextAppearance_AppCompat_Button = 2131886104;
|
||||
public static final int Base_TextAppearance_AppCompat_Caption = 2131886105;
|
||||
public static final int Base_TextAppearance_AppCompat_Display1 = 2131886106;
|
||||
public static final int Base_TextAppearance_AppCompat_Display2 = 2131886107;
|
||||
public static final int Base_TextAppearance_AppCompat_Display3 = 2131886108;
|
||||
public static final int Base_TextAppearance_AppCompat_Display4 = 2131886109;
|
||||
public static final int Base_TextAppearance_AppCompat_Headline = 2131886110;
|
||||
public static final int Base_TextAppearance_AppCompat_Inverse = 2131886111;
|
||||
public static final int Base_TextAppearance_AppCompat_Large = 2131886112;
|
||||
public static final int Base_TextAppearance_AppCompat_Large_Inverse = 2131886113;
|
||||
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131886114;
|
||||
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131886115;
|
||||
public static final int Base_TextAppearance_AppCompat_Medium = 2131886116;
|
||||
public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 2131886117;
|
||||
public static final int Base_TextAppearance_AppCompat_Menu = 2131886118;
|
||||
public static final int Base_TextAppearance_AppCompat_SearchResult = 2131886119;
|
||||
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 2131886120;
|
||||
public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 2131886121;
|
||||
public static final int Base_TextAppearance_AppCompat_Small = 2131886122;
|
||||
public static final int Base_TextAppearance_AppCompat_Small_Inverse = 2131886123;
|
||||
public static final int Base_TextAppearance_AppCompat_Subhead = 2131886124;
|
||||
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 2131886125;
|
||||
public static final int Base_TextAppearance_AppCompat_Title = 2131886126;
|
||||
public static final int Base_TextAppearance_AppCompat_Title_Inverse = 2131886127;
|
||||
public static final int Base_TextAppearance_AppCompat_Tooltip = 2131886128;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131886129;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131886130;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131886131;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 2131886132;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131886133;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131886134;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 2131886135;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_Button = 2131886136;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131886137;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_Button_Colored = 2131886138;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 2131886139;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 2131886140;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131886141;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131886142;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131886143;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_Switch = 2131886144;
|
||||
public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131886145;
|
||||
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131886146;
|
||||
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131886147;
|
||||
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 2131886148;
|
||||
public static final int Base_ThemeOverlay_AppCompat = 2131886180;
|
||||
public static final int Base_ThemeOverlay_AppCompat_ActionBar = 2131886181;
|
||||
public static final int Base_ThemeOverlay_AppCompat_Dark = 2131886182;
|
||||
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 2131886183;
|
||||
public static final int Base_ThemeOverlay_AppCompat_Dialog = 2131886184;
|
||||
public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 2131886185;
|
||||
public static final int Base_ThemeOverlay_AppCompat_Light = 2131886186;
|
||||
public static final int Base_ThemeOverlay_MaterialComponents_Dialog = 2131886187;
|
||||
public static final int Base_ThemeOverlay_MaterialComponents_Dialog_Alert = 2131886188;
|
||||
public static final int Base_Theme_AppCompat = 2131886149;
|
||||
public static final int Base_Theme_AppCompat_CompactMenu = 2131886150;
|
||||
public static final int Base_Theme_AppCompat_Dialog = 2131886151;
|
||||
public static final int Base_Theme_AppCompat_DialogWhenLarge = 2131886155;
|
||||
public static final int Base_Theme_AppCompat_Dialog_Alert = 2131886152;
|
||||
public static final int Base_Theme_AppCompat_Dialog_FixedSize = 2131886153;
|
||||
public static final int Base_Theme_AppCompat_Dialog_MinWidth = 2131886154;
|
||||
public static final int Base_Theme_AppCompat_Light = 2131886156;
|
||||
public static final int Base_Theme_AppCompat_Light_DarkActionBar = 2131886157;
|
||||
public static final int Base_Theme_AppCompat_Light_Dialog = 2131886158;
|
||||
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 2131886162;
|
||||
public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 2131886159;
|
||||
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 2131886160;
|
||||
public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 2131886161;
|
||||
public static final int Base_Theme_MaterialComponents = 2131886163;
|
||||
public static final int Base_Theme_MaterialComponents_Bridge = 2131886164;
|
||||
public static final int Base_Theme_MaterialComponents_CompactMenu = 2131886165;
|
||||
public static final int Base_Theme_MaterialComponents_Dialog = 2131886166;
|
||||
public static final int Base_Theme_MaterialComponents_DialogWhenLarge = 2131886170;
|
||||
public static final int Base_Theme_MaterialComponents_Dialog_Alert = 2131886167;
|
||||
public static final int Base_Theme_MaterialComponents_Dialog_FixedSize = 2131886168;
|
||||
public static final int Base_Theme_MaterialComponents_Dialog_MinWidth = 2131886169;
|
||||
public static final int Base_Theme_MaterialComponents_Light = 2131886171;
|
||||
public static final int Base_Theme_MaterialComponents_Light_Bridge = 2131886172;
|
||||
public static final int Base_Theme_MaterialComponents_Light_DarkActionBar = 2131886173;
|
||||
public static final int Base_Theme_MaterialComponents_Light_DarkActionBar_Bridge = 2131886174;
|
||||
public static final int Base_Theme_MaterialComponents_Light_Dialog = 2131886175;
|
||||
public static final int Base_Theme_MaterialComponents_Light_DialogWhenLarge = 2131886179;
|
||||
public static final int Base_Theme_MaterialComponents_Light_Dialog_Alert = 2131886176;
|
||||
public static final int Base_Theme_MaterialComponents_Light_Dialog_FixedSize = 2131886177;
|
||||
public static final int Base_Theme_MaterialComponents_Light_Dialog_MinWidth = 2131886178;
|
||||
public static final int Base_V14_ThemeOverlay_MaterialComponents_Dialog = 2131886196;
|
||||
public static final int Base_V14_ThemeOverlay_MaterialComponents_Dialog_Alert = 2131886197;
|
||||
public static final int Base_V14_Theme_MaterialComponents = 2131886189;
|
||||
public static final int Base_V14_Theme_MaterialComponents_Bridge = 2131886190;
|
||||
public static final int Base_V14_Theme_MaterialComponents_Dialog = 2131886191;
|
||||
public static final int Base_V14_Theme_MaterialComponents_Light = 2131886192;
|
||||
public static final int Base_V14_Theme_MaterialComponents_Light_Bridge = 2131886193;
|
||||
public static final int Base_V14_Theme_MaterialComponents_Light_DarkActionBar_Bridge = 2131886194;
|
||||
public static final int Base_V14_Theme_MaterialComponents_Light_Dialog = 2131886195;
|
||||
public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 2131886202;
|
||||
public static final int Base_V21_Theme_AppCompat = 2131886198;
|
||||
public static final int Base_V21_Theme_AppCompat_Dialog = 2131886199;
|
||||
public static final int Base_V21_Theme_AppCompat_Light = 2131886200;
|
||||
public static final int Base_V21_Theme_AppCompat_Light_Dialog = 2131886201;
|
||||
public static final int Base_V22_Theme_AppCompat = 2131886203;
|
||||
public static final int Base_V22_Theme_AppCompat_Light = 2131886204;
|
||||
public static final int Base_V23_Theme_AppCompat = 2131886205;
|
||||
public static final int Base_V23_Theme_AppCompat_Light = 2131886206;
|
||||
public static final int Base_V26_Theme_AppCompat = 2131886207;
|
||||
public static final int Base_V26_Theme_AppCompat_Light = 2131886208;
|
||||
public static final int Base_V26_Widget_AppCompat_Toolbar = 2131886209;
|
||||
public static final int Base_V28_Theme_AppCompat = 2131886210;
|
||||
public static final int Base_V28_Theme_AppCompat_Light = 2131886211;
|
||||
public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 2131886216;
|
||||
public static final int Base_V7_Theme_AppCompat = 2131886212;
|
||||
public static final int Base_V7_Theme_AppCompat_Dialog = 2131886213;
|
||||
public static final int Base_V7_Theme_AppCompat_Light = 2131886214;
|
||||
public static final int Base_V7_Theme_AppCompat_Light_Dialog = 2131886215;
|
||||
public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 2131886217;
|
||||
public static final int Base_V7_Widget_AppCompat_EditText = 2131886218;
|
||||
public static final int Base_V7_Widget_AppCompat_Toolbar = 2131886219;
|
||||
public static final int Base_Widget_AppCompat_ActionBar = 2131886220;
|
||||
public static final int Base_Widget_AppCompat_ActionBar_Solid = 2131886221;
|
||||
public static final int Base_Widget_AppCompat_ActionBar_TabBar = 2131886222;
|
||||
public static final int Base_Widget_AppCompat_ActionBar_TabText = 2131886223;
|
||||
public static final int Base_Widget_AppCompat_ActionBar_TabView = 2131886224;
|
||||
public static final int Base_Widget_AppCompat_ActionButton = 2131886225;
|
||||
public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 2131886226;
|
||||
public static final int Base_Widget_AppCompat_ActionButton_Overflow = 2131886227;
|
||||
public static final int Base_Widget_AppCompat_ActionMode = 2131886228;
|
||||
public static final int Base_Widget_AppCompat_ActivityChooserView = 2131886229;
|
||||
public static final int Base_Widget_AppCompat_AutoCompleteTextView = 2131886230;
|
||||
public static final int Base_Widget_AppCompat_Button = 2131886231;
|
||||
public static final int Base_Widget_AppCompat_ButtonBar = 2131886237;
|
||||
public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 2131886238;
|
||||
public static final int Base_Widget_AppCompat_Button_Borderless = 2131886232;
|
||||
public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 2131886233;
|
||||
public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131886234;
|
||||
public static final int Base_Widget_AppCompat_Button_Colored = 2131886235;
|
||||
public static final int Base_Widget_AppCompat_Button_Small = 2131886236;
|
||||
public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 2131886239;
|
||||
public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 2131886240;
|
||||
public static final int Base_Widget_AppCompat_CompoundButton_Switch = 2131886241;
|
||||
public static final int Base_Widget_AppCompat_DrawerArrowToggle = 2131886242;
|
||||
public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 2131886243;
|
||||
public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 2131886244;
|
||||
public static final int Base_Widget_AppCompat_EditText = 2131886245;
|
||||
public static final int Base_Widget_AppCompat_ImageButton = 2131886246;
|
||||
public static final int Base_Widget_AppCompat_Light_ActionBar = 2131886247;
|
||||
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 2131886248;
|
||||
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 2131886249;
|
||||
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 2131886250;
|
||||
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131886251;
|
||||
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 2131886252;
|
||||
public static final int Base_Widget_AppCompat_Light_PopupMenu = 2131886253;
|
||||
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 2131886254;
|
||||
public static final int Base_Widget_AppCompat_ListMenuView = 2131886255;
|
||||
public static final int Base_Widget_AppCompat_ListPopupWindow = 2131886256;
|
||||
public static final int Base_Widget_AppCompat_ListView = 2131886257;
|
||||
public static final int Base_Widget_AppCompat_ListView_DropDown = 2131886258;
|
||||
public static final int Base_Widget_AppCompat_ListView_Menu = 2131886259;
|
||||
public static final int Base_Widget_AppCompat_PopupMenu = 2131886260;
|
||||
public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 2131886261;
|
||||
public static final int Base_Widget_AppCompat_PopupWindow = 2131886262;
|
||||
public static final int Base_Widget_AppCompat_ProgressBar = 2131886263;
|
||||
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 2131886264;
|
||||
public static final int Base_Widget_AppCompat_RatingBar = 2131886265;
|
||||
public static final int Base_Widget_AppCompat_RatingBar_Indicator = 2131886266;
|
||||
public static final int Base_Widget_AppCompat_RatingBar_Small = 2131886267;
|
||||
public static final int Base_Widget_AppCompat_SearchView = 2131886268;
|
||||
public static final int Base_Widget_AppCompat_SearchView_ActionBar = 2131886269;
|
||||
public static final int Base_Widget_AppCompat_SeekBar = 2131886270;
|
||||
public static final int Base_Widget_AppCompat_SeekBar_Discrete = 2131886271;
|
||||
public static final int Base_Widget_AppCompat_Spinner = 2131886272;
|
||||
public static final int Base_Widget_AppCompat_Spinner_Underlined = 2131886273;
|
||||
public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 2131886274;
|
||||
public static final int Base_Widget_AppCompat_Toolbar = 2131886275;
|
||||
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 2131886276;
|
||||
public static final int Base_Widget_Design_TabLayout = 2131886277;
|
||||
public static final int Base_Widget_MaterialComponents_Chip = 2131886278;
|
||||
public static final int Base_Widget_MaterialComponents_TextInputEditText = 2131886279;
|
||||
public static final int Base_Widget_MaterialComponents_TextInputLayout = 2131886280;
|
||||
public static final int CardView = 2131886283;
|
||||
public static final int CardView_Dark = 2131886284;
|
||||
public static final int CardView_Light = 2131886285;
|
||||
public static final int Platform_AppCompat = 2131886313;
|
||||
public static final int Platform_AppCompat_Light = 2131886314;
|
||||
public static final int Platform_MaterialComponents = 2131886315;
|
||||
public static final int Platform_MaterialComponents_Dialog = 2131886316;
|
||||
public static final int Platform_MaterialComponents_Light = 2131886317;
|
||||
public static final int Platform_MaterialComponents_Light_Dialog = 2131886318;
|
||||
public static final int Platform_ThemeOverlay_AppCompat = 2131886319;
|
||||
public static final int Platform_ThemeOverlay_AppCompat_Dark = 2131886320;
|
||||
public static final int Platform_ThemeOverlay_AppCompat_Light = 2131886321;
|
||||
public static final int Platform_V21_AppCompat = 2131886322;
|
||||
public static final int Platform_V21_AppCompat_Light = 2131886323;
|
||||
public static final int Platform_V25_AppCompat = 2131886324;
|
||||
public static final int Platform_V25_AppCompat_Light = 2131886325;
|
||||
public static final int Platform_Widget_AppCompat_Spinner = 2131886326;
|
||||
public static final int RtlOverlay_DialogWindowTitle_AppCompat = 2131886328;
|
||||
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 2131886329;
|
||||
public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 2131886330;
|
||||
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 2131886331;
|
||||
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 2131886332;
|
||||
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Shortcut = 2131886333;
|
||||
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_SubmenuArrow = 2131886334;
|
||||
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 2131886335;
|
||||
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Title = 2131886336;
|
||||
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 2131886342;
|
||||
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 2131886337;
|
||||
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 2131886338;
|
||||
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 2131886339;
|
||||
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 2131886340;
|
||||
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 2131886341;
|
||||
public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 2131886343;
|
||||
public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 2131886344;
|
||||
public static final int TextAppearance_AppCompat = 2131886347;
|
||||
public static final int TextAppearance_AppCompat_Body1 = 2131886348;
|
||||
public static final int TextAppearance_AppCompat_Body2 = 2131886349;
|
||||
public static final int TextAppearance_AppCompat_Button = 2131886350;
|
||||
public static final int TextAppearance_AppCompat_Caption = 2131886351;
|
||||
public static final int TextAppearance_AppCompat_Display1 = 2131886352;
|
||||
public static final int TextAppearance_AppCompat_Display2 = 2131886353;
|
||||
public static final int TextAppearance_AppCompat_Display3 = 2131886354;
|
||||
public static final int TextAppearance_AppCompat_Display4 = 2131886355;
|
||||
public static final int TextAppearance_AppCompat_Headline = 2131886356;
|
||||
public static final int TextAppearance_AppCompat_Inverse = 2131886357;
|
||||
public static final int TextAppearance_AppCompat_Large = 2131886358;
|
||||
public static final int TextAppearance_AppCompat_Large_Inverse = 2131886359;
|
||||
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 2131886360;
|
||||
public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 2131886361;
|
||||
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131886362;
|
||||
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131886363;
|
||||
public static final int TextAppearance_AppCompat_Medium = 2131886364;
|
||||
public static final int TextAppearance_AppCompat_Medium_Inverse = 2131886365;
|
||||
public static final int TextAppearance_AppCompat_Menu = 2131886366;
|
||||
public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 2131886367;
|
||||
public static final int TextAppearance_AppCompat_SearchResult_Title = 2131886368;
|
||||
public static final int TextAppearance_AppCompat_Small = 2131886369;
|
||||
public static final int TextAppearance_AppCompat_Small_Inverse = 2131886370;
|
||||
public static final int TextAppearance_AppCompat_Subhead = 2131886371;
|
||||
public static final int TextAppearance_AppCompat_Subhead_Inverse = 2131886372;
|
||||
public static final int TextAppearance_AppCompat_Title = 2131886373;
|
||||
public static final int TextAppearance_AppCompat_Title_Inverse = 2131886374;
|
||||
public static final int TextAppearance_AppCompat_Tooltip = 2131886375;
|
||||
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131886376;
|
||||
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131886377;
|
||||
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131886378;
|
||||
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 2131886379;
|
||||
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131886380;
|
||||
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131886381;
|
||||
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 2131886382;
|
||||
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 2131886383;
|
||||
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 2131886384;
|
||||
public static final int TextAppearance_AppCompat_Widget_Button = 2131886385;
|
||||
public static final int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131886386;
|
||||
public static final int TextAppearance_AppCompat_Widget_Button_Colored = 2131886387;
|
||||
public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 2131886388;
|
||||
public static final int TextAppearance_AppCompat_Widget_DropDownItem = 2131886389;
|
||||
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131886390;
|
||||
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131886391;
|
||||
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131886392;
|
||||
public static final int TextAppearance_AppCompat_Widget_Switch = 2131886393;
|
||||
public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131886394;
|
||||
public static final int TextAppearance_Compat_Notification = 2131886395;
|
||||
public static final int TextAppearance_Compat_Notification_Info = 2131886396;
|
||||
public static final int TextAppearance_Compat_Notification_Line2 = 2131886398;
|
||||
public static final int TextAppearance_Compat_Notification_Time = 2131886401;
|
||||
public static final int TextAppearance_Compat_Notification_Title = 2131886403;
|
||||
public static final int TextAppearance_Design_CollapsingToolbar_Expanded = 2131886405;
|
||||
public static final int TextAppearance_Design_Counter = 2131886406;
|
||||
public static final int TextAppearance_Design_Counter_Overflow = 2131886407;
|
||||
public static final int TextAppearance_Design_Error = 2131886408;
|
||||
public static final int TextAppearance_Design_HelperText = 2131886409;
|
||||
public static final int TextAppearance_Design_Hint = 2131886410;
|
||||
public static final int TextAppearance_Design_Snackbar_Message = 2131886411;
|
||||
public static final int TextAppearance_Design_Tab = 2131886412;
|
||||
public static final int TextAppearance_MaterialComponents_Body1 = 2131886413;
|
||||
public static final int TextAppearance_MaterialComponents_Body2 = 2131886414;
|
||||
public static final int TextAppearance_MaterialComponents_Button = 2131886415;
|
||||
public static final int TextAppearance_MaterialComponents_Caption = 2131886416;
|
||||
public static final int TextAppearance_MaterialComponents_Chip = 2131886417;
|
||||
public static final int TextAppearance_MaterialComponents_Headline1 = 2131886418;
|
||||
public static final int TextAppearance_MaterialComponents_Headline2 = 2131886419;
|
||||
public static final int TextAppearance_MaterialComponents_Headline3 = 2131886420;
|
||||
public static final int TextAppearance_MaterialComponents_Headline4 = 2131886421;
|
||||
public static final int TextAppearance_MaterialComponents_Headline5 = 2131886422;
|
||||
public static final int TextAppearance_MaterialComponents_Headline6 = 2131886423;
|
||||
public static final int TextAppearance_MaterialComponents_Overline = 2131886424;
|
||||
public static final int TextAppearance_MaterialComponents_Subtitle1 = 2131886425;
|
||||
public static final int TextAppearance_MaterialComponents_Subtitle2 = 2131886426;
|
||||
public static final int TextAppearance_MaterialComponents_Tab = 2131886427;
|
||||
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131886428;
|
||||
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131886429;
|
||||
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 2131886430;
|
||||
public static final int ThemeOverlay_AppCompat = 2131886482;
|
||||
public static final int ThemeOverlay_AppCompat_ActionBar = 2131886483;
|
||||
public static final int ThemeOverlay_AppCompat_Dark = 2131886484;
|
||||
public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 2131886485;
|
||||
public static final int ThemeOverlay_AppCompat_Dialog = 2131886486;
|
||||
public static final int ThemeOverlay_AppCompat_Dialog_Alert = 2131886487;
|
||||
public static final int ThemeOverlay_AppCompat_Light = 2131886488;
|
||||
public static final int ThemeOverlay_MaterialComponents = 2131886489;
|
||||
public static final int ThemeOverlay_MaterialComponents_ActionBar = 2131886490;
|
||||
public static final int ThemeOverlay_MaterialComponents_Dark = 2131886491;
|
||||
public static final int ThemeOverlay_MaterialComponents_Dark_ActionBar = 2131886492;
|
||||
public static final int ThemeOverlay_MaterialComponents_Dialog = 2131886493;
|
||||
public static final int ThemeOverlay_MaterialComponents_Dialog_Alert = 2131886494;
|
||||
public static final int ThemeOverlay_MaterialComponents_Light = 2131886495;
|
||||
public static final int ThemeOverlay_MaterialComponents_TextInputEditText = 2131886496;
|
||||
public static final int ThemeOverlay_MaterialComponents_TextInputEditText_FilledBox = 2131886497;
|
||||
public static final int ThemeOverlay_MaterialComponents_TextInputEditText_FilledBox_Dense = 2131886498;
|
||||
public static final int ThemeOverlay_MaterialComponents_TextInputEditText_OutlinedBox = 2131886499;
|
||||
public static final int ThemeOverlay_MaterialComponents_TextInputEditText_OutlinedBox_Dense = 2131886500;
|
||||
public static final int Theme_AppCompat = 2131886433;
|
||||
public static final int Theme_AppCompat_CompactMenu = 2131886434;
|
||||
public static final int Theme_AppCompat_DayNight = 2131886435;
|
||||
public static final int Theme_AppCompat_DayNight_DarkActionBar = 2131886436;
|
||||
public static final int Theme_AppCompat_DayNight_Dialog = 2131886437;
|
||||
public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 2131886440;
|
||||
public static final int Theme_AppCompat_DayNight_Dialog_Alert = 2131886438;
|
||||
public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 2131886439;
|
||||
public static final int Theme_AppCompat_DayNight_NoActionBar = 2131886441;
|
||||
public static final int Theme_AppCompat_Dialog = 2131886442;
|
||||
public static final int Theme_AppCompat_DialogWhenLarge = 2131886445;
|
||||
public static final int Theme_AppCompat_Dialog_Alert = 2131886443;
|
||||
public static final int Theme_AppCompat_Dialog_MinWidth = 2131886444;
|
||||
public static final int Theme_AppCompat_Light = 2131886446;
|
||||
public static final int Theme_AppCompat_Light_DarkActionBar = 2131886447;
|
||||
public static final int Theme_AppCompat_Light_Dialog = 2131886448;
|
||||
public static final int Theme_AppCompat_Light_DialogWhenLarge = 2131886451;
|
||||
public static final int Theme_AppCompat_Light_Dialog_Alert = 2131886449;
|
||||
public static final int Theme_AppCompat_Light_Dialog_MinWidth = 2131886450;
|
||||
public static final int Theme_AppCompat_Light_NoActionBar = 2131886452;
|
||||
public static final int Theme_AppCompat_NoActionBar = 2131886453;
|
||||
public static final int Theme_Design = 2131886454;
|
||||
public static final int Theme_Design_BottomSheetDialog = 2131886455;
|
||||
public static final int Theme_Design_Light = 2131886456;
|
||||
public static final int Theme_Design_Light_BottomSheetDialog = 2131886457;
|
||||
public static final int Theme_Design_Light_NoActionBar = 2131886458;
|
||||
public static final int Theme_Design_NoActionBar = 2131886459;
|
||||
public static final int Theme_MaterialComponents = 2131886460;
|
||||
public static final int Theme_MaterialComponents_BottomSheetDialog = 2131886461;
|
||||
public static final int Theme_MaterialComponents_Bridge = 2131886462;
|
||||
public static final int Theme_MaterialComponents_CompactMenu = 2131886463;
|
||||
public static final int Theme_MaterialComponents_Dialog = 2131886464;
|
||||
public static final int Theme_MaterialComponents_DialogWhenLarge = 2131886467;
|
||||
public static final int Theme_MaterialComponents_Dialog_Alert = 2131886465;
|
||||
public static final int Theme_MaterialComponents_Dialog_MinWidth = 2131886466;
|
||||
public static final int Theme_MaterialComponents_Light = 2131886468;
|
||||
public static final int Theme_MaterialComponents_Light_BottomSheetDialog = 2131886469;
|
||||
public static final int Theme_MaterialComponents_Light_Bridge = 2131886470;
|
||||
public static final int Theme_MaterialComponents_Light_DarkActionBar = 2131886471;
|
||||
public static final int Theme_MaterialComponents_Light_DarkActionBar_Bridge = 2131886472;
|
||||
public static final int Theme_MaterialComponents_Light_Dialog = 2131886473;
|
||||
public static final int Theme_MaterialComponents_Light_DialogWhenLarge = 2131886476;
|
||||
public static final int Theme_MaterialComponents_Light_Dialog_Alert = 2131886474;
|
||||
public static final int Theme_MaterialComponents_Light_Dialog_MinWidth = 2131886475;
|
||||
public static final int Theme_MaterialComponents_Light_NoActionBar = 2131886477;
|
||||
public static final int Theme_MaterialComponents_Light_NoActionBar_Bridge = 2131886478;
|
||||
public static final int Theme_MaterialComponents_NoActionBar = 2131886479;
|
||||
public static final int Theme_MaterialComponents_NoActionBar_Bridge = 2131886480;
|
||||
public static final int Widget_AppCompat_ActionBar = 2131886502;
|
||||
public static final int Widget_AppCompat_ActionBar_Solid = 2131886503;
|
||||
public static final int Widget_AppCompat_ActionBar_TabBar = 2131886504;
|
||||
public static final int Widget_AppCompat_ActionBar_TabText = 2131886505;
|
||||
public static final int Widget_AppCompat_ActionBar_TabView = 2131886506;
|
||||
public static final int Widget_AppCompat_ActionButton = 2131886507;
|
||||
public static final int Widget_AppCompat_ActionButton_CloseMode = 2131886508;
|
||||
public static final int Widget_AppCompat_ActionButton_Overflow = 2131886509;
|
||||
public static final int Widget_AppCompat_ActionMode = 2131886510;
|
||||
public static final int Widget_AppCompat_ActivityChooserView = 2131886511;
|
||||
public static final int Widget_AppCompat_AutoCompleteTextView = 2131886512;
|
||||
public static final int Widget_AppCompat_Button = 2131886513;
|
||||
public static final int Widget_AppCompat_ButtonBar = 2131886519;
|
||||
public static final int Widget_AppCompat_ButtonBar_AlertDialog = 2131886520;
|
||||
public static final int Widget_AppCompat_Button_Borderless = 2131886514;
|
||||
public static final int Widget_AppCompat_Button_Borderless_Colored = 2131886515;
|
||||
public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131886516;
|
||||
public static final int Widget_AppCompat_Button_Colored = 2131886517;
|
||||
public static final int Widget_AppCompat_Button_Small = 2131886518;
|
||||
public static final int Widget_AppCompat_CompoundButton_CheckBox = 2131886521;
|
||||
public static final int Widget_AppCompat_CompoundButton_RadioButton = 2131886522;
|
||||
public static final int Widget_AppCompat_CompoundButton_Switch = 2131886523;
|
||||
public static final int Widget_AppCompat_DrawerArrowToggle = 2131886524;
|
||||
public static final int Widget_AppCompat_DropDownItem_Spinner = 2131886525;
|
||||
public static final int Widget_AppCompat_EditText = 2131886526;
|
||||
public static final int Widget_AppCompat_ImageButton = 2131886527;
|
||||
public static final int Widget_AppCompat_Light_ActionBar = 2131886528;
|
||||
public static final int Widget_AppCompat_Light_ActionBar_Solid = 2131886529;
|
||||
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 2131886530;
|
||||
public static final int Widget_AppCompat_Light_ActionBar_TabBar = 2131886531;
|
||||
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 2131886532;
|
||||
public static final int Widget_AppCompat_Light_ActionBar_TabText = 2131886533;
|
||||
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131886534;
|
||||
public static final int Widget_AppCompat_Light_ActionBar_TabView = 2131886535;
|
||||
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 2131886536;
|
||||
public static final int Widget_AppCompat_Light_ActionButton = 2131886537;
|
||||
public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 2131886538;
|
||||
public static final int Widget_AppCompat_Light_ActionButton_Overflow = 2131886539;
|
||||
public static final int Widget_AppCompat_Light_ActionMode_Inverse = 2131886540;
|
||||
public static final int Widget_AppCompat_Light_ActivityChooserView = 2131886541;
|
||||
public static final int Widget_AppCompat_Light_AutoCompleteTextView = 2131886542;
|
||||
public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 2131886543;
|
||||
public static final int Widget_AppCompat_Light_ListPopupWindow = 2131886544;
|
||||
public static final int Widget_AppCompat_Light_ListView_DropDown = 2131886545;
|
||||
public static final int Widget_AppCompat_Light_PopupMenu = 2131886546;
|
||||
public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 2131886547;
|
||||
public static final int Widget_AppCompat_Light_SearchView = 2131886548;
|
||||
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 2131886549;
|
||||
public static final int Widget_AppCompat_ListMenuView = 2131886550;
|
||||
public static final int Widget_AppCompat_ListPopupWindow = 2131886551;
|
||||
public static final int Widget_AppCompat_ListView = 2131886552;
|
||||
public static final int Widget_AppCompat_ListView_DropDown = 2131886553;
|
||||
public static final int Widget_AppCompat_ListView_Menu = 2131886554;
|
||||
public static final int Widget_AppCompat_PopupMenu = 2131886555;
|
||||
public static final int Widget_AppCompat_PopupMenu_Overflow = 2131886556;
|
||||
public static final int Widget_AppCompat_PopupWindow = 2131886557;
|
||||
public static final int Widget_AppCompat_ProgressBar = 2131886558;
|
||||
public static final int Widget_AppCompat_ProgressBar_Horizontal = 2131886559;
|
||||
public static final int Widget_AppCompat_RatingBar = 2131886560;
|
||||
public static final int Widget_AppCompat_RatingBar_Indicator = 2131886561;
|
||||
public static final int Widget_AppCompat_RatingBar_Small = 2131886562;
|
||||
public static final int Widget_AppCompat_SearchView = 2131886563;
|
||||
public static final int Widget_AppCompat_SearchView_ActionBar = 2131886564;
|
||||
public static final int Widget_AppCompat_SeekBar = 2131886565;
|
||||
public static final int Widget_AppCompat_SeekBar_Discrete = 2131886566;
|
||||
public static final int Widget_AppCompat_Spinner = 2131886567;
|
||||
public static final int Widget_AppCompat_Spinner_DropDown = 2131886568;
|
||||
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 2131886569;
|
||||
public static final int Widget_AppCompat_Spinner_Underlined = 2131886570;
|
||||
public static final int Widget_AppCompat_TextView_SpinnerItem = 2131886571;
|
||||
public static final int Widget_AppCompat_Toolbar = 2131886572;
|
||||
public static final int Widget_AppCompat_Toolbar_Button_Navigation = 2131886573;
|
||||
public static final int Widget_Compat_NotificationActionContainer = 2131886574;
|
||||
public static final int Widget_Compat_NotificationActionText = 2131886575;
|
||||
public static final int Widget_Design_AppBarLayout = 2131886576;
|
||||
public static final int Widget_Design_BottomNavigationView = 2131886577;
|
||||
public static final int Widget_Design_BottomSheet_Modal = 2131886578;
|
||||
public static final int Widget_Design_CollapsingToolbar = 2131886579;
|
||||
public static final int Widget_Design_FloatingActionButton = 2131886580;
|
||||
public static final int Widget_Design_NavigationView = 2131886581;
|
||||
public static final int Widget_Design_ScrimInsetsFrameLayout = 2131886582;
|
||||
public static final int Widget_Design_Snackbar = 2131886583;
|
||||
public static final int Widget_Design_TabLayout = 2131886584;
|
||||
public static final int Widget_Design_TextInputLayout = 2131886585;
|
||||
public static final int Widget_MaterialComponents_BottomAppBar = 2131886586;
|
||||
public static final int Widget_MaterialComponents_BottomAppBar_Colored = 2131886587;
|
||||
public static final int Widget_MaterialComponents_BottomNavigationView = 2131886588;
|
||||
public static final int Widget_MaterialComponents_BottomNavigationView_Colored = 2131886589;
|
||||
public static final int Widget_MaterialComponents_BottomSheet_Modal = 2131886590;
|
||||
public static final int Widget_MaterialComponents_Button = 2131886591;
|
||||
public static final int Widget_MaterialComponents_Button_Icon = 2131886592;
|
||||
public static final int Widget_MaterialComponents_Button_OutlinedButton = 2131886593;
|
||||
public static final int Widget_MaterialComponents_Button_OutlinedButton_Icon = 2131886594;
|
||||
public static final int Widget_MaterialComponents_Button_TextButton = 2131886595;
|
||||
public static final int Widget_MaterialComponents_Button_TextButton_Dialog = 2131886596;
|
||||
public static final int Widget_MaterialComponents_Button_TextButton_Dialog_Icon = 2131886597;
|
||||
public static final int Widget_MaterialComponents_Button_TextButton_Icon = 2131886598;
|
||||
public static final int Widget_MaterialComponents_Button_UnelevatedButton = 2131886599;
|
||||
public static final int Widget_MaterialComponents_Button_UnelevatedButton_Icon = 2131886600;
|
||||
public static final int Widget_MaterialComponents_CardView = 2131886601;
|
||||
public static final int Widget_MaterialComponents_ChipGroup = 2131886606;
|
||||
public static final int Widget_MaterialComponents_Chip_Action = 2131886602;
|
||||
public static final int Widget_MaterialComponents_Chip_Choice = 2131886603;
|
||||
public static final int Widget_MaterialComponents_Chip_Entry = 2131886604;
|
||||
public static final int Widget_MaterialComponents_Chip_Filter = 2131886605;
|
||||
public static final int Widget_MaterialComponents_FloatingActionButton = 2131886607;
|
||||
public static final int Widget_MaterialComponents_NavigationView = 2131886608;
|
||||
public static final int Widget_MaterialComponents_Snackbar = 2131886609;
|
||||
public static final int Widget_MaterialComponents_Snackbar_FullWidth = 2131886610;
|
||||
public static final int Widget_MaterialComponents_TabLayout = 2131886611;
|
||||
public static final int Widget_MaterialComponents_TabLayout_Colored = 2131886612;
|
||||
public static final int Widget_MaterialComponents_TextInputEditText_FilledBox = 2131886613;
|
||||
public static final int Widget_MaterialComponents_TextInputEditText_FilledBox_Dense = 2131886614;
|
||||
public static final int Widget_MaterialComponents_TextInputEditText_OutlinedBox = 2131886615;
|
||||
public static final int Widget_MaterialComponents_TextInputEditText_OutlinedBox_Dense = 2131886616;
|
||||
public static final int Widget_MaterialComponents_TextInputLayout_FilledBox = 2131886617;
|
||||
public static final int Widget_MaterialComponents_TextInputLayout_FilledBox_Dense = 2131886618;
|
||||
public static final int Widget_MaterialComponents_TextInputLayout_OutlinedBox = 2131886619;
|
||||
public static final int Widget_MaterialComponents_TextInputLayout_OutlinedBox_Dense = 2131886620;
|
||||
public static final int Widget_MaterialComponents_Toolbar = 2131886621;
|
||||
public static final int Widget_Support_CoordinatorLayout = 2131886622;
|
||||
}
|
||||
717
sources/com/google/android/material/R$styleable.java
Normal file
717
sources/com/google/android/material/R$styleable.java
Normal file
@@ -0,0 +1,717 @@
|
||||
package com.google.android.material;
|
||||
|
||||
import com.ubt.jimu.R;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class R$styleable {
|
||||
public static final int ActionBarLayout_android_layout_gravity = 0;
|
||||
public static final int ActionBar_background = 0;
|
||||
public static final int ActionBar_backgroundSplit = 1;
|
||||
public static final int ActionBar_backgroundStacked = 2;
|
||||
public static final int ActionBar_contentInsetEnd = 3;
|
||||
public static final int ActionBar_contentInsetEndWithActions = 4;
|
||||
public static final int ActionBar_contentInsetLeft = 5;
|
||||
public static final int ActionBar_contentInsetRight = 6;
|
||||
public static final int ActionBar_contentInsetStart = 7;
|
||||
public static final int ActionBar_contentInsetStartWithNavigation = 8;
|
||||
public static final int ActionBar_customNavigationLayout = 9;
|
||||
public static final int ActionBar_displayOptions = 10;
|
||||
public static final int ActionBar_divider = 11;
|
||||
public static final int ActionBar_elevation = 12;
|
||||
public static final int ActionBar_height = 13;
|
||||
public static final int ActionBar_hideOnContentScroll = 14;
|
||||
public static final int ActionBar_homeAsUpIndicator = 15;
|
||||
public static final int ActionBar_homeLayout = 16;
|
||||
public static final int ActionBar_icon = 17;
|
||||
public static final int ActionBar_indeterminateProgressStyle = 18;
|
||||
public static final int ActionBar_itemPadding = 19;
|
||||
public static final int ActionBar_logo = 20;
|
||||
public static final int ActionBar_navigationMode = 21;
|
||||
public static final int ActionBar_popupTheme = 22;
|
||||
public static final int ActionBar_progressBarPadding = 23;
|
||||
public static final int ActionBar_progressBarStyle = 24;
|
||||
public static final int ActionBar_subtitle = 25;
|
||||
public static final int ActionBar_subtitleTextStyle = 26;
|
||||
public static final int ActionBar_title = 27;
|
||||
public static final int ActionBar_titleTextStyle = 28;
|
||||
public static final int ActionMenuItemView_android_minWidth = 0;
|
||||
public static final int ActionMode_background = 0;
|
||||
public static final int ActionMode_backgroundSplit = 1;
|
||||
public static final int ActionMode_closeItemLayout = 2;
|
||||
public static final int ActionMode_height = 3;
|
||||
public static final int ActionMode_subtitleTextStyle = 4;
|
||||
public static final int ActionMode_titleTextStyle = 5;
|
||||
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0;
|
||||
public static final int ActivityChooserView_initialActivityCount = 1;
|
||||
public static final int AlertDialog_android_layout = 0;
|
||||
public static final int AlertDialog_buttonIconDimen = 1;
|
||||
public static final int AlertDialog_buttonPanelSideLayout = 2;
|
||||
public static final int AlertDialog_listItemLayout = 3;
|
||||
public static final int AlertDialog_listLayout = 4;
|
||||
public static final int AlertDialog_multiChoiceItemLayout = 5;
|
||||
public static final int AlertDialog_showTitle = 6;
|
||||
public static final int AlertDialog_singleChoiceItemLayout = 7;
|
||||
public static final int AppBarLayoutStates_state_collapsed = 0;
|
||||
public static final int AppBarLayoutStates_state_collapsible = 1;
|
||||
public static final int AppBarLayoutStates_state_liftable = 2;
|
||||
public static final int AppBarLayoutStates_state_lifted = 3;
|
||||
public static final int AppBarLayout_Layout_layout_scrollFlags = 0;
|
||||
public static final int AppBarLayout_Layout_layout_scrollInterpolator = 1;
|
||||
public static final int AppBarLayout_android_background = 0;
|
||||
public static final int AppBarLayout_android_keyboardNavigationCluster = 2;
|
||||
public static final int AppBarLayout_android_touchscreenBlocksFocus = 1;
|
||||
public static final int AppBarLayout_elevation = 3;
|
||||
public static final int AppBarLayout_expanded = 4;
|
||||
public static final int AppBarLayout_liftOnScroll = 5;
|
||||
public static final int AppCompatImageView_android_src = 0;
|
||||
public static final int AppCompatImageView_srcCompat = 1;
|
||||
public static final int AppCompatImageView_tint = 2;
|
||||
public static final int AppCompatImageView_tintMode = 3;
|
||||
public static final int AppCompatSeekBar_android_thumb = 0;
|
||||
public static final int AppCompatSeekBar_tickMark = 1;
|
||||
public static final int AppCompatSeekBar_tickMarkTint = 2;
|
||||
public static final int AppCompatSeekBar_tickMarkTintMode = 3;
|
||||
public static final int AppCompatTextHelper_android_drawableBottom = 2;
|
||||
public static final int AppCompatTextHelper_android_drawableEnd = 6;
|
||||
public static final int AppCompatTextHelper_android_drawableLeft = 3;
|
||||
public static final int AppCompatTextHelper_android_drawableRight = 4;
|
||||
public static final int AppCompatTextHelper_android_drawableStart = 5;
|
||||
public static final int AppCompatTextHelper_android_drawableTop = 1;
|
||||
public static final int AppCompatTextHelper_android_textAppearance = 0;
|
||||
public static final int AppCompatTextView_android_textAppearance = 0;
|
||||
public static final int AppCompatTextView_autoSizeMaxTextSize = 1;
|
||||
public static final int AppCompatTextView_autoSizeMinTextSize = 2;
|
||||
public static final int AppCompatTextView_autoSizePresetSizes = 3;
|
||||
public static final int AppCompatTextView_autoSizeStepGranularity = 4;
|
||||
public static final int AppCompatTextView_autoSizeTextType = 5;
|
||||
public static final int AppCompatTextView_firstBaselineToTopHeight = 6;
|
||||
public static final int AppCompatTextView_fontFamily = 7;
|
||||
public static final int AppCompatTextView_lastBaselineToBottomHeight = 8;
|
||||
public static final int AppCompatTextView_lineHeight = 9;
|
||||
public static final int AppCompatTextView_textAllCaps = 10;
|
||||
public static final int AppCompatTheme_actionBarDivider = 2;
|
||||
public static final int AppCompatTheme_actionBarItemBackground = 3;
|
||||
public static final int AppCompatTheme_actionBarPopupTheme = 4;
|
||||
public static final int AppCompatTheme_actionBarSize = 5;
|
||||
public static final int AppCompatTheme_actionBarSplitStyle = 6;
|
||||
public static final int AppCompatTheme_actionBarStyle = 7;
|
||||
public static final int AppCompatTheme_actionBarTabBarStyle = 8;
|
||||
public static final int AppCompatTheme_actionBarTabStyle = 9;
|
||||
public static final int AppCompatTheme_actionBarTabTextStyle = 10;
|
||||
public static final int AppCompatTheme_actionBarTheme = 11;
|
||||
public static final int AppCompatTheme_actionBarWidgetTheme = 12;
|
||||
public static final int AppCompatTheme_actionButtonStyle = 13;
|
||||
public static final int AppCompatTheme_actionDropDownStyle = 14;
|
||||
public static final int AppCompatTheme_actionMenuTextAppearance = 15;
|
||||
public static final int AppCompatTheme_actionMenuTextColor = 16;
|
||||
public static final int AppCompatTheme_actionModeBackground = 17;
|
||||
public static final int AppCompatTheme_actionModeCloseButtonStyle = 18;
|
||||
public static final int AppCompatTheme_actionModeCloseDrawable = 19;
|
||||
public static final int AppCompatTheme_actionModeCopyDrawable = 20;
|
||||
public static final int AppCompatTheme_actionModeCutDrawable = 21;
|
||||
public static final int AppCompatTheme_actionModeFindDrawable = 22;
|
||||
public static final int AppCompatTheme_actionModePasteDrawable = 23;
|
||||
public static final int AppCompatTheme_actionModePopupWindowStyle = 24;
|
||||
public static final int AppCompatTheme_actionModeSelectAllDrawable = 25;
|
||||
public static final int AppCompatTheme_actionModeShareDrawable = 26;
|
||||
public static final int AppCompatTheme_actionModeSplitBackground = 27;
|
||||
public static final int AppCompatTheme_actionModeStyle = 28;
|
||||
public static final int AppCompatTheme_actionModeWebSearchDrawable = 29;
|
||||
public static final int AppCompatTheme_actionOverflowButtonStyle = 30;
|
||||
public static final int AppCompatTheme_actionOverflowMenuStyle = 31;
|
||||
public static final int AppCompatTheme_activityChooserViewStyle = 32;
|
||||
public static final int AppCompatTheme_alertDialogButtonGroupStyle = 33;
|
||||
public static final int AppCompatTheme_alertDialogCenterButtons = 34;
|
||||
public static final int AppCompatTheme_alertDialogStyle = 35;
|
||||
public static final int AppCompatTheme_alertDialogTheme = 36;
|
||||
public static final int AppCompatTheme_android_windowAnimationStyle = 1;
|
||||
public static final int AppCompatTheme_android_windowIsFloating = 0;
|
||||
public static final int AppCompatTheme_autoCompleteTextViewStyle = 37;
|
||||
public static final int AppCompatTheme_borderlessButtonStyle = 38;
|
||||
public static final int AppCompatTheme_buttonBarButtonStyle = 39;
|
||||
public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 40;
|
||||
public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 41;
|
||||
public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 42;
|
||||
public static final int AppCompatTheme_buttonBarStyle = 43;
|
||||
public static final int AppCompatTheme_buttonStyle = 44;
|
||||
public static final int AppCompatTheme_buttonStyleSmall = 45;
|
||||
public static final int AppCompatTheme_checkboxStyle = 46;
|
||||
public static final int AppCompatTheme_checkedTextViewStyle = 47;
|
||||
public static final int AppCompatTheme_colorAccent = 48;
|
||||
public static final int AppCompatTheme_colorBackgroundFloating = 49;
|
||||
public static final int AppCompatTheme_colorButtonNormal = 50;
|
||||
public static final int AppCompatTheme_colorControlActivated = 51;
|
||||
public static final int AppCompatTheme_colorControlHighlight = 52;
|
||||
public static final int AppCompatTheme_colorControlNormal = 53;
|
||||
public static final int AppCompatTheme_colorError = 54;
|
||||
public static final int AppCompatTheme_colorPrimary = 55;
|
||||
public static final int AppCompatTheme_colorPrimaryDark = 56;
|
||||
public static final int AppCompatTheme_colorSwitchThumbNormal = 57;
|
||||
public static final int AppCompatTheme_controlBackground = 58;
|
||||
public static final int AppCompatTheme_dialogCornerRadius = 59;
|
||||
public static final int AppCompatTheme_dialogPreferredPadding = 60;
|
||||
public static final int AppCompatTheme_dialogTheme = 61;
|
||||
public static final int AppCompatTheme_dividerHorizontal = 62;
|
||||
public static final int AppCompatTheme_dividerVertical = 63;
|
||||
public static final int AppCompatTheme_dropDownListViewStyle = 64;
|
||||
public static final int AppCompatTheme_dropdownListPreferredItemHeight = 65;
|
||||
public static final int AppCompatTheme_editTextBackground = 66;
|
||||
public static final int AppCompatTheme_editTextColor = 67;
|
||||
public static final int AppCompatTheme_editTextStyle = 68;
|
||||
public static final int AppCompatTheme_homeAsUpIndicator = 69;
|
||||
public static final int AppCompatTheme_imageButtonStyle = 70;
|
||||
public static final int AppCompatTheme_listChoiceBackgroundIndicator = 71;
|
||||
public static final int AppCompatTheme_listDividerAlertDialog = 72;
|
||||
public static final int AppCompatTheme_listMenuViewStyle = 73;
|
||||
public static final int AppCompatTheme_listPopupWindowStyle = 74;
|
||||
public static final int AppCompatTheme_listPreferredItemHeight = 75;
|
||||
public static final int AppCompatTheme_listPreferredItemHeightLarge = 76;
|
||||
public static final int AppCompatTheme_listPreferredItemHeightSmall = 77;
|
||||
public static final int AppCompatTheme_listPreferredItemPaddingLeft = 78;
|
||||
public static final int AppCompatTheme_listPreferredItemPaddingRight = 79;
|
||||
public static final int AppCompatTheme_panelBackground = 80;
|
||||
public static final int AppCompatTheme_panelMenuListTheme = 81;
|
||||
public static final int AppCompatTheme_panelMenuListWidth = 82;
|
||||
public static final int AppCompatTheme_popupMenuStyle = 83;
|
||||
public static final int AppCompatTheme_popupWindowStyle = 84;
|
||||
public static final int AppCompatTheme_radioButtonStyle = 85;
|
||||
public static final int AppCompatTheme_ratingBarStyle = 86;
|
||||
public static final int AppCompatTheme_ratingBarStyleIndicator = 87;
|
||||
public static final int AppCompatTheme_ratingBarStyleSmall = 88;
|
||||
public static final int AppCompatTheme_searchViewStyle = 89;
|
||||
public static final int AppCompatTheme_seekBarStyle = 90;
|
||||
public static final int AppCompatTheme_selectableItemBackground = 91;
|
||||
public static final int AppCompatTheme_selectableItemBackgroundBorderless = 92;
|
||||
public static final int AppCompatTheme_spinnerDropDownItemStyle = 93;
|
||||
public static final int AppCompatTheme_spinnerStyle = 94;
|
||||
public static final int AppCompatTheme_switchStyle = 95;
|
||||
public static final int AppCompatTheme_textAppearanceLargePopupMenu = 96;
|
||||
public static final int AppCompatTheme_textAppearanceListItem = 97;
|
||||
public static final int AppCompatTheme_textAppearanceListItemSecondary = 98;
|
||||
public static final int AppCompatTheme_textAppearanceListItemSmall = 99;
|
||||
public static final int AppCompatTheme_textAppearancePopupMenuHeader = 100;
|
||||
public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 101;
|
||||
public static final int AppCompatTheme_textAppearanceSearchResultTitle = 102;
|
||||
public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 103;
|
||||
public static final int AppCompatTheme_textColorAlertDialogListItem = 104;
|
||||
public static final int AppCompatTheme_textColorSearchUrl = 105;
|
||||
public static final int AppCompatTheme_toolbarNavigationButtonStyle = 106;
|
||||
public static final int AppCompatTheme_toolbarStyle = 107;
|
||||
public static final int AppCompatTheme_tooltipForegroundColor = 108;
|
||||
public static final int AppCompatTheme_tooltipFrameBackground = 109;
|
||||
public static final int AppCompatTheme_viewInflaterClass = 110;
|
||||
public static final int AppCompatTheme_windowActionBar = 111;
|
||||
public static final int AppCompatTheme_windowActionBarOverlay = 112;
|
||||
public static final int AppCompatTheme_windowActionModeOverlay = 113;
|
||||
public static final int AppCompatTheme_windowFixedHeightMajor = 114;
|
||||
public static final int AppCompatTheme_windowFixedHeightMinor = 115;
|
||||
public static final int AppCompatTheme_windowFixedWidthMajor = 116;
|
||||
public static final int AppCompatTheme_windowFixedWidthMinor = 117;
|
||||
public static final int AppCompatTheme_windowMinWidthMajor = 118;
|
||||
public static final int AppCompatTheme_windowMinWidthMinor = 119;
|
||||
public static final int AppCompatTheme_windowNoTitle = 120;
|
||||
public static final int BottomAppBar_backgroundTint = 0;
|
||||
public static final int BottomAppBar_fabAlignmentMode = 1;
|
||||
public static final int BottomAppBar_fabCradleMargin = 2;
|
||||
public static final int BottomAppBar_fabCradleRoundedCornerRadius = 3;
|
||||
public static final int BottomAppBar_fabCradleVerticalOffset = 4;
|
||||
public static final int BottomAppBar_hideOnScroll = 5;
|
||||
public static final int BottomNavigationView_elevation = 0;
|
||||
public static final int BottomNavigationView_itemBackground = 1;
|
||||
public static final int BottomNavigationView_itemHorizontalTranslationEnabled = 2;
|
||||
public static final int BottomNavigationView_itemIconSize = 3;
|
||||
public static final int BottomNavigationView_itemIconTint = 4;
|
||||
public static final int BottomNavigationView_itemTextAppearanceActive = 5;
|
||||
public static final int BottomNavigationView_itemTextAppearanceInactive = 6;
|
||||
public static final int BottomNavigationView_itemTextColor = 7;
|
||||
public static final int BottomNavigationView_labelVisibilityMode = 8;
|
||||
public static final int BottomNavigationView_menu = 9;
|
||||
public static final int BottomSheetBehavior_Layout_behavior_fitToContents = 0;
|
||||
public static final int BottomSheetBehavior_Layout_behavior_hideable = 1;
|
||||
public static final int BottomSheetBehavior_Layout_behavior_peekHeight = 2;
|
||||
public static final int BottomSheetBehavior_Layout_behavior_skipCollapsed = 3;
|
||||
public static final int ButtonBarLayout_allowStacking = 0;
|
||||
public static final int CardView_android_minHeight = 1;
|
||||
public static final int CardView_android_minWidth = 0;
|
||||
public static final int CardView_cardBackgroundColor = 2;
|
||||
public static final int CardView_cardCornerRadius = 3;
|
||||
public static final int CardView_cardElevation = 4;
|
||||
public static final int CardView_cardMaxElevation = 5;
|
||||
public static final int CardView_cardPreventCornerOverlap = 6;
|
||||
public static final int CardView_cardUseCompatPadding = 7;
|
||||
public static final int CardView_contentPadding = 8;
|
||||
public static final int CardView_contentPaddingBottom = 9;
|
||||
public static final int CardView_contentPaddingLeft = 10;
|
||||
public static final int CardView_contentPaddingRight = 11;
|
||||
public static final int CardView_contentPaddingTop = 12;
|
||||
public static final int ChipGroup_checkedChip = 0;
|
||||
public static final int ChipGroup_chipSpacing = 1;
|
||||
public static final int ChipGroup_chipSpacingHorizontal = 2;
|
||||
public static final int ChipGroup_chipSpacingVertical = 3;
|
||||
public static final int ChipGroup_singleLine = 4;
|
||||
public static final int ChipGroup_singleSelection = 5;
|
||||
public static final int Chip_android_checkable = 4;
|
||||
public static final int Chip_android_ellipsize = 1;
|
||||
public static final int Chip_android_maxWidth = 2;
|
||||
public static final int Chip_android_text = 3;
|
||||
public static final int Chip_android_textAppearance = 0;
|
||||
public static final int Chip_checkedIcon = 5;
|
||||
public static final int Chip_checkedIconEnabled = 6;
|
||||
public static final int Chip_checkedIconVisible = 7;
|
||||
public static final int Chip_chipBackgroundColor = 8;
|
||||
public static final int Chip_chipCornerRadius = 9;
|
||||
public static final int Chip_chipEndPadding = 10;
|
||||
public static final int Chip_chipIcon = 11;
|
||||
public static final int Chip_chipIconEnabled = 12;
|
||||
public static final int Chip_chipIconSize = 13;
|
||||
public static final int Chip_chipIconTint = 14;
|
||||
public static final int Chip_chipIconVisible = 15;
|
||||
public static final int Chip_chipMinHeight = 16;
|
||||
public static final int Chip_chipStartPadding = 17;
|
||||
public static final int Chip_chipStrokeColor = 18;
|
||||
public static final int Chip_chipStrokeWidth = 19;
|
||||
public static final int Chip_closeIcon = 20;
|
||||
public static final int Chip_closeIconEnabled = 21;
|
||||
public static final int Chip_closeIconEndPadding = 22;
|
||||
public static final int Chip_closeIconSize = 23;
|
||||
public static final int Chip_closeIconStartPadding = 24;
|
||||
public static final int Chip_closeIconTint = 25;
|
||||
public static final int Chip_closeIconVisible = 26;
|
||||
public static final int Chip_hideMotionSpec = 27;
|
||||
public static final int Chip_iconEndPadding = 28;
|
||||
public static final int Chip_iconStartPadding = 29;
|
||||
public static final int Chip_rippleColor = 30;
|
||||
public static final int Chip_showMotionSpec = 31;
|
||||
public static final int Chip_textEndPadding = 32;
|
||||
public static final int Chip_textStartPadding = 33;
|
||||
public static final int CollapsingToolbarLayout_Layout_layout_collapseMode = 0;
|
||||
public static final int CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier = 1;
|
||||
public static final int CollapsingToolbarLayout_collapsedTitleGravity = 0;
|
||||
public static final int CollapsingToolbarLayout_collapsedTitleTextAppearance = 1;
|
||||
public static final int CollapsingToolbarLayout_contentScrim = 2;
|
||||
public static final int CollapsingToolbarLayout_expandedTitleGravity = 3;
|
||||
public static final int CollapsingToolbarLayout_expandedTitleMargin = 4;
|
||||
public static final int CollapsingToolbarLayout_expandedTitleMarginBottom = 5;
|
||||
public static final int CollapsingToolbarLayout_expandedTitleMarginEnd = 6;
|
||||
public static final int CollapsingToolbarLayout_expandedTitleMarginStart = 7;
|
||||
public static final int CollapsingToolbarLayout_expandedTitleMarginTop = 8;
|
||||
public static final int CollapsingToolbarLayout_expandedTitleTextAppearance = 9;
|
||||
public static final int CollapsingToolbarLayout_scrimAnimationDuration = 10;
|
||||
public static final int CollapsingToolbarLayout_scrimVisibleHeightTrigger = 11;
|
||||
public static final int CollapsingToolbarLayout_statusBarScrim = 12;
|
||||
public static final int CollapsingToolbarLayout_title = 13;
|
||||
public static final int CollapsingToolbarLayout_titleEnabled = 14;
|
||||
public static final int CollapsingToolbarLayout_toolbarId = 15;
|
||||
public static final int ColorStateListItem_alpha = 2;
|
||||
public static final int ColorStateListItem_android_alpha = 1;
|
||||
public static final int ColorStateListItem_android_color = 0;
|
||||
public static final int CompoundButton_android_button = 0;
|
||||
public static final int CompoundButton_buttonTint = 1;
|
||||
public static final int CompoundButton_buttonTintMode = 2;
|
||||
public static final int CoordinatorLayout_Layout_android_layout_gravity = 0;
|
||||
public static final int CoordinatorLayout_Layout_layout_anchor = 1;
|
||||
public static final int CoordinatorLayout_Layout_layout_anchorGravity = 2;
|
||||
public static final int CoordinatorLayout_Layout_layout_behavior = 3;
|
||||
public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4;
|
||||
public static final int CoordinatorLayout_Layout_layout_insetEdge = 5;
|
||||
public static final int CoordinatorLayout_Layout_layout_keyline = 6;
|
||||
public static final int CoordinatorLayout_keylines = 0;
|
||||
public static final int CoordinatorLayout_statusBarBackground = 1;
|
||||
public static final int DesignTheme_bottomSheetDialogTheme = 0;
|
||||
public static final int DesignTheme_bottomSheetStyle = 1;
|
||||
public static final int DrawerArrowToggle_arrowHeadLength = 0;
|
||||
public static final int DrawerArrowToggle_arrowShaftLength = 1;
|
||||
public static final int DrawerArrowToggle_barLength = 2;
|
||||
public static final int DrawerArrowToggle_color = 3;
|
||||
public static final int DrawerArrowToggle_drawableSize = 4;
|
||||
public static final int DrawerArrowToggle_gapBetweenBars = 5;
|
||||
public static final int DrawerArrowToggle_spinBars = 6;
|
||||
public static final int DrawerArrowToggle_thickness = 7;
|
||||
public static final int FloatingActionButton_Behavior_Layout_behavior_autoHide = 0;
|
||||
public static final int FloatingActionButton_backgroundTint = 0;
|
||||
public static final int FloatingActionButton_backgroundTintMode = 1;
|
||||
public static final int FloatingActionButton_borderWidth = 2;
|
||||
public static final int FloatingActionButton_elevation = 3;
|
||||
public static final int FloatingActionButton_fabCustomSize = 4;
|
||||
public static final int FloatingActionButton_fabSize = 5;
|
||||
public static final int FloatingActionButton_hideMotionSpec = 6;
|
||||
public static final int FloatingActionButton_hoveredFocusedTranslationZ = 7;
|
||||
public static final int FloatingActionButton_maxImageSize = 8;
|
||||
public static final int FloatingActionButton_pressedTranslationZ = 9;
|
||||
public static final int FloatingActionButton_rippleColor = 10;
|
||||
public static final int FloatingActionButton_showMotionSpec = 11;
|
||||
public static final int FloatingActionButton_useCompatPadding = 12;
|
||||
public static final int FlowLayout_itemSpacing = 0;
|
||||
public static final int FlowLayout_lineSpacing = 1;
|
||||
public static final int FontFamilyFont_android_font = 0;
|
||||
public static final int FontFamilyFont_android_fontStyle = 2;
|
||||
public static final int FontFamilyFont_android_fontVariationSettings = 4;
|
||||
public static final int FontFamilyFont_android_fontWeight = 1;
|
||||
public static final int FontFamilyFont_android_ttcIndex = 3;
|
||||
public static final int FontFamilyFont_font = 5;
|
||||
public static final int FontFamilyFont_fontStyle = 6;
|
||||
public static final int FontFamilyFont_fontVariationSettings = 7;
|
||||
public static final int FontFamilyFont_fontWeight = 8;
|
||||
public static final int FontFamilyFont_ttcIndex = 9;
|
||||
public static final int FontFamily_fontProviderAuthority = 0;
|
||||
public static final int FontFamily_fontProviderCerts = 1;
|
||||
public static final int FontFamily_fontProviderFetchStrategy = 2;
|
||||
public static final int FontFamily_fontProviderFetchTimeout = 3;
|
||||
public static final int FontFamily_fontProviderPackage = 4;
|
||||
public static final int FontFamily_fontProviderQuery = 5;
|
||||
public static final int ForegroundLinearLayout_android_foreground = 0;
|
||||
public static final int ForegroundLinearLayout_android_foregroundGravity = 1;
|
||||
public static final int ForegroundLinearLayout_foregroundInsidePadding = 2;
|
||||
public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
|
||||
public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
|
||||
public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
|
||||
public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
|
||||
public static final int LinearLayoutCompat_android_baselineAligned = 2;
|
||||
public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
|
||||
public static final int LinearLayoutCompat_android_gravity = 0;
|
||||
public static final int LinearLayoutCompat_android_orientation = 1;
|
||||
public static final int LinearLayoutCompat_android_weightSum = 4;
|
||||
public static final int LinearLayoutCompat_divider = 5;
|
||||
public static final int LinearLayoutCompat_dividerPadding = 6;
|
||||
public static final int LinearLayoutCompat_measureWithLargestChild = 7;
|
||||
public static final int LinearLayoutCompat_showDividers = 8;
|
||||
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
|
||||
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
|
||||
public static final int MaterialButton_android_insetBottom = 3;
|
||||
public static final int MaterialButton_android_insetLeft = 0;
|
||||
public static final int MaterialButton_android_insetRight = 1;
|
||||
public static final int MaterialButton_android_insetTop = 2;
|
||||
public static final int MaterialButton_backgroundTint = 4;
|
||||
public static final int MaterialButton_backgroundTintMode = 5;
|
||||
public static final int MaterialButton_cornerRadius = 6;
|
||||
public static final int MaterialButton_icon = 7;
|
||||
public static final int MaterialButton_iconGravity = 8;
|
||||
public static final int MaterialButton_iconPadding = 9;
|
||||
public static final int MaterialButton_iconSize = 10;
|
||||
public static final int MaterialButton_iconTint = 11;
|
||||
public static final int MaterialButton_iconTintMode = 12;
|
||||
public static final int MaterialButton_rippleColor = 13;
|
||||
public static final int MaterialButton_strokeColor = 14;
|
||||
public static final int MaterialButton_strokeWidth = 15;
|
||||
public static final int MaterialCardView_strokeColor = 0;
|
||||
public static final int MaterialCardView_strokeWidth = 1;
|
||||
public static final int MaterialComponentsTheme_bottomSheetDialogTheme = 0;
|
||||
public static final int MaterialComponentsTheme_bottomSheetStyle = 1;
|
||||
public static final int MaterialComponentsTheme_chipGroupStyle = 2;
|
||||
public static final int MaterialComponentsTheme_chipStandaloneStyle = 3;
|
||||
public static final int MaterialComponentsTheme_chipStyle = 4;
|
||||
public static final int MaterialComponentsTheme_colorAccent = 5;
|
||||
public static final int MaterialComponentsTheme_colorBackgroundFloating = 6;
|
||||
public static final int MaterialComponentsTheme_colorPrimary = 7;
|
||||
public static final int MaterialComponentsTheme_colorPrimaryDark = 8;
|
||||
public static final int MaterialComponentsTheme_colorSecondary = 9;
|
||||
public static final int MaterialComponentsTheme_editTextStyle = 10;
|
||||
public static final int MaterialComponentsTheme_floatingActionButtonStyle = 11;
|
||||
public static final int MaterialComponentsTheme_materialButtonStyle = 12;
|
||||
public static final int MaterialComponentsTheme_materialCardViewStyle = 13;
|
||||
public static final int MaterialComponentsTheme_navigationViewStyle = 14;
|
||||
public static final int MaterialComponentsTheme_scrimBackground = 15;
|
||||
public static final int MaterialComponentsTheme_snackbarButtonStyle = 16;
|
||||
public static final int MaterialComponentsTheme_tabStyle = 17;
|
||||
public static final int MaterialComponentsTheme_textAppearanceBody1 = 18;
|
||||
public static final int MaterialComponentsTheme_textAppearanceBody2 = 19;
|
||||
public static final int MaterialComponentsTheme_textAppearanceButton = 20;
|
||||
public static final int MaterialComponentsTheme_textAppearanceCaption = 21;
|
||||
public static final int MaterialComponentsTheme_textAppearanceHeadline1 = 22;
|
||||
public static final int MaterialComponentsTheme_textAppearanceHeadline2 = 23;
|
||||
public static final int MaterialComponentsTheme_textAppearanceHeadline3 = 24;
|
||||
public static final int MaterialComponentsTheme_textAppearanceHeadline4 = 25;
|
||||
public static final int MaterialComponentsTheme_textAppearanceHeadline5 = 26;
|
||||
public static final int MaterialComponentsTheme_textAppearanceHeadline6 = 27;
|
||||
public static final int MaterialComponentsTheme_textAppearanceOverline = 28;
|
||||
public static final int MaterialComponentsTheme_textAppearanceSubtitle1 = 29;
|
||||
public static final int MaterialComponentsTheme_textAppearanceSubtitle2 = 30;
|
||||
public static final int MaterialComponentsTheme_textInputStyle = 31;
|
||||
public static final int MenuGroup_android_checkableBehavior = 5;
|
||||
public static final int MenuGroup_android_enabled = 0;
|
||||
public static final int MenuGroup_android_id = 1;
|
||||
public static final int MenuGroup_android_menuCategory = 3;
|
||||
public static final int MenuGroup_android_orderInCategory = 4;
|
||||
public static final int MenuGroup_android_visible = 2;
|
||||
public static final int MenuItem_actionLayout = 13;
|
||||
public static final int MenuItem_actionProviderClass = 14;
|
||||
public static final int MenuItem_actionViewClass = 15;
|
||||
public static final int MenuItem_alphabeticModifiers = 16;
|
||||
public static final int MenuItem_android_alphabeticShortcut = 9;
|
||||
public static final int MenuItem_android_checkable = 11;
|
||||
public static final int MenuItem_android_checked = 3;
|
||||
public static final int MenuItem_android_enabled = 1;
|
||||
public static final int MenuItem_android_icon = 0;
|
||||
public static final int MenuItem_android_id = 2;
|
||||
public static final int MenuItem_android_menuCategory = 5;
|
||||
public static final int MenuItem_android_numericShortcut = 10;
|
||||
public static final int MenuItem_android_onClick = 12;
|
||||
public static final int MenuItem_android_orderInCategory = 6;
|
||||
public static final int MenuItem_android_title = 7;
|
||||
public static final int MenuItem_android_titleCondensed = 8;
|
||||
public static final int MenuItem_android_visible = 4;
|
||||
public static final int MenuItem_contentDescription = 17;
|
||||
public static final int MenuItem_iconTint = 18;
|
||||
public static final int MenuItem_iconTintMode = 19;
|
||||
public static final int MenuItem_numericModifiers = 20;
|
||||
public static final int MenuItem_showAsAction = 21;
|
||||
public static final int MenuItem_tooltipText = 22;
|
||||
public static final int MenuView_android_headerBackground = 4;
|
||||
public static final int MenuView_android_horizontalDivider = 2;
|
||||
public static final int MenuView_android_itemBackground = 5;
|
||||
public static final int MenuView_android_itemIconDisabledAlpha = 6;
|
||||
public static final int MenuView_android_itemTextAppearance = 1;
|
||||
public static final int MenuView_android_verticalDivider = 3;
|
||||
public static final int MenuView_android_windowAnimationStyle = 0;
|
||||
public static final int MenuView_preserveIconSpacing = 7;
|
||||
public static final int MenuView_subMenuArrow = 8;
|
||||
public static final int NavigationView_android_background = 0;
|
||||
public static final int NavigationView_android_fitsSystemWindows = 1;
|
||||
public static final int NavigationView_android_maxWidth = 2;
|
||||
public static final int NavigationView_elevation = 3;
|
||||
public static final int NavigationView_headerLayout = 4;
|
||||
public static final int NavigationView_itemBackground = 5;
|
||||
public static final int NavigationView_itemHorizontalPadding = 6;
|
||||
public static final int NavigationView_itemIconPadding = 7;
|
||||
public static final int NavigationView_itemIconTint = 8;
|
||||
public static final int NavigationView_itemTextAppearance = 9;
|
||||
public static final int NavigationView_itemTextColor = 10;
|
||||
public static final int NavigationView_menu = 11;
|
||||
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
|
||||
public static final int PopupWindow_android_popupAnimationStyle = 1;
|
||||
public static final int PopupWindow_android_popupBackground = 0;
|
||||
public static final int PopupWindow_overlapAnchor = 2;
|
||||
public static final int RecycleListView_paddingBottomNoButtons = 0;
|
||||
public static final int RecycleListView_paddingTopNoTitle = 1;
|
||||
public static final int RecyclerView_android_descendantFocusability = 1;
|
||||
public static final int RecyclerView_android_orientation = 0;
|
||||
public static final int RecyclerView_fastScrollEnabled = 2;
|
||||
public static final int RecyclerView_fastScrollHorizontalThumbDrawable = 3;
|
||||
public static final int RecyclerView_fastScrollHorizontalTrackDrawable = 4;
|
||||
public static final int RecyclerView_fastScrollVerticalThumbDrawable = 5;
|
||||
public static final int RecyclerView_fastScrollVerticalTrackDrawable = 6;
|
||||
public static final int RecyclerView_layoutManager = 7;
|
||||
public static final int RecyclerView_reverseLayout = 8;
|
||||
public static final int RecyclerView_spanCount = 9;
|
||||
public static final int RecyclerView_stackFromEnd = 10;
|
||||
public static final int ScrimInsetsFrameLayout_insetForeground = 0;
|
||||
public static final int ScrollingViewBehavior_Layout_behavior_overlapTop = 0;
|
||||
public static final int SearchView_android_focusable = 0;
|
||||
public static final int SearchView_android_imeOptions = 3;
|
||||
public static final int SearchView_android_inputType = 2;
|
||||
public static final int SearchView_android_maxWidth = 1;
|
||||
public static final int SearchView_closeIcon = 4;
|
||||
public static final int SearchView_commitIcon = 5;
|
||||
public static final int SearchView_defaultQueryHint = 6;
|
||||
public static final int SearchView_goIcon = 7;
|
||||
public static final int SearchView_iconifiedByDefault = 8;
|
||||
public static final int SearchView_layout = 9;
|
||||
public static final int SearchView_queryBackground = 10;
|
||||
public static final int SearchView_queryHint = 11;
|
||||
public static final int SearchView_searchHintIcon = 12;
|
||||
public static final int SearchView_searchIcon = 13;
|
||||
public static final int SearchView_submitBackground = 14;
|
||||
public static final int SearchView_suggestionRowLayout = 15;
|
||||
public static final int SearchView_voiceIcon = 16;
|
||||
public static final int SnackbarLayout_android_maxWidth = 0;
|
||||
public static final int SnackbarLayout_elevation = 1;
|
||||
public static final int SnackbarLayout_maxActionInlineWidth = 2;
|
||||
public static final int Snackbar_snackbarButtonStyle = 0;
|
||||
public static final int Snackbar_snackbarStyle = 1;
|
||||
public static final int Spinner_android_dropDownWidth = 3;
|
||||
public static final int Spinner_android_entries = 0;
|
||||
public static final int Spinner_android_popupBackground = 1;
|
||||
public static final int Spinner_android_prompt = 2;
|
||||
public static final int Spinner_popupTheme = 4;
|
||||
public static final int SwitchCompat_android_textOff = 1;
|
||||
public static final int SwitchCompat_android_textOn = 0;
|
||||
public static final int SwitchCompat_android_thumb = 2;
|
||||
public static final int SwitchCompat_showText = 3;
|
||||
public static final int SwitchCompat_splitTrack = 4;
|
||||
public static final int SwitchCompat_switchMinWidth = 5;
|
||||
public static final int SwitchCompat_switchPadding = 6;
|
||||
public static final int SwitchCompat_switchTextAppearance = 7;
|
||||
public static final int SwitchCompat_thumbTextPadding = 8;
|
||||
public static final int SwitchCompat_thumbTint = 9;
|
||||
public static final int SwitchCompat_thumbTintMode = 10;
|
||||
public static final int SwitchCompat_track = 11;
|
||||
public static final int SwitchCompat_trackTint = 12;
|
||||
public static final int SwitchCompat_trackTintMode = 13;
|
||||
public static final int TabItem_android_icon = 0;
|
||||
public static final int TabItem_android_layout = 1;
|
||||
public static final int TabItem_android_text = 2;
|
||||
public static final int TabLayout_tabBackground = 0;
|
||||
public static final int TabLayout_tabContentStart = 1;
|
||||
public static final int TabLayout_tabGravity = 2;
|
||||
public static final int TabLayout_tabIconTint = 3;
|
||||
public static final int TabLayout_tabIconTintMode = 4;
|
||||
public static final int TabLayout_tabIndicator = 5;
|
||||
public static final int TabLayout_tabIndicatorAnimationDuration = 6;
|
||||
public static final int TabLayout_tabIndicatorColor = 7;
|
||||
public static final int TabLayout_tabIndicatorFullWidth = 8;
|
||||
public static final int TabLayout_tabIndicatorGravity = 9;
|
||||
public static final int TabLayout_tabIndicatorHeight = 10;
|
||||
public static final int TabLayout_tabInlineLabel = 11;
|
||||
public static final int TabLayout_tabMaxWidth = 12;
|
||||
public static final int TabLayout_tabMinWidth = 13;
|
||||
public static final int TabLayout_tabMode = 14;
|
||||
public static final int TabLayout_tabPadding = 15;
|
||||
public static final int TabLayout_tabPaddingBottom = 16;
|
||||
public static final int TabLayout_tabPaddingEnd = 17;
|
||||
public static final int TabLayout_tabPaddingStart = 18;
|
||||
public static final int TabLayout_tabPaddingTop = 19;
|
||||
public static final int TabLayout_tabRippleColor = 20;
|
||||
public static final int TabLayout_tabSelectedTextColor = 21;
|
||||
public static final int TabLayout_tabTextAppearance = 22;
|
||||
public static final int TabLayout_tabTextColor = 23;
|
||||
public static final int TabLayout_tabUnboundedRipple = 24;
|
||||
public static final int TextAppearance_android_fontFamily = 10;
|
||||
public static final int TextAppearance_android_shadowColor = 6;
|
||||
public static final int TextAppearance_android_shadowDx = 7;
|
||||
public static final int TextAppearance_android_shadowDy = 8;
|
||||
public static final int TextAppearance_android_shadowRadius = 9;
|
||||
public static final int TextAppearance_android_textColor = 3;
|
||||
public static final int TextAppearance_android_textColorHint = 4;
|
||||
public static final int TextAppearance_android_textColorLink = 5;
|
||||
public static final int TextAppearance_android_textSize = 0;
|
||||
public static final int TextAppearance_android_textStyle = 2;
|
||||
public static final int TextAppearance_android_typeface = 1;
|
||||
public static final int TextAppearance_fontFamily = 11;
|
||||
public static final int TextAppearance_textAllCaps = 12;
|
||||
public static final int TextInputLayout_android_hint = 1;
|
||||
public static final int TextInputLayout_android_textColorHint = 0;
|
||||
public static final int TextInputLayout_boxBackgroundColor = 2;
|
||||
public static final int TextInputLayout_boxBackgroundMode = 3;
|
||||
public static final int TextInputLayout_boxCollapsedPaddingTop = 4;
|
||||
public static final int TextInputLayout_boxCornerRadiusBottomEnd = 5;
|
||||
public static final int TextInputLayout_boxCornerRadiusBottomStart = 6;
|
||||
public static final int TextInputLayout_boxCornerRadiusTopEnd = 7;
|
||||
public static final int TextInputLayout_boxCornerRadiusTopStart = 8;
|
||||
public static final int TextInputLayout_boxStrokeColor = 9;
|
||||
public static final int TextInputLayout_boxStrokeWidth = 10;
|
||||
public static final int TextInputLayout_counterEnabled = 11;
|
||||
public static final int TextInputLayout_counterMaxLength = 12;
|
||||
public static final int TextInputLayout_counterOverflowTextAppearance = 13;
|
||||
public static final int TextInputLayout_counterTextAppearance = 14;
|
||||
public static final int TextInputLayout_errorEnabled = 15;
|
||||
public static final int TextInputLayout_errorTextAppearance = 16;
|
||||
public static final int TextInputLayout_helperText = 17;
|
||||
public static final int TextInputLayout_helperTextEnabled = 18;
|
||||
public static final int TextInputLayout_helperTextTextAppearance = 19;
|
||||
public static final int TextInputLayout_hintAnimationEnabled = 20;
|
||||
public static final int TextInputLayout_hintEnabled = 21;
|
||||
public static final int TextInputLayout_hintTextAppearance = 22;
|
||||
public static final int TextInputLayout_passwordToggleContentDescription = 23;
|
||||
public static final int TextInputLayout_passwordToggleDrawable = 24;
|
||||
public static final int TextInputLayout_passwordToggleEnabled = 25;
|
||||
public static final int TextInputLayout_passwordToggleTint = 26;
|
||||
public static final int TextInputLayout_passwordToggleTintMode = 27;
|
||||
public static final int ThemeEnforcement_android_textAppearance = 0;
|
||||
public static final int ThemeEnforcement_enforceMaterialTheme = 1;
|
||||
public static final int ThemeEnforcement_enforceTextAppearance = 2;
|
||||
public static final int Toolbar_android_gravity = 0;
|
||||
public static final int Toolbar_android_minHeight = 1;
|
||||
public static final int Toolbar_buttonGravity = 2;
|
||||
public static final int Toolbar_collapseContentDescription = 3;
|
||||
public static final int Toolbar_collapseIcon = 4;
|
||||
public static final int Toolbar_contentInsetEnd = 5;
|
||||
public static final int Toolbar_contentInsetEndWithActions = 6;
|
||||
public static final int Toolbar_contentInsetLeft = 7;
|
||||
public static final int Toolbar_contentInsetRight = 8;
|
||||
public static final int Toolbar_contentInsetStart = 9;
|
||||
public static final int Toolbar_contentInsetStartWithNavigation = 10;
|
||||
public static final int Toolbar_logo = 11;
|
||||
public static final int Toolbar_logoDescription = 12;
|
||||
public static final int Toolbar_maxButtonHeight = 13;
|
||||
public static final int Toolbar_navigationContentDescription = 14;
|
||||
public static final int Toolbar_navigationIcon = 15;
|
||||
public static final int Toolbar_popupTheme = 16;
|
||||
public static final int Toolbar_subtitle = 17;
|
||||
public static final int Toolbar_subtitleTextAppearance = 18;
|
||||
public static final int Toolbar_subtitleTextColor = 19;
|
||||
public static final int Toolbar_title = 20;
|
||||
public static final int Toolbar_titleMargin = 21;
|
||||
public static final int Toolbar_titleMarginBottom = 22;
|
||||
public static final int Toolbar_titleMarginEnd = 23;
|
||||
public static final int Toolbar_titleMarginStart = 24;
|
||||
public static final int Toolbar_titleMarginTop = 25;
|
||||
public static final int Toolbar_titleMargins = 26;
|
||||
public static final int Toolbar_titleTextAppearance = 27;
|
||||
public static final int Toolbar_titleTextColor = 28;
|
||||
public static final int ViewBackgroundHelper_android_background = 0;
|
||||
public static final int ViewBackgroundHelper_backgroundTint = 1;
|
||||
public static final int ViewBackgroundHelper_backgroundTintMode = 2;
|
||||
public static final int ViewStubCompat_android_id = 0;
|
||||
public static final int ViewStubCompat_android_inflatedId = 2;
|
||||
public static final int ViewStubCompat_android_layout = 1;
|
||||
public static final int View_android_focusable = 1;
|
||||
public static final int View_android_theme = 0;
|
||||
public static final int View_paddingEnd = 2;
|
||||
public static final int View_paddingStart = 3;
|
||||
public static final int View_theme = 4;
|
||||
public static final int[] ActionBar = {R.attr.background, R.attr.backgroundSplit, R.attr.backgroundStacked, R.attr.contentInsetEnd, R.attr.contentInsetEndWithActions, R.attr.contentInsetLeft, R.attr.contentInsetRight, R.attr.contentInsetStart, R.attr.contentInsetStartWithNavigation, R.attr.customNavigationLayout, R.attr.displayOptions, R.attr.divider, R.attr.elevation, R.attr.height, R.attr.hideOnContentScroll, R.attr.homeAsUpIndicator, R.attr.homeLayout, R.attr.icon, R.attr.indeterminateProgressStyle, R.attr.itemPadding, R.attr.logo, R.attr.navigationMode, R.attr.popupTheme, R.attr.progressBarPadding, R.attr.progressBarStyle, R.attr.subtitle, R.attr.subtitleTextStyle, R.attr.title, R.attr.titleTextStyle};
|
||||
public static final int[] ActionBarLayout = {android.R.attr.layout_gravity};
|
||||
public static final int[] ActionMenuItemView = {android.R.attr.minWidth};
|
||||
public static final int[] ActionMode = {R.attr.background, R.attr.backgroundSplit, R.attr.closeItemLayout, R.attr.height, R.attr.subtitleTextStyle, R.attr.titleTextStyle};
|
||||
public static final int[] ActivityChooserView = {R.attr.expandActivityOverflowButtonDrawable, R.attr.initialActivityCount};
|
||||
public static final int[] AlertDialog = {android.R.attr.layout, R.attr.buttonIconDimen, R.attr.buttonPanelSideLayout, R.attr.listItemLayout, R.attr.listLayout, R.attr.multiChoiceItemLayout, R.attr.showTitle, R.attr.singleChoiceItemLayout};
|
||||
public static final int[] AppBarLayout = {android.R.attr.background, android.R.attr.touchscreenBlocksFocus, android.R.attr.keyboardNavigationCluster, R.attr.elevation, R.attr.expanded, R.attr.liftOnScroll};
|
||||
public static final int[] AppBarLayoutStates = {R.attr.state_collapsed, R.attr.state_collapsible, R.attr.state_liftable, R.attr.state_lifted};
|
||||
public static final int[] AppBarLayout_Layout = {R.attr.layout_scrollFlags, R.attr.layout_scrollInterpolator};
|
||||
public static final int[] AppCompatImageView = {android.R.attr.src, R.attr.srcCompat, R.attr.tint, R.attr.tintMode};
|
||||
public static final int[] AppCompatSeekBar = {android.R.attr.thumb, R.attr.tickMark, R.attr.tickMarkTint, R.attr.tickMarkTintMode};
|
||||
public static final int[] AppCompatTextHelper = {android.R.attr.textAppearance, android.R.attr.drawableTop, android.R.attr.drawableBottom, android.R.attr.drawableLeft, android.R.attr.drawableRight, android.R.attr.drawableStart, android.R.attr.drawableEnd};
|
||||
public static final int[] AppCompatTextView = {android.R.attr.textAppearance, R.attr.autoSizeMaxTextSize, R.attr.autoSizeMinTextSize, R.attr.autoSizePresetSizes, R.attr.autoSizeStepGranularity, R.attr.autoSizeTextType, R.attr.firstBaselineToTopHeight, R.attr.fontFamily, R.attr.lastBaselineToBottomHeight, R.attr.lineHeight, R.attr.textAllCaps};
|
||||
public static final int[] AppCompatTheme = {android.R.attr.windowIsFloating, android.R.attr.windowAnimationStyle, R.attr.actionBarDivider, R.attr.actionBarItemBackground, R.attr.actionBarPopupTheme, R.attr.actionBarSize, R.attr.actionBarSplitStyle, R.attr.actionBarStyle, R.attr.actionBarTabBarStyle, R.attr.actionBarTabStyle, R.attr.actionBarTabTextStyle, R.attr.actionBarTheme, R.attr.actionBarWidgetTheme, R.attr.actionButtonStyle, R.attr.actionDropDownStyle, R.attr.actionMenuTextAppearance, R.attr.actionMenuTextColor, R.attr.actionModeBackground, R.attr.actionModeCloseButtonStyle, R.attr.actionModeCloseDrawable, R.attr.actionModeCopyDrawable, R.attr.actionModeCutDrawable, R.attr.actionModeFindDrawable, R.attr.actionModePasteDrawable, R.attr.actionModePopupWindowStyle, R.attr.actionModeSelectAllDrawable, R.attr.actionModeShareDrawable, R.attr.actionModeSplitBackground, R.attr.actionModeStyle, R.attr.actionModeWebSearchDrawable, R.attr.actionOverflowButtonStyle, R.attr.actionOverflowMenuStyle, R.attr.activityChooserViewStyle, R.attr.alertDialogButtonGroupStyle, R.attr.alertDialogCenterButtons, R.attr.alertDialogStyle, R.attr.alertDialogTheme, R.attr.autoCompleteTextViewStyle, R.attr.borderlessButtonStyle, R.attr.buttonBarButtonStyle, R.attr.buttonBarNegativeButtonStyle, R.attr.buttonBarNeutralButtonStyle, R.attr.buttonBarPositiveButtonStyle, R.attr.buttonBarStyle, R.attr.buttonStyle, R.attr.buttonStyleSmall, R.attr.checkboxStyle, R.attr.checkedTextViewStyle, R.attr.colorAccent, R.attr.colorBackgroundFloating, R.attr.colorButtonNormal, R.attr.colorControlActivated, R.attr.colorControlHighlight, R.attr.colorControlNormal, R.attr.colorError, R.attr.colorPrimary, R.attr.colorPrimaryDark, R.attr.colorSwitchThumbNormal, R.attr.controlBackground, R.attr.dialogCornerRadius, R.attr.dialogPreferredPadding, R.attr.dialogTheme, R.attr.dividerHorizontal, R.attr.dividerVertical, R.attr.dropDownListViewStyle, R.attr.dropdownListPreferredItemHeight, R.attr.editTextBackground, R.attr.editTextColor, R.attr.editTextStyle, R.attr.homeAsUpIndicator, R.attr.imageButtonStyle, R.attr.listChoiceBackgroundIndicator, R.attr.listDividerAlertDialog, R.attr.listMenuViewStyle, R.attr.listPopupWindowStyle, R.attr.listPreferredItemHeight, R.attr.listPreferredItemHeightLarge, R.attr.listPreferredItemHeightSmall, R.attr.listPreferredItemPaddingLeft, R.attr.listPreferredItemPaddingRight, R.attr.panelBackground, R.attr.panelMenuListTheme, R.attr.panelMenuListWidth, R.attr.popupMenuStyle, R.attr.popupWindowStyle, R.attr.radioButtonStyle, R.attr.ratingBarStyle, R.attr.ratingBarStyleIndicator, R.attr.ratingBarStyleSmall, R.attr.searchViewStyle, R.attr.seekBarStyle, R.attr.selectableItemBackground, R.attr.selectableItemBackgroundBorderless, R.attr.spinnerDropDownItemStyle, R.attr.spinnerStyle, R.attr.switchStyle, R.attr.textAppearanceLargePopupMenu, R.attr.textAppearanceListItem, R.attr.textAppearanceListItemSecondary, R.attr.textAppearanceListItemSmall, R.attr.textAppearancePopupMenuHeader, R.attr.textAppearanceSearchResultSubtitle, R.attr.textAppearanceSearchResultTitle, R.attr.textAppearanceSmallPopupMenu, R.attr.textColorAlertDialogListItem, R.attr.textColorSearchUrl, R.attr.toolbarNavigationButtonStyle, R.attr.toolbarStyle, R.attr.tooltipForegroundColor, R.attr.tooltipFrameBackground, R.attr.viewInflaterClass, R.attr.windowActionBar, R.attr.windowActionBarOverlay, R.attr.windowActionModeOverlay, R.attr.windowFixedHeightMajor, R.attr.windowFixedHeightMinor, R.attr.windowFixedWidthMajor, R.attr.windowFixedWidthMinor, R.attr.windowMinWidthMajor, R.attr.windowMinWidthMinor, R.attr.windowNoTitle};
|
||||
public static final int[] BottomAppBar = {R.attr.backgroundTint, R.attr.fabAlignmentMode, R.attr.fabCradleMargin, R.attr.fabCradleRoundedCornerRadius, R.attr.fabCradleVerticalOffset, R.attr.hideOnScroll};
|
||||
public static final int[] BottomNavigationView = {R.attr.elevation, R.attr.itemBackground, R.attr.itemHorizontalTranslationEnabled, R.attr.itemIconSize, R.attr.itemIconTint, R.attr.itemTextAppearanceActive, R.attr.itemTextAppearanceInactive, R.attr.itemTextColor, R.attr.labelVisibilityMode, R.attr.menu};
|
||||
public static final int[] BottomSheetBehavior_Layout = {R.attr.behavior_fitToContents, R.attr.behavior_hideable, R.attr.behavior_peekHeight, R.attr.behavior_skipCollapsed};
|
||||
public static final int[] ButtonBarLayout = {R.attr.allowStacking};
|
||||
public static final int[] CardView = {android.R.attr.minWidth, android.R.attr.minHeight, R.attr.cardBackgroundColor, R.attr.cardCornerRadius, R.attr.cardElevation, R.attr.cardMaxElevation, R.attr.cardPreventCornerOverlap, R.attr.cardUseCompatPadding, R.attr.contentPadding, R.attr.contentPaddingBottom, R.attr.contentPaddingLeft, R.attr.contentPaddingRight, R.attr.contentPaddingTop};
|
||||
public static final int[] Chip = {android.R.attr.textAppearance, android.R.attr.ellipsize, android.R.attr.maxWidth, android.R.attr.text, android.R.attr.checkable, R.attr.checkedIcon, R.attr.checkedIconEnabled, R.attr.checkedIconVisible, R.attr.chipBackgroundColor, R.attr.chipCornerRadius, R.attr.chipEndPadding, R.attr.chipIcon, R.attr.chipIconEnabled, R.attr.chipIconSize, R.attr.chipIconTint, R.attr.chipIconVisible, R.attr.chipMinHeight, R.attr.chipStartPadding, R.attr.chipStrokeColor, R.attr.chipStrokeWidth, R.attr.closeIcon, R.attr.closeIconEnabled, R.attr.closeIconEndPadding, R.attr.closeIconSize, R.attr.closeIconStartPadding, R.attr.closeIconTint, R.attr.closeIconVisible, R.attr.hideMotionSpec, R.attr.iconEndPadding, R.attr.iconStartPadding, R.attr.rippleColor, R.attr.showMotionSpec, R.attr.textEndPadding, R.attr.textStartPadding};
|
||||
public static final int[] ChipGroup = {R.attr.checkedChip, R.attr.chipSpacing, R.attr.chipSpacingHorizontal, R.attr.chipSpacingVertical, R.attr.singleLine, R.attr.singleSelection};
|
||||
public static final int[] CollapsingToolbarLayout = {R.attr.collapsedTitleGravity, R.attr.collapsedTitleTextAppearance, R.attr.contentScrim, R.attr.expandedTitleGravity, R.attr.expandedTitleMargin, R.attr.expandedTitleMarginBottom, R.attr.expandedTitleMarginEnd, R.attr.expandedTitleMarginStart, R.attr.expandedTitleMarginTop, R.attr.expandedTitleTextAppearance, R.attr.scrimAnimationDuration, R.attr.scrimVisibleHeightTrigger, R.attr.statusBarScrim, R.attr.title, R.attr.titleEnabled, R.attr.toolbarId};
|
||||
public static final int[] CollapsingToolbarLayout_Layout = {R.attr.layout_collapseMode, R.attr.layout_collapseParallaxMultiplier};
|
||||
public static final int[] ColorStateListItem = {android.R.attr.color, android.R.attr.alpha, R.attr.alpha};
|
||||
public static final int[] CompoundButton = {android.R.attr.button, R.attr.buttonTint, R.attr.buttonTintMode};
|
||||
public static final int[] CoordinatorLayout = {R.attr.keylines, R.attr.statusBarBackground};
|
||||
public static final int[] CoordinatorLayout_Layout = {android.R.attr.layout_gravity, R.attr.layout_anchor, R.attr.layout_anchorGravity, R.attr.layout_behavior, R.attr.layout_dodgeInsetEdges, R.attr.layout_insetEdge, R.attr.layout_keyline};
|
||||
public static final int[] DesignTheme = {R.attr.bottomSheetDialogTheme, R.attr.bottomSheetStyle};
|
||||
public static final int[] DrawerArrowToggle = {R.attr.arrowHeadLength, R.attr.arrowShaftLength, R.attr.barLength, R.attr.color, R.attr.drawableSize, R.attr.gapBetweenBars, R.attr.spinBars, R.attr.thickness};
|
||||
public static final int[] FloatingActionButton = {R.attr.backgroundTint, R.attr.backgroundTintMode, R.attr.borderWidth, R.attr.elevation, R.attr.fabCustomSize, R.attr.fabSize, R.attr.hideMotionSpec, R.attr.hoveredFocusedTranslationZ, R.attr.maxImageSize, R.attr.pressedTranslationZ, R.attr.rippleColor, R.attr.showMotionSpec, R.attr.useCompatPadding};
|
||||
public static final int[] FloatingActionButton_Behavior_Layout = {R.attr.behavior_autoHide};
|
||||
public static final int[] FlowLayout = {R.attr.itemSpacing, R.attr.lineSpacing};
|
||||
public static final int[] FontFamily = {R.attr.fontProviderAuthority, R.attr.fontProviderCerts, R.attr.fontProviderFetchStrategy, R.attr.fontProviderFetchTimeout, R.attr.fontProviderPackage, R.attr.fontProviderQuery};
|
||||
public static final int[] FontFamilyFont = {android.R.attr.font, android.R.attr.fontWeight, android.R.attr.fontStyle, android.R.attr.ttcIndex, android.R.attr.fontVariationSettings, R.attr.font, R.attr.fontStyle, R.attr.fontVariationSettings, R.attr.fontWeight, R.attr.ttcIndex};
|
||||
public static final int[] ForegroundLinearLayout = {android.R.attr.foreground, android.R.attr.foregroundGravity, R.attr.foregroundInsidePadding};
|
||||
public static final int[] LinearLayoutCompat = {android.R.attr.gravity, android.R.attr.orientation, android.R.attr.baselineAligned, android.R.attr.baselineAlignedChildIndex, android.R.attr.weightSum, R.attr.divider, R.attr.dividerPadding, R.attr.measureWithLargestChild, R.attr.showDividers};
|
||||
public static final int[] LinearLayoutCompat_Layout = {android.R.attr.layout_gravity, android.R.attr.layout_width, android.R.attr.layout_height, android.R.attr.layout_weight};
|
||||
public static final int[] ListPopupWindow = {android.R.attr.dropDownHorizontalOffset, android.R.attr.dropDownVerticalOffset};
|
||||
public static final int[] MaterialButton = {android.R.attr.insetLeft, android.R.attr.insetRight, android.R.attr.insetTop, android.R.attr.insetBottom, R.attr.backgroundTint, R.attr.backgroundTintMode, R.attr.cornerRadius, R.attr.icon, R.attr.iconGravity, R.attr.iconPadding, R.attr.iconSize, R.attr.iconTint, R.attr.iconTintMode, R.attr.rippleColor, R.attr.strokeColor, R.attr.strokeWidth};
|
||||
public static final int[] MaterialCardView = {R.attr.strokeColor, R.attr.strokeWidth};
|
||||
public static final int[] MaterialComponentsTheme = {R.attr.bottomSheetDialogTheme, R.attr.bottomSheetStyle, R.attr.chipGroupStyle, R.attr.chipStandaloneStyle, R.attr.chipStyle, R.attr.colorAccent, R.attr.colorBackgroundFloating, R.attr.colorPrimary, R.attr.colorPrimaryDark, R.attr.colorSecondary, R.attr.editTextStyle, R.attr.floatingActionButtonStyle, R.attr.materialButtonStyle, R.attr.materialCardViewStyle, R.attr.navigationViewStyle, R.attr.scrimBackground, R.attr.snackbarButtonStyle, R.attr.tabStyle, R.attr.textAppearanceBody1, R.attr.textAppearanceBody2, R.attr.textAppearanceButton, R.attr.textAppearanceCaption, R.attr.textAppearanceHeadline1, R.attr.textAppearanceHeadline2, R.attr.textAppearanceHeadline3, R.attr.textAppearanceHeadline4, R.attr.textAppearanceHeadline5, R.attr.textAppearanceHeadline6, R.attr.textAppearanceOverline, R.attr.textAppearanceSubtitle1, R.attr.textAppearanceSubtitle2, R.attr.textInputStyle};
|
||||
public static final int[] MenuGroup = {android.R.attr.enabled, android.R.attr.id, android.R.attr.visible, android.R.attr.menuCategory, android.R.attr.orderInCategory, android.R.attr.checkableBehavior};
|
||||
public static final int[] MenuItem = {android.R.attr.icon, android.R.attr.enabled, android.R.attr.id, android.R.attr.checked, android.R.attr.visible, android.R.attr.menuCategory, android.R.attr.orderInCategory, android.R.attr.title, android.R.attr.titleCondensed, android.R.attr.alphabeticShortcut, android.R.attr.numericShortcut, android.R.attr.checkable, android.R.attr.onClick, R.attr.actionLayout, R.attr.actionProviderClass, R.attr.actionViewClass, R.attr.alphabeticModifiers, R.attr.contentDescription, R.attr.iconTint, R.attr.iconTintMode, R.attr.numericModifiers, R.attr.showAsAction, R.attr.tooltipText};
|
||||
public static final int[] MenuView = {android.R.attr.windowAnimationStyle, android.R.attr.itemTextAppearance, android.R.attr.horizontalDivider, android.R.attr.verticalDivider, android.R.attr.headerBackground, android.R.attr.itemBackground, android.R.attr.itemIconDisabledAlpha, R.attr.preserveIconSpacing, R.attr.subMenuArrow};
|
||||
public static final int[] NavigationView = {android.R.attr.background, android.R.attr.fitsSystemWindows, android.R.attr.maxWidth, R.attr.elevation, R.attr.headerLayout, R.attr.itemBackground, R.attr.itemHorizontalPadding, R.attr.itemIconPadding, R.attr.itemIconTint, R.attr.itemTextAppearance, R.attr.itemTextColor, R.attr.menu};
|
||||
public static final int[] PopupWindow = {android.R.attr.popupBackground, android.R.attr.popupAnimationStyle, R.attr.overlapAnchor};
|
||||
public static final int[] PopupWindowBackgroundState = {R.attr.state_above_anchor};
|
||||
public static final int[] RecycleListView = {R.attr.paddingBottomNoButtons, R.attr.paddingTopNoTitle};
|
||||
public static final int[] RecyclerView = {android.R.attr.orientation, android.R.attr.descendantFocusability, R.attr.fastScrollEnabled, R.attr.fastScrollHorizontalThumbDrawable, R.attr.fastScrollHorizontalTrackDrawable, R.attr.fastScrollVerticalThumbDrawable, R.attr.fastScrollVerticalTrackDrawable, R.attr.layoutManager, R.attr.reverseLayout, R.attr.spanCount, R.attr.stackFromEnd};
|
||||
public static final int[] ScrimInsetsFrameLayout = {R.attr.insetForeground};
|
||||
public static final int[] ScrollingViewBehavior_Layout = {R.attr.behavior_overlapTop};
|
||||
public static final int[] SearchView = {android.R.attr.focusable, android.R.attr.maxWidth, android.R.attr.inputType, android.R.attr.imeOptions, R.attr.closeIcon, R.attr.commitIcon, R.attr.defaultQueryHint, R.attr.goIcon, R.attr.iconifiedByDefault, R.attr.layout, R.attr.queryBackground, R.attr.queryHint, R.attr.searchHintIcon, R.attr.searchIcon, R.attr.submitBackground, R.attr.suggestionRowLayout, R.attr.voiceIcon};
|
||||
public static final int[] Snackbar = {R.attr.snackbarButtonStyle, R.attr.snackbarStyle};
|
||||
public static final int[] SnackbarLayout = {android.R.attr.maxWidth, R.attr.elevation, R.attr.maxActionInlineWidth};
|
||||
public static final int[] Spinner = {android.R.attr.entries, android.R.attr.popupBackground, android.R.attr.prompt, android.R.attr.dropDownWidth, R.attr.popupTheme};
|
||||
public static final int[] SwitchCompat = {android.R.attr.textOn, android.R.attr.textOff, android.R.attr.thumb, R.attr.showText, R.attr.splitTrack, R.attr.switchMinWidth, R.attr.switchPadding, R.attr.switchTextAppearance, R.attr.thumbTextPadding, R.attr.thumbTint, R.attr.thumbTintMode, R.attr.track, R.attr.trackTint, R.attr.trackTintMode};
|
||||
public static final int[] TabItem = {android.R.attr.icon, android.R.attr.layout, android.R.attr.text};
|
||||
public static final int[] TabLayout = {R.attr.tabBackground, R.attr.tabContentStart, R.attr.tabGravity, R.attr.tabIconTint, R.attr.tabIconTintMode, R.attr.tabIndicator, R.attr.tabIndicatorAnimationDuration, R.attr.tabIndicatorColor, R.attr.tabIndicatorFullWidth, R.attr.tabIndicatorGravity, R.attr.tabIndicatorHeight, R.attr.tabInlineLabel, R.attr.tabMaxWidth, R.attr.tabMinWidth, R.attr.tabMode, R.attr.tabPadding, R.attr.tabPaddingBottom, R.attr.tabPaddingEnd, R.attr.tabPaddingStart, R.attr.tabPaddingTop, R.attr.tabRippleColor, R.attr.tabSelectedTextColor, R.attr.tabTextAppearance, R.attr.tabTextColor, R.attr.tabUnboundedRipple};
|
||||
public static final int[] TextAppearance = {android.R.attr.textSize, android.R.attr.typeface, android.R.attr.textStyle, android.R.attr.textColor, android.R.attr.textColorHint, android.R.attr.textColorLink, android.R.attr.shadowColor, android.R.attr.shadowDx, android.R.attr.shadowDy, android.R.attr.shadowRadius, android.R.attr.fontFamily, R.attr.fontFamily, R.attr.textAllCaps};
|
||||
public static final int[] TextInputLayout = {android.R.attr.textColorHint, android.R.attr.hint, R.attr.boxBackgroundColor, R.attr.boxBackgroundMode, R.attr.boxCollapsedPaddingTop, R.attr.boxCornerRadiusBottomEnd, R.attr.boxCornerRadiusBottomStart, R.attr.boxCornerRadiusTopEnd, R.attr.boxCornerRadiusTopStart, R.attr.boxStrokeColor, R.attr.boxStrokeWidth, R.attr.counterEnabled, R.attr.counterMaxLength, R.attr.counterOverflowTextAppearance, R.attr.counterTextAppearance, R.attr.errorEnabled, R.attr.errorTextAppearance, R.attr.helperText, R.attr.helperTextEnabled, R.attr.helperTextTextAppearance, R.attr.hintAnimationEnabled, R.attr.hintEnabled, R.attr.hintTextAppearance, R.attr.passwordToggleContentDescription, R.attr.passwordToggleDrawable, R.attr.passwordToggleEnabled, R.attr.passwordToggleTint, R.attr.passwordToggleTintMode};
|
||||
public static final int[] ThemeEnforcement = {android.R.attr.textAppearance, R.attr.enforceMaterialTheme, R.attr.enforceTextAppearance};
|
||||
public static final int[] Toolbar = {android.R.attr.gravity, android.R.attr.minHeight, R.attr.buttonGravity, R.attr.collapseContentDescription, R.attr.collapseIcon, R.attr.contentInsetEnd, R.attr.contentInsetEndWithActions, R.attr.contentInsetLeft, R.attr.contentInsetRight, R.attr.contentInsetStart, R.attr.contentInsetStartWithNavigation, R.attr.logo, R.attr.logoDescription, R.attr.maxButtonHeight, R.attr.navigationContentDescription, R.attr.navigationIcon, R.attr.popupTheme, R.attr.subtitle, R.attr.subtitleTextAppearance, R.attr.subtitleTextColor, R.attr.title, R.attr.titleMargin, R.attr.titleMarginBottom, R.attr.titleMarginEnd, R.attr.titleMarginStart, R.attr.titleMarginTop, R.attr.titleMargins, R.attr.titleTextAppearance, R.attr.titleTextColor};
|
||||
public static final int[] View = {android.R.attr.theme, android.R.attr.focusable, R.attr.paddingEnd, R.attr.paddingStart, R.attr.theme};
|
||||
public static final int[] ViewBackgroundHelper = {android.R.attr.background, R.attr.backgroundTint, R.attr.backgroundTintMode};
|
||||
public static final int[] ViewStubCompat = {android.R.attr.id, android.R.attr.layout, android.R.attr.inflatedId};
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.material.animation;
|
||||
|
||||
import android.animation.TimeInterpolator;
|
||||
import android.view.animation.DecelerateInterpolator;
|
||||
import android.view.animation.LinearInterpolator;
|
||||
import androidx.interpolator.view.animation.FastOutLinearInInterpolator;
|
||||
import androidx.interpolator.view.animation.FastOutSlowInInterpolator;
|
||||
import androidx.interpolator.view.animation.LinearOutSlowInInterpolator;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class AnimationUtils {
|
||||
public static final TimeInterpolator a = new LinearInterpolator();
|
||||
public static final TimeInterpolator b = new FastOutSlowInInterpolator();
|
||||
public static final TimeInterpolator c = new FastOutLinearInInterpolator();
|
||||
public static final TimeInterpolator d = new LinearOutSlowInInterpolator();
|
||||
public static final TimeInterpolator e = new DecelerateInterpolator();
|
||||
|
||||
public static float a(float f, float f2, float f3) {
|
||||
return f + (f3 * (f2 - f));
|
||||
}
|
||||
|
||||
public static int a(int i, int i2, float f) {
|
||||
return i + Math.round(f * (i2 - i));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.material.animation;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorSet;
|
||||
import android.animation.ValueAnimator;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class AnimatorSetCompat {
|
||||
public static void a(AnimatorSet animatorSet, List<Animator> list) {
|
||||
int size = list.size();
|
||||
long j = 0;
|
||||
for (int i = 0; i < size; i++) {
|
||||
Animator animator = list.get(i);
|
||||
j = Math.max(j, animator.getStartDelay() + animator.getDuration());
|
||||
}
|
||||
ValueAnimator ofInt = ValueAnimator.ofInt(0, 0);
|
||||
ofInt.setDuration(j);
|
||||
list.add(0, ofInt);
|
||||
animatorSet.playTogether(list);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.google.android.material.animation;
|
||||
|
||||
import android.animation.TypeEvaluator;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ArgbEvaluatorCompat implements TypeEvaluator<Integer> {
|
||||
private static final ArgbEvaluatorCompat a = new ArgbEvaluatorCompat();
|
||||
|
||||
public static ArgbEvaluatorCompat a() {
|
||||
return a;
|
||||
}
|
||||
|
||||
@Override // android.animation.TypeEvaluator
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public Integer evaluate(float f, Integer num, Integer num2) {
|
||||
int intValue = num.intValue();
|
||||
float f2 = ((intValue >> 24) & 255) / 255.0f;
|
||||
int intValue2 = num2.intValue();
|
||||
float pow = (float) Math.pow(((intValue >> 16) & 255) / 255.0f, 2.2d);
|
||||
float pow2 = (float) Math.pow(((intValue >> 8) & 255) / 255.0f, 2.2d);
|
||||
float pow3 = (float) Math.pow((intValue & 255) / 255.0f, 2.2d);
|
||||
float pow4 = (float) Math.pow(((intValue2 >> 16) & 255) / 255.0f, 2.2d);
|
||||
float f3 = f2 + (((((intValue2 >> 24) & 255) / 255.0f) - f2) * f);
|
||||
float pow5 = pow2 + ((((float) Math.pow(((intValue2 >> 8) & 255) / 255.0f, 2.2d)) - pow2) * f);
|
||||
float pow6 = pow3 + (f * (((float) Math.pow((intValue2 & 255) / 255.0f, 2.2d)) - pow3));
|
||||
return Integer.valueOf((Math.round(((float) Math.pow(pow + ((pow4 - pow) * f), 0.45454545454545453d)) * 255.0f) << 16) | (Math.round(f3 * 255.0f) << 24) | (Math.round(((float) Math.pow(pow5, 0.45454545454545453d)) * 255.0f) << 8) | Math.round(((float) Math.pow(pow6, 0.45454545454545453d)) * 255.0f));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.google.android.material.animation;
|
||||
|
||||
import android.util.Property;
|
||||
import android.view.ViewGroup;
|
||||
import com.google.android.material.R$id;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ChildrenAlphaProperty extends Property<ViewGroup, Float> {
|
||||
public static final Property<ViewGroup, Float> a = new ChildrenAlphaProperty("childrenAlpha");
|
||||
|
||||
private ChildrenAlphaProperty(String str) {
|
||||
super(Float.class, str);
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public Float get(ViewGroup viewGroup) {
|
||||
Float f = (Float) viewGroup.getTag(R$id.mtrl_internal_children_alpha_tag);
|
||||
return f != null ? f : Float.valueOf(1.0f);
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public void set(ViewGroup viewGroup, Float f) {
|
||||
float floatValue = f.floatValue();
|
||||
viewGroup.setTag(R$id.mtrl_internal_children_alpha_tag, Float.valueOf(floatValue));
|
||||
int childCount = viewGroup.getChildCount();
|
||||
for (int i = 0; i < childCount; i++) {
|
||||
viewGroup.getChildAt(i).setAlpha(floatValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.google.android.material.animation;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Build;
|
||||
import android.util.Property;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class DrawableAlphaProperty extends Property<Drawable, Integer> {
|
||||
public static final Property<Drawable, Integer> b = new DrawableAlphaProperty();
|
||||
private final WeakHashMap<Drawable, Integer> a;
|
||||
|
||||
private DrawableAlphaProperty() {
|
||||
super(Integer.class, "drawableAlphaCompat");
|
||||
this.a = new WeakHashMap<>();
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public Integer get(Drawable drawable) {
|
||||
if (Build.VERSION.SDK_INT >= 19) {
|
||||
return Integer.valueOf(drawable.getAlpha());
|
||||
}
|
||||
if (this.a.containsKey(drawable)) {
|
||||
return this.a.get(drawable);
|
||||
}
|
||||
return 255;
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public void set(Drawable drawable, Integer num) {
|
||||
if (Build.VERSION.SDK_INT < 19) {
|
||||
this.a.put(drawable, num);
|
||||
}
|
||||
drawable.setAlpha(num.intValue());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.google.android.material.animation;
|
||||
|
||||
import android.graphics.Matrix;
|
||||
import android.util.Property;
|
||||
import android.widget.ImageView;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ImageMatrixProperty extends Property<ImageView, Matrix> {
|
||||
private final Matrix a;
|
||||
|
||||
public ImageMatrixProperty() {
|
||||
super(Matrix.class, "imageMatrixProperty");
|
||||
this.a = new Matrix();
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public void set(ImageView imageView, Matrix matrix) {
|
||||
imageView.setImageMatrix(matrix);
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public Matrix get(ImageView imageView) {
|
||||
this.a.set(imageView.getImageMatrix());
|
||||
return this.a;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.material.animation;
|
||||
|
||||
import android.animation.TypeEvaluator;
|
||||
import android.graphics.Matrix;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class MatrixEvaluator implements TypeEvaluator<Matrix> {
|
||||
private final float[] a = new float[9];
|
||||
private final float[] b = new float[9];
|
||||
private final Matrix c = new Matrix();
|
||||
|
||||
@Override // android.animation.TypeEvaluator
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public Matrix evaluate(float f, Matrix matrix, Matrix matrix2) {
|
||||
matrix.getValues(this.a);
|
||||
matrix2.getValues(this.b);
|
||||
for (int i = 0; i < 9; i++) {
|
||||
float[] fArr = this.b;
|
||||
float f2 = fArr[i];
|
||||
float[] fArr2 = this.a;
|
||||
fArr[i] = fArr2[i] + ((f2 - fArr2[i]) * f);
|
||||
}
|
||||
this.c.setValues(this.b);
|
||||
return this.c;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.google.android.material.animation;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorInflater;
|
||||
import android.animation.AnimatorSet;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
import androidx.collection.SimpleArrayMap;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class MotionSpec {
|
||||
private final SimpleArrayMap<String, MotionTiming> a = new SimpleArrayMap<>();
|
||||
|
||||
public MotionTiming a(String str) {
|
||||
if (b(str)) {
|
||||
return this.a.get(str);
|
||||
}
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
|
||||
public boolean b(String str) {
|
||||
return this.a.get(str) != null;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj == null || MotionSpec.class != obj.getClass()) {
|
||||
return false;
|
||||
}
|
||||
return this.a.equals(((MotionSpec) obj).a);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.a.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return '\n' + MotionSpec.class.getName() + '{' + Integer.toHexString(System.identityHashCode(this)) + " timings: " + this.a + "}\n";
|
||||
}
|
||||
|
||||
public void a(String str, MotionTiming motionTiming) {
|
||||
this.a.put(str, motionTiming);
|
||||
}
|
||||
|
||||
public long a() {
|
||||
int size = this.a.size();
|
||||
long j = 0;
|
||||
for (int i = 0; i < size; i++) {
|
||||
MotionTiming d = this.a.d(i);
|
||||
j = Math.max(j, d.a() + d.b());
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
public static MotionSpec a(Context context, int i) {
|
||||
try {
|
||||
Animator loadAnimator = AnimatorInflater.loadAnimator(context, i);
|
||||
if (loadAnimator instanceof AnimatorSet) {
|
||||
return a(((AnimatorSet) loadAnimator).getChildAnimations());
|
||||
}
|
||||
if (loadAnimator == null) {
|
||||
return null;
|
||||
}
|
||||
ArrayList arrayList = new ArrayList();
|
||||
arrayList.add(loadAnimator);
|
||||
return a(arrayList);
|
||||
} catch (Exception e) {
|
||||
Log.w("MotionSpec", "Can't load animation resource ID #0x" + Integer.toHexString(i), e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private static MotionSpec a(List<Animator> list) {
|
||||
MotionSpec motionSpec = new MotionSpec();
|
||||
int size = list.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
a(motionSpec, list.get(i));
|
||||
}
|
||||
return motionSpec;
|
||||
}
|
||||
|
||||
private static void a(MotionSpec motionSpec, Animator animator) {
|
||||
if (animator instanceof ObjectAnimator) {
|
||||
ObjectAnimator objectAnimator = (ObjectAnimator) animator;
|
||||
motionSpec.a(objectAnimator.getPropertyName(), MotionTiming.a((ValueAnimator) objectAnimator));
|
||||
} else {
|
||||
throw new IllegalArgumentException("Animator must be an ObjectAnimator: " + animator);
|
||||
}
|
||||
}
|
||||
}
|
||||
104
sources/com/google/android/material/animation/MotionTiming.java
Normal file
104
sources/com/google/android/material/animation/MotionTiming.java
Normal file
@@ -0,0 +1,104 @@
|
||||
package com.google.android.material.animation;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.TimeInterpolator;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.view.animation.AccelerateDecelerateInterpolator;
|
||||
import android.view.animation.AccelerateInterpolator;
|
||||
import android.view.animation.DecelerateInterpolator;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class MotionTiming {
|
||||
private long a;
|
||||
private long b;
|
||||
private TimeInterpolator c;
|
||||
private int d;
|
||||
private int e;
|
||||
|
||||
public MotionTiming(long j, long j2) {
|
||||
this.a = 0L;
|
||||
this.b = 300L;
|
||||
this.c = null;
|
||||
this.d = 0;
|
||||
this.e = 1;
|
||||
this.a = j;
|
||||
this.b = j2;
|
||||
}
|
||||
|
||||
public void a(Animator animator) {
|
||||
animator.setStartDelay(a());
|
||||
animator.setDuration(b());
|
||||
animator.setInterpolator(c());
|
||||
if (animator instanceof ValueAnimator) {
|
||||
ValueAnimator valueAnimator = (ValueAnimator) animator;
|
||||
valueAnimator.setRepeatCount(d());
|
||||
valueAnimator.setRepeatMode(e());
|
||||
}
|
||||
}
|
||||
|
||||
public long b() {
|
||||
return this.b;
|
||||
}
|
||||
|
||||
public TimeInterpolator c() {
|
||||
TimeInterpolator timeInterpolator = this.c;
|
||||
return timeInterpolator != null ? timeInterpolator : AnimationUtils.b;
|
||||
}
|
||||
|
||||
public int d() {
|
||||
return this.d;
|
||||
}
|
||||
|
||||
public int e() {
|
||||
return this.e;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj == null || MotionTiming.class != obj.getClass()) {
|
||||
return false;
|
||||
}
|
||||
MotionTiming motionTiming = (MotionTiming) obj;
|
||||
if (a() == motionTiming.a() && b() == motionTiming.b() && d() == motionTiming.d() && e() == motionTiming.e()) {
|
||||
return c().getClass().equals(motionTiming.c().getClass());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return (((((((((int) (a() ^ (a() >>> 32))) * 31) + ((int) (b() ^ (b() >>> 32)))) * 31) + c().getClass().hashCode()) * 31) + d()) * 31) + e();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return '\n' + MotionTiming.class.getName() + '{' + Integer.toHexString(System.identityHashCode(this)) + " delay: " + a() + " duration: " + b() + " interpolator: " + c().getClass() + " repeatCount: " + d() + " repeatMode: " + e() + "}\n";
|
||||
}
|
||||
|
||||
private static TimeInterpolator b(ValueAnimator valueAnimator) {
|
||||
TimeInterpolator interpolator = valueAnimator.getInterpolator();
|
||||
return ((interpolator instanceof AccelerateDecelerateInterpolator) || interpolator == null) ? AnimationUtils.b : interpolator instanceof AccelerateInterpolator ? AnimationUtils.c : interpolator instanceof DecelerateInterpolator ? AnimationUtils.d : interpolator;
|
||||
}
|
||||
|
||||
public long a() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
static MotionTiming a(ValueAnimator valueAnimator) {
|
||||
MotionTiming motionTiming = new MotionTiming(valueAnimator.getStartDelay(), valueAnimator.getDuration(), b(valueAnimator));
|
||||
motionTiming.d = valueAnimator.getRepeatCount();
|
||||
motionTiming.e = valueAnimator.getRepeatMode();
|
||||
return motionTiming;
|
||||
}
|
||||
|
||||
public MotionTiming(long j, long j2, TimeInterpolator timeInterpolator) {
|
||||
this.a = 0L;
|
||||
this.b = 300L;
|
||||
this.c = null;
|
||||
this.d = 0;
|
||||
this.e = 1;
|
||||
this.a = j;
|
||||
this.b = j2;
|
||||
this.c = timeInterpolator;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.google.android.material.animation;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class Positioning {
|
||||
public final int a;
|
||||
public final float b;
|
||||
public final float c;
|
||||
|
||||
public Positioning(int i, float f, float f2) {
|
||||
this.a = i;
|
||||
this.b = f;
|
||||
this.c = f2;
|
||||
}
|
||||
}
|
||||
1094
sources/com/google/android/material/appbar/AppBarLayout.java
Normal file
1094
sources/com/google/android/material/appbar/AppBarLayout.java
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,745 @@
|
||||
package com.google.android.material.appbar;
|
||||
|
||||
import android.animation.ValueAnimator;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.Typeface;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewParent;
|
||||
import android.widget.FrameLayout;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.core.graphics.drawable.DrawableCompat;
|
||||
import androidx.core.math.MathUtils;
|
||||
import androidx.core.util.ObjectsCompat;
|
||||
import androidx.core.view.OnApplyWindowInsetsListener;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
import com.google.android.material.R$id;
|
||||
import com.google.android.material.R$style;
|
||||
import com.google.android.material.R$styleable;
|
||||
import com.google.android.material.animation.AnimationUtils;
|
||||
import com.google.android.material.appbar.AppBarLayout;
|
||||
import com.google.android.material.internal.CollapsingTextHelper;
|
||||
import com.google.android.material.internal.DescendantOffsetUtils;
|
||||
import com.google.android.material.internal.ThemeEnforcement;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class CollapsingToolbarLayout extends FrameLayout {
|
||||
private boolean a;
|
||||
private int b;
|
||||
private Toolbar c;
|
||||
private View d;
|
||||
private View e;
|
||||
private int f;
|
||||
private int g;
|
||||
private int h;
|
||||
private int i;
|
||||
private final Rect j;
|
||||
final CollapsingTextHelper k;
|
||||
private boolean l;
|
||||
private boolean m;
|
||||
private Drawable n;
|
||||
Drawable o;
|
||||
private int p;
|
||||
private boolean q;
|
||||
private ValueAnimator r;
|
||||
private long s;
|
||||
private int t;
|
||||
private AppBarLayout.OnOffsetChangedListener u;
|
||||
int v;
|
||||
WindowInsetsCompat x;
|
||||
|
||||
private class OffsetUpdateListener implements AppBarLayout.OnOffsetChangedListener {
|
||||
OffsetUpdateListener() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.appbar.AppBarLayout.BaseOnOffsetChangedListener
|
||||
public void a(AppBarLayout appBarLayout, int i) {
|
||||
CollapsingToolbarLayout collapsingToolbarLayout = CollapsingToolbarLayout.this;
|
||||
collapsingToolbarLayout.v = i;
|
||||
WindowInsetsCompat windowInsetsCompat = collapsingToolbarLayout.x;
|
||||
int e = windowInsetsCompat != null ? windowInsetsCompat.e() : 0;
|
||||
int childCount = CollapsingToolbarLayout.this.getChildCount();
|
||||
for (int i2 = 0; i2 < childCount; i2++) {
|
||||
View childAt = CollapsingToolbarLayout.this.getChildAt(i2);
|
||||
LayoutParams layoutParams = (LayoutParams) childAt.getLayoutParams();
|
||||
ViewOffsetHelper d = CollapsingToolbarLayout.d(childAt);
|
||||
int i3 = layoutParams.a;
|
||||
if (i3 == 1) {
|
||||
d.b(MathUtils.a(-i, 0, CollapsingToolbarLayout.this.a(childAt)));
|
||||
} else if (i3 == 2) {
|
||||
d.b(Math.round((-i) * layoutParams.b));
|
||||
}
|
||||
}
|
||||
CollapsingToolbarLayout.this.a();
|
||||
CollapsingToolbarLayout collapsingToolbarLayout2 = CollapsingToolbarLayout.this;
|
||||
if (collapsingToolbarLayout2.o != null && e > 0) {
|
||||
ViewCompat.A(collapsingToolbarLayout2);
|
||||
}
|
||||
CollapsingToolbarLayout.this.k.b(Math.abs(i) / ((CollapsingToolbarLayout.this.getHeight() - ViewCompat.l(CollapsingToolbarLayout.this)) - e));
|
||||
}
|
||||
}
|
||||
|
||||
public CollapsingToolbarLayout(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
private void b() {
|
||||
if (this.a) {
|
||||
Toolbar toolbar = null;
|
||||
this.c = null;
|
||||
this.d = null;
|
||||
int i = this.b;
|
||||
if (i != -1) {
|
||||
this.c = (Toolbar) findViewById(i);
|
||||
Toolbar toolbar2 = this.c;
|
||||
if (toolbar2 != null) {
|
||||
this.d = b(toolbar2);
|
||||
}
|
||||
}
|
||||
if (this.c == null) {
|
||||
int childCount = getChildCount();
|
||||
int i2 = 0;
|
||||
while (true) {
|
||||
if (i2 >= childCount) {
|
||||
break;
|
||||
}
|
||||
View childAt = getChildAt(i2);
|
||||
if (childAt instanceof Toolbar) {
|
||||
toolbar = (Toolbar) childAt;
|
||||
break;
|
||||
}
|
||||
i2++;
|
||||
}
|
||||
this.c = toolbar;
|
||||
}
|
||||
d();
|
||||
this.a = false;
|
||||
}
|
||||
}
|
||||
|
||||
private static int c(View view) {
|
||||
ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
|
||||
if (!(layoutParams instanceof ViewGroup.MarginLayoutParams)) {
|
||||
return view.getHeight();
|
||||
}
|
||||
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams;
|
||||
return view.getHeight() + marginLayoutParams.topMargin + marginLayoutParams.bottomMargin;
|
||||
}
|
||||
|
||||
private void d() {
|
||||
View view;
|
||||
if (!this.l && (view = this.e) != null) {
|
||||
ViewParent parent = view.getParent();
|
||||
if (parent instanceof ViewGroup) {
|
||||
((ViewGroup) parent).removeView(this.e);
|
||||
}
|
||||
}
|
||||
if (!this.l || this.c == null) {
|
||||
return;
|
||||
}
|
||||
if (this.e == null) {
|
||||
this.e = new View(getContext());
|
||||
}
|
||||
if (this.e.getParent() == null) {
|
||||
this.c.addView(this.e, -1, -1);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean e(View view) {
|
||||
View view2 = this.d;
|
||||
if (view2 == null || view2 == this) {
|
||||
if (view == this.c) {
|
||||
return true;
|
||||
}
|
||||
} else if (view == view2) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
WindowInsetsCompat a(WindowInsetsCompat windowInsetsCompat) {
|
||||
WindowInsetsCompat windowInsetsCompat2 = ViewCompat.h(this) ? windowInsetsCompat : null;
|
||||
if (!ObjectsCompat.a(this.x, windowInsetsCompat2)) {
|
||||
this.x = windowInsetsCompat2;
|
||||
requestLayout();
|
||||
}
|
||||
return windowInsetsCompat.a();
|
||||
}
|
||||
|
||||
@Override // android.widget.FrameLayout, android.view.ViewGroup
|
||||
protected boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
||||
return layoutParams instanceof LayoutParams;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void draw(Canvas canvas) {
|
||||
Drawable drawable;
|
||||
super.draw(canvas);
|
||||
b();
|
||||
if (this.c == null && (drawable = this.n) != null && this.p > 0) {
|
||||
drawable.mutate().setAlpha(this.p);
|
||||
this.n.draw(canvas);
|
||||
}
|
||||
if (this.l && this.m) {
|
||||
this.k.a(canvas);
|
||||
}
|
||||
if (this.o == null || this.p <= 0) {
|
||||
return;
|
||||
}
|
||||
WindowInsetsCompat windowInsetsCompat = this.x;
|
||||
int e = windowInsetsCompat != null ? windowInsetsCompat.e() : 0;
|
||||
if (e > 0) {
|
||||
this.o.setBounds(0, -this.v, getWidth(), e - this.v);
|
||||
this.o.mutate().setAlpha(this.p);
|
||||
this.o.draw(canvas);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
protected boolean drawChild(Canvas canvas, View view, long j) {
|
||||
boolean z;
|
||||
if (this.n == null || this.p <= 0 || !e(view)) {
|
||||
z = false;
|
||||
} else {
|
||||
this.n.mutate().setAlpha(this.p);
|
||||
this.n.draw(canvas);
|
||||
z = true;
|
||||
}
|
||||
return super.drawChild(canvas, view, j) || z;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
protected void drawableStateChanged() {
|
||||
super.drawableStateChanged();
|
||||
int[] drawableState = getDrawableState();
|
||||
Drawable drawable = this.o;
|
||||
boolean z = false;
|
||||
if (drawable != null && drawable.isStateful()) {
|
||||
z = false | drawable.setState(drawableState);
|
||||
}
|
||||
Drawable drawable2 = this.n;
|
||||
if (drawable2 != null && drawable2.isStateful()) {
|
||||
z |= drawable2.setState(drawableState);
|
||||
}
|
||||
CollapsingTextHelper collapsingTextHelper = this.k;
|
||||
if (collapsingTextHelper != null) {
|
||||
z |= collapsingTextHelper.a(drawableState);
|
||||
}
|
||||
if (z) {
|
||||
invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
public int getCollapsedTitleGravity() {
|
||||
return this.k.c();
|
||||
}
|
||||
|
||||
public Typeface getCollapsedTitleTypeface() {
|
||||
return this.k.e();
|
||||
}
|
||||
|
||||
public Drawable getContentScrim() {
|
||||
return this.n;
|
||||
}
|
||||
|
||||
public int getExpandedTitleGravity() {
|
||||
return this.k.g();
|
||||
}
|
||||
|
||||
public int getExpandedTitleMarginBottom() {
|
||||
return this.i;
|
||||
}
|
||||
|
||||
public int getExpandedTitleMarginEnd() {
|
||||
return this.h;
|
||||
}
|
||||
|
||||
public int getExpandedTitleMarginStart() {
|
||||
return this.f;
|
||||
}
|
||||
|
||||
public int getExpandedTitleMarginTop() {
|
||||
return this.g;
|
||||
}
|
||||
|
||||
public Typeface getExpandedTitleTypeface() {
|
||||
return this.k.h();
|
||||
}
|
||||
|
||||
int getScrimAlpha() {
|
||||
return this.p;
|
||||
}
|
||||
|
||||
public long getScrimAnimationDuration() {
|
||||
return this.s;
|
||||
}
|
||||
|
||||
public int getScrimVisibleHeightTrigger() {
|
||||
int i = this.t;
|
||||
if (i >= 0) {
|
||||
return i;
|
||||
}
|
||||
WindowInsetsCompat windowInsetsCompat = this.x;
|
||||
int e = windowInsetsCompat != null ? windowInsetsCompat.e() : 0;
|
||||
int l = ViewCompat.l(this);
|
||||
return l > 0 ? Math.min((l * 2) + e, getHeight()) : getHeight() / 3;
|
||||
}
|
||||
|
||||
public Drawable getStatusBarScrim() {
|
||||
return this.o;
|
||||
}
|
||||
|
||||
public CharSequence getTitle() {
|
||||
if (this.l) {
|
||||
return this.k.j();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
protected void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
Object parent = getParent();
|
||||
if (parent instanceof AppBarLayout) {
|
||||
ViewCompat.a(this, ViewCompat.h((View) parent));
|
||||
if (this.u == null) {
|
||||
this.u = new OffsetUpdateListener();
|
||||
}
|
||||
((AppBarLayout) parent).a(this.u);
|
||||
ViewCompat.B(this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
protected void onDetachedFromWindow() {
|
||||
ViewParent parent = getParent();
|
||||
AppBarLayout.OnOffsetChangedListener onOffsetChangedListener = this.u;
|
||||
if (onOffsetChangedListener != null && (parent instanceof AppBarLayout)) {
|
||||
((AppBarLayout) parent).b(onOffsetChangedListener);
|
||||
}
|
||||
super.onDetachedFromWindow();
|
||||
}
|
||||
|
||||
@Override // android.widget.FrameLayout, android.view.ViewGroup, android.view.View
|
||||
protected void onLayout(boolean z, int i, int i2, int i3, int i4) {
|
||||
View view;
|
||||
super.onLayout(z, i, i2, i3, i4);
|
||||
WindowInsetsCompat windowInsetsCompat = this.x;
|
||||
if (windowInsetsCompat != null) {
|
||||
int e = windowInsetsCompat.e();
|
||||
int childCount = getChildCount();
|
||||
for (int i5 = 0; i5 < childCount; i5++) {
|
||||
View childAt = getChildAt(i5);
|
||||
if (!ViewCompat.h(childAt) && childAt.getTop() < e) {
|
||||
ViewCompat.d(childAt, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.l && (view = this.e) != null) {
|
||||
this.m = ViewCompat.w(view) && this.e.getVisibility() == 0;
|
||||
if (this.m) {
|
||||
boolean z2 = ViewCompat.k(this) == 1;
|
||||
View view2 = this.d;
|
||||
if (view2 == null) {
|
||||
view2 = this.c;
|
||||
}
|
||||
int a = a(view2);
|
||||
DescendantOffsetUtils.a(this, this.e, this.j);
|
||||
this.k.a(this.j.left + (z2 ? this.c.getTitleMarginEnd() : this.c.getTitleMarginStart()), this.j.top + a + this.c.getTitleMarginTop(), this.j.right + (z2 ? this.c.getTitleMarginStart() : this.c.getTitleMarginEnd()), (this.j.bottom + a) - this.c.getTitleMarginBottom());
|
||||
this.k.b(z2 ? this.h : this.f, this.j.top + this.g, (i3 - i) - (z2 ? this.f : this.h), (i4 - i2) - this.i);
|
||||
this.k.m();
|
||||
}
|
||||
}
|
||||
int childCount2 = getChildCount();
|
||||
for (int i6 = 0; i6 < childCount2; i6++) {
|
||||
d(getChildAt(i6)).c();
|
||||
}
|
||||
if (this.c != null) {
|
||||
if (this.l && TextUtils.isEmpty(this.k.j())) {
|
||||
setTitle(this.c.getTitle());
|
||||
}
|
||||
View view3 = this.d;
|
||||
if (view3 == null || view3 == this) {
|
||||
setMinimumHeight(c(this.c));
|
||||
} else {
|
||||
setMinimumHeight(c(view3));
|
||||
}
|
||||
}
|
||||
a();
|
||||
}
|
||||
|
||||
@Override // android.widget.FrameLayout, android.view.View
|
||||
protected void onMeasure(int i, int i2) {
|
||||
b();
|
||||
super.onMeasure(i, i2);
|
||||
int mode = View.MeasureSpec.getMode(i2);
|
||||
WindowInsetsCompat windowInsetsCompat = this.x;
|
||||
int e = windowInsetsCompat != null ? windowInsetsCompat.e() : 0;
|
||||
if (mode != 0 || e <= 0) {
|
||||
return;
|
||||
}
|
||||
super.onMeasure(i, View.MeasureSpec.makeMeasureSpec(getMeasuredHeight() + e, 1073741824));
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected void onSizeChanged(int i, int i2, int i3, int i4) {
|
||||
super.onSizeChanged(i, i2, i3, i4);
|
||||
Drawable drawable = this.n;
|
||||
if (drawable != null) {
|
||||
drawable.setBounds(0, 0, i, i2);
|
||||
}
|
||||
}
|
||||
|
||||
public void setCollapsedTitleGravity(int i) {
|
||||
this.k.b(i);
|
||||
}
|
||||
|
||||
public void setCollapsedTitleTextAppearance(int i) {
|
||||
this.k.a(i);
|
||||
}
|
||||
|
||||
public void setCollapsedTitleTextColor(int i) {
|
||||
setCollapsedTitleTextColor(ColorStateList.valueOf(i));
|
||||
}
|
||||
|
||||
public void setCollapsedTitleTypeface(Typeface typeface) {
|
||||
this.k.a(typeface);
|
||||
}
|
||||
|
||||
public void setContentScrim(Drawable drawable) {
|
||||
Drawable drawable2 = this.n;
|
||||
if (drawable2 != drawable) {
|
||||
if (drawable2 != null) {
|
||||
drawable2.setCallback(null);
|
||||
}
|
||||
this.n = drawable != null ? drawable.mutate() : null;
|
||||
Drawable drawable3 = this.n;
|
||||
if (drawable3 != null) {
|
||||
drawable3.setBounds(0, 0, getWidth(), getHeight());
|
||||
this.n.setCallback(this);
|
||||
this.n.setAlpha(this.p);
|
||||
}
|
||||
ViewCompat.A(this);
|
||||
}
|
||||
}
|
||||
|
||||
public void setContentScrimColor(int i) {
|
||||
setContentScrim(new ColorDrawable(i));
|
||||
}
|
||||
|
||||
public void setContentScrimResource(int i) {
|
||||
setContentScrim(ContextCompat.c(getContext(), i));
|
||||
}
|
||||
|
||||
public void setExpandedTitleColor(int i) {
|
||||
setExpandedTitleTextColor(ColorStateList.valueOf(i));
|
||||
}
|
||||
|
||||
public void setExpandedTitleGravity(int i) {
|
||||
this.k.d(i);
|
||||
}
|
||||
|
||||
public void setExpandedTitleMarginBottom(int i) {
|
||||
this.i = i;
|
||||
requestLayout();
|
||||
}
|
||||
|
||||
public void setExpandedTitleMarginEnd(int i) {
|
||||
this.h = i;
|
||||
requestLayout();
|
||||
}
|
||||
|
||||
public void setExpandedTitleMarginStart(int i) {
|
||||
this.f = i;
|
||||
requestLayout();
|
||||
}
|
||||
|
||||
public void setExpandedTitleMarginTop(int i) {
|
||||
this.g = i;
|
||||
requestLayout();
|
||||
}
|
||||
|
||||
public void setExpandedTitleTextAppearance(int i) {
|
||||
this.k.c(i);
|
||||
}
|
||||
|
||||
public void setExpandedTitleTextColor(ColorStateList colorStateList) {
|
||||
this.k.b(colorStateList);
|
||||
}
|
||||
|
||||
public void setExpandedTitleTypeface(Typeface typeface) {
|
||||
this.k.b(typeface);
|
||||
}
|
||||
|
||||
void setScrimAlpha(int i) {
|
||||
Toolbar toolbar;
|
||||
if (i != this.p) {
|
||||
if (this.n != null && (toolbar = this.c) != null) {
|
||||
ViewCompat.A(toolbar);
|
||||
}
|
||||
this.p = i;
|
||||
ViewCompat.A(this);
|
||||
}
|
||||
}
|
||||
|
||||
public void setScrimAnimationDuration(long j) {
|
||||
this.s = j;
|
||||
}
|
||||
|
||||
public void setScrimVisibleHeightTrigger(int i) {
|
||||
if (this.t != i) {
|
||||
this.t = i;
|
||||
a();
|
||||
}
|
||||
}
|
||||
|
||||
public void setScrimsShown(boolean z) {
|
||||
a(z, ViewCompat.x(this) && !isInEditMode());
|
||||
}
|
||||
|
||||
public void setStatusBarScrim(Drawable drawable) {
|
||||
Drawable drawable2 = this.o;
|
||||
if (drawable2 != drawable) {
|
||||
if (drawable2 != null) {
|
||||
drawable2.setCallback(null);
|
||||
}
|
||||
this.o = drawable != null ? drawable.mutate() : null;
|
||||
Drawable drawable3 = this.o;
|
||||
if (drawable3 != null) {
|
||||
if (drawable3.isStateful()) {
|
||||
this.o.setState(getDrawableState());
|
||||
}
|
||||
DrawableCompat.a(this.o, ViewCompat.k(this));
|
||||
this.o.setVisible(getVisibility() == 0, false);
|
||||
this.o.setCallback(this);
|
||||
this.o.setAlpha(this.p);
|
||||
}
|
||||
ViewCompat.A(this);
|
||||
}
|
||||
}
|
||||
|
||||
public void setStatusBarScrimColor(int i) {
|
||||
setStatusBarScrim(new ColorDrawable(i));
|
||||
}
|
||||
|
||||
public void setStatusBarScrimResource(int i) {
|
||||
setStatusBarScrim(ContextCompat.c(getContext(), i));
|
||||
}
|
||||
|
||||
public void setTitle(CharSequence charSequence) {
|
||||
this.k.a(charSequence);
|
||||
c();
|
||||
}
|
||||
|
||||
public void setTitleEnabled(boolean z) {
|
||||
if (z != this.l) {
|
||||
this.l = z;
|
||||
c();
|
||||
d();
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setVisibility(int i) {
|
||||
super.setVisibility(i);
|
||||
boolean z = i == 0;
|
||||
Drawable drawable = this.o;
|
||||
if (drawable != null && drawable.isVisible() != z) {
|
||||
this.o.setVisible(z, false);
|
||||
}
|
||||
Drawable drawable2 = this.n;
|
||||
if (drawable2 == null || drawable2.isVisible() == z) {
|
||||
return;
|
||||
}
|
||||
this.n.setVisible(z, false);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected boolean verifyDrawable(Drawable drawable) {
|
||||
return super.verifyDrawable(drawable) || drawable == this.n || drawable == this.o;
|
||||
}
|
||||
|
||||
public CollapsingToolbarLayout(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, 0);
|
||||
}
|
||||
|
||||
public void setCollapsedTitleTextColor(ColorStateList colorStateList) {
|
||||
this.k.a(colorStateList);
|
||||
}
|
||||
|
||||
public CollapsingToolbarLayout(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
this.a = true;
|
||||
this.j = new Rect();
|
||||
this.t = -1;
|
||||
this.k = new CollapsingTextHelper(this);
|
||||
this.k.b(AnimationUtils.e);
|
||||
TypedArray c = ThemeEnforcement.c(context, attributeSet, R$styleable.CollapsingToolbarLayout, i, R$style.Widget_Design_CollapsingToolbar, new int[0]);
|
||||
this.k.d(c.getInt(R$styleable.CollapsingToolbarLayout_expandedTitleGravity, 8388691));
|
||||
this.k.b(c.getInt(R$styleable.CollapsingToolbarLayout_collapsedTitleGravity, 8388627));
|
||||
int dimensionPixelSize = c.getDimensionPixelSize(R$styleable.CollapsingToolbarLayout_expandedTitleMargin, 0);
|
||||
this.i = dimensionPixelSize;
|
||||
this.h = dimensionPixelSize;
|
||||
this.g = dimensionPixelSize;
|
||||
this.f = dimensionPixelSize;
|
||||
if (c.hasValue(R$styleable.CollapsingToolbarLayout_expandedTitleMarginStart)) {
|
||||
this.f = c.getDimensionPixelSize(R$styleable.CollapsingToolbarLayout_expandedTitleMarginStart, 0);
|
||||
}
|
||||
if (c.hasValue(R$styleable.CollapsingToolbarLayout_expandedTitleMarginEnd)) {
|
||||
this.h = c.getDimensionPixelSize(R$styleable.CollapsingToolbarLayout_expandedTitleMarginEnd, 0);
|
||||
}
|
||||
if (c.hasValue(R$styleable.CollapsingToolbarLayout_expandedTitleMarginTop)) {
|
||||
this.g = c.getDimensionPixelSize(R$styleable.CollapsingToolbarLayout_expandedTitleMarginTop, 0);
|
||||
}
|
||||
if (c.hasValue(R$styleable.CollapsingToolbarLayout_expandedTitleMarginBottom)) {
|
||||
this.i = c.getDimensionPixelSize(R$styleable.CollapsingToolbarLayout_expandedTitleMarginBottom, 0);
|
||||
}
|
||||
this.l = c.getBoolean(R$styleable.CollapsingToolbarLayout_titleEnabled, true);
|
||||
setTitle(c.getText(R$styleable.CollapsingToolbarLayout_title));
|
||||
this.k.c(R$style.TextAppearance_Design_CollapsingToolbar_Expanded);
|
||||
this.k.a(androidx.appcompat.R$style.TextAppearance_AppCompat_Widget_ActionBar_Title);
|
||||
if (c.hasValue(R$styleable.CollapsingToolbarLayout_expandedTitleTextAppearance)) {
|
||||
this.k.c(c.getResourceId(R$styleable.CollapsingToolbarLayout_expandedTitleTextAppearance, 0));
|
||||
}
|
||||
if (c.hasValue(R$styleable.CollapsingToolbarLayout_collapsedTitleTextAppearance)) {
|
||||
this.k.a(c.getResourceId(R$styleable.CollapsingToolbarLayout_collapsedTitleTextAppearance, 0));
|
||||
}
|
||||
this.t = c.getDimensionPixelSize(R$styleable.CollapsingToolbarLayout_scrimVisibleHeightTrigger, -1);
|
||||
this.s = c.getInt(R$styleable.CollapsingToolbarLayout_scrimAnimationDuration, 600);
|
||||
setContentScrim(c.getDrawable(R$styleable.CollapsingToolbarLayout_contentScrim));
|
||||
setStatusBarScrim(c.getDrawable(R$styleable.CollapsingToolbarLayout_statusBarScrim));
|
||||
this.b = c.getResourceId(R$styleable.CollapsingToolbarLayout_toolbarId, -1);
|
||||
c.recycle();
|
||||
setWillNotDraw(false);
|
||||
ViewCompat.a(this, new OnApplyWindowInsetsListener() { // from class: com.google.android.material.appbar.CollapsingToolbarLayout.1
|
||||
@Override // androidx.core.view.OnApplyWindowInsetsListener
|
||||
public WindowInsetsCompat a(View view, WindowInsetsCompat windowInsetsCompat) {
|
||||
return CollapsingToolbarLayout.this.a(windowInsetsCompat);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: protected */
|
||||
@Override // android.widget.FrameLayout, android.view.ViewGroup
|
||||
public LayoutParams generateDefaultLayoutParams() {
|
||||
return new LayoutParams(-1, -1);
|
||||
}
|
||||
|
||||
@Override // android.widget.FrameLayout, android.view.ViewGroup
|
||||
public FrameLayout.LayoutParams generateLayoutParams(AttributeSet attributeSet) {
|
||||
return new LayoutParams(getContext(), attributeSet);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: protected */
|
||||
@Override // android.widget.FrameLayout, android.view.ViewGroup
|
||||
public FrameLayout.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
||||
return new LayoutParams(layoutParams);
|
||||
}
|
||||
|
||||
private void c() {
|
||||
setContentDescription(getTitle());
|
||||
}
|
||||
|
||||
public void a(boolean z, boolean z2) {
|
||||
if (this.q != z) {
|
||||
if (z2) {
|
||||
a(z ? 255 : 0);
|
||||
} else {
|
||||
setScrimAlpha(z ? 255 : 0);
|
||||
}
|
||||
this.q = z;
|
||||
}
|
||||
}
|
||||
|
||||
public static class LayoutParams extends FrameLayout.LayoutParams {
|
||||
int a;
|
||||
float b;
|
||||
|
||||
public LayoutParams(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.a = 0;
|
||||
this.b = 0.5f;
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.CollapsingToolbarLayout_Layout);
|
||||
this.a = obtainStyledAttributes.getInt(R$styleable.CollapsingToolbarLayout_Layout_layout_collapseMode, 0);
|
||||
a(obtainStyledAttributes.getFloat(R$styleable.CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier, 0.5f));
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
|
||||
public void a(float f) {
|
||||
this.b = f;
|
||||
}
|
||||
|
||||
public LayoutParams(int i, int i2) {
|
||||
super(i, i2);
|
||||
this.a = 0;
|
||||
this.b = 0.5f;
|
||||
}
|
||||
|
||||
public LayoutParams(ViewGroup.LayoutParams layoutParams) {
|
||||
super(layoutParams);
|
||||
this.a = 0;
|
||||
this.b = 0.5f;
|
||||
}
|
||||
}
|
||||
|
||||
private void a(int i) {
|
||||
b();
|
||||
ValueAnimator valueAnimator = this.r;
|
||||
if (valueAnimator == null) {
|
||||
this.r = new ValueAnimator();
|
||||
this.r.setDuration(this.s);
|
||||
this.r.setInterpolator(i > this.p ? AnimationUtils.c : AnimationUtils.d);
|
||||
this.r.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: com.google.android.material.appbar.CollapsingToolbarLayout.2
|
||||
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
||||
public void onAnimationUpdate(ValueAnimator valueAnimator2) {
|
||||
CollapsingToolbarLayout.this.setScrimAlpha(((Integer) valueAnimator2.getAnimatedValue()).intValue());
|
||||
}
|
||||
});
|
||||
} else if (valueAnimator.isRunning()) {
|
||||
this.r.cancel();
|
||||
}
|
||||
this.r.setIntValues(this.p, i);
|
||||
this.r.start();
|
||||
}
|
||||
|
||||
static ViewOffsetHelper d(View view) {
|
||||
ViewOffsetHelper viewOffsetHelper = (ViewOffsetHelper) view.getTag(R$id.view_offset_helper);
|
||||
if (viewOffsetHelper != null) {
|
||||
return viewOffsetHelper;
|
||||
}
|
||||
ViewOffsetHelper viewOffsetHelper2 = new ViewOffsetHelper(view);
|
||||
view.setTag(R$id.view_offset_helper, viewOffsetHelper2);
|
||||
return viewOffsetHelper2;
|
||||
}
|
||||
|
||||
private View b(View view) {
|
||||
for (ViewParent parent = view.getParent(); parent != this && parent != null; parent = parent.getParent()) {
|
||||
if (parent instanceof View) {
|
||||
view = parent;
|
||||
}
|
||||
}
|
||||
return view;
|
||||
}
|
||||
|
||||
final void a() {
|
||||
if (this.n == null && this.o == null) {
|
||||
return;
|
||||
}
|
||||
setScrimsShown(getHeight() + this.v < getScrimVisibleHeightTrigger());
|
||||
}
|
||||
|
||||
final int a(View view) {
|
||||
return ((getHeight() - d(view).a()) - view.getHeight()) - ((FrameLayout.LayoutParams) ((LayoutParams) view.getLayoutParams())).bottomMargin;
|
||||
}
|
||||
}
|
||||
304
sources/com/google/android/material/appbar/HeaderBehavior.java
Normal file
304
sources/com/google/android/material/appbar/HeaderBehavior.java
Normal file
@@ -0,0 +1,304 @@
|
||||
package com.google.android.material.appbar;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.VelocityTracker;
|
||||
import android.view.View;
|
||||
import android.widget.OverScroller;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import androidx.core.view.ViewCompat;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
abstract class HeaderBehavior<V extends View> extends ViewOffsetBehavior<V> {
|
||||
private Runnable d;
|
||||
OverScroller e;
|
||||
private boolean f;
|
||||
private int g;
|
||||
private int h;
|
||||
private int i;
|
||||
private VelocityTracker j;
|
||||
|
||||
private class FlingRunnable implements Runnable {
|
||||
private final CoordinatorLayout a;
|
||||
private final V b;
|
||||
|
||||
FlingRunnable(CoordinatorLayout coordinatorLayout, V v) {
|
||||
this.a = coordinatorLayout;
|
||||
this.b = v;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public void run() {
|
||||
OverScroller overScroller;
|
||||
if (this.b == null || (overScroller = HeaderBehavior.this.e) == null) {
|
||||
return;
|
||||
}
|
||||
if (!overScroller.computeScrollOffset()) {
|
||||
HeaderBehavior.this.e(this.a, this.b);
|
||||
return;
|
||||
}
|
||||
HeaderBehavior headerBehavior = HeaderBehavior.this;
|
||||
headerBehavior.c(this.a, (CoordinatorLayout) this.b, headerBehavior.e.getCurrY());
|
||||
ViewCompat.a(this.b, this);
|
||||
}
|
||||
}
|
||||
|
||||
public HeaderBehavior() {
|
||||
this.g = -1;
|
||||
this.i = -1;
|
||||
}
|
||||
|
||||
private void d() {
|
||||
if (this.j == null) {
|
||||
this.j = VelocityTracker.obtain();
|
||||
}
|
||||
}
|
||||
|
||||
abstract boolean a(V v);
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x002c, code lost:
|
||||
|
||||
if (r0 != 3) goto L35;
|
||||
*/
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public boolean a(androidx.coordinatorlayout.widget.CoordinatorLayout r5, V r6, android.view.MotionEvent r7) {
|
||||
/*
|
||||
r4 = this;
|
||||
int r0 = r4.i
|
||||
if (r0 >= 0) goto L12
|
||||
android.content.Context r0 = r5.getContext()
|
||||
android.view.ViewConfiguration r0 = android.view.ViewConfiguration.get(r0)
|
||||
int r0 = r0.getScaledTouchSlop()
|
||||
r4.i = r0
|
||||
L12:
|
||||
int r0 = r7.getAction()
|
||||
r1 = 2
|
||||
r2 = 1
|
||||
if (r0 != r1) goto L1f
|
||||
boolean r0 = r4.f
|
||||
if (r0 == 0) goto L1f
|
||||
return r2
|
||||
L1f:
|
||||
int r0 = r7.getActionMasked()
|
||||
r3 = 0
|
||||
if (r0 == 0) goto L60
|
||||
r5 = -1
|
||||
if (r0 == r2) goto L51
|
||||
if (r0 == r1) goto L2f
|
||||
r6 = 3
|
||||
if (r0 == r6) goto L51
|
||||
goto L83
|
||||
L2f:
|
||||
int r6 = r4.g
|
||||
if (r6 != r5) goto L34
|
||||
goto L83
|
||||
L34:
|
||||
int r6 = r7.findPointerIndex(r6)
|
||||
if (r6 != r5) goto L3b
|
||||
goto L83
|
||||
L3b:
|
||||
float r5 = r7.getY(r6)
|
||||
int r5 = (int) r5
|
||||
int r6 = r4.h
|
||||
int r6 = r5 - r6
|
||||
int r6 = java.lang.Math.abs(r6)
|
||||
int r0 = r4.i
|
||||
if (r6 <= r0) goto L83
|
||||
r4.f = r2
|
||||
r4.h = r5
|
||||
goto L83
|
||||
L51:
|
||||
r4.f = r3
|
||||
r4.g = r5
|
||||
android.view.VelocityTracker r5 = r4.j
|
||||
if (r5 == 0) goto L83
|
||||
r5.recycle()
|
||||
r5 = 0
|
||||
r4.j = r5
|
||||
goto L83
|
||||
L60:
|
||||
r4.f = r3
|
||||
float r0 = r7.getX()
|
||||
int r0 = (int) r0
|
||||
float r1 = r7.getY()
|
||||
int r1 = (int) r1
|
||||
boolean r2 = r4.a(r6)
|
||||
if (r2 == 0) goto L83
|
||||
boolean r5 = r5.a(r6, r0, r1)
|
||||
if (r5 == 0) goto L83
|
||||
r4.h = r1
|
||||
int r5 = r7.getPointerId(r3)
|
||||
r4.g = r5
|
||||
r4.d()
|
||||
L83:
|
||||
android.view.VelocityTracker r5 = r4.j
|
||||
if (r5 == 0) goto L8a
|
||||
r5.addMovement(r7)
|
||||
L8a:
|
||||
boolean r5 = r4.f
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.appbar.HeaderBehavior.a(androidx.coordinatorlayout.widget.CoordinatorLayout, android.view.View, android.view.MotionEvent):boolean");
|
||||
}
|
||||
|
||||
abstract int b(V v);
|
||||
|
||||
abstract int b(CoordinatorLayout coordinatorLayout, V v, int i, int i2, int i3);
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:11:0x0021, code lost:
|
||||
|
||||
if (r0 != 3) goto L39;
|
||||
*/
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public boolean b(androidx.coordinatorlayout.widget.CoordinatorLayout r12, V r13, android.view.MotionEvent r14) {
|
||||
/*
|
||||
r11 = this;
|
||||
int r0 = r11.i
|
||||
if (r0 >= 0) goto L12
|
||||
android.content.Context r0 = r12.getContext()
|
||||
android.view.ViewConfiguration r0 = android.view.ViewConfiguration.get(r0)
|
||||
int r0 = r0.getScaledTouchSlop()
|
||||
r11.i = r0
|
||||
L12:
|
||||
int r0 = r14.getActionMasked()
|
||||
r1 = 1
|
||||
r2 = 0
|
||||
if (r0 == 0) goto L8d
|
||||
r3 = -1
|
||||
if (r0 == r1) goto L5c
|
||||
r4 = 2
|
||||
if (r0 == r4) goto L25
|
||||
r12 = 3
|
||||
if (r0 == r12) goto L7e
|
||||
goto Lae
|
||||
L25:
|
||||
int r0 = r11.g
|
||||
int r0 = r14.findPointerIndex(r0)
|
||||
if (r0 != r3) goto L2e
|
||||
return r2
|
||||
L2e:
|
||||
float r0 = r14.getY(r0)
|
||||
int r0 = (int) r0
|
||||
int r2 = r11.h
|
||||
int r2 = r2 - r0
|
||||
boolean r3 = r11.f
|
||||
if (r3 != 0) goto L49
|
||||
int r3 = java.lang.Math.abs(r2)
|
||||
int r4 = r11.i
|
||||
if (r3 <= r4) goto L49
|
||||
r11.f = r1
|
||||
if (r2 <= 0) goto L48
|
||||
int r2 = r2 - r4
|
||||
goto L49
|
||||
L48:
|
||||
int r2 = r2 + r4
|
||||
L49:
|
||||
r6 = r2
|
||||
boolean r2 = r11.f
|
||||
if (r2 == 0) goto Lae
|
||||
r11.h = r0
|
||||
int r7 = r11.b(r13)
|
||||
r8 = 0
|
||||
r3 = r11
|
||||
r4 = r12
|
||||
r5 = r13
|
||||
r3.a(r4, r5, r6, r7, r8)
|
||||
goto Lae
|
||||
L5c:
|
||||
android.view.VelocityTracker r0 = r11.j
|
||||
if (r0 == 0) goto L7e
|
||||
r0.addMovement(r14)
|
||||
android.view.VelocityTracker r0 = r11.j
|
||||
r4 = 1000(0x3e8, float:1.401E-42)
|
||||
r0.computeCurrentVelocity(r4)
|
||||
android.view.VelocityTracker r0 = r11.j
|
||||
int r4 = r11.g
|
||||
float r10 = r0.getYVelocity(r4)
|
||||
int r0 = r11.c(r13)
|
||||
int r8 = -r0
|
||||
r9 = 0
|
||||
r5 = r11
|
||||
r6 = r12
|
||||
r7 = r13
|
||||
r5.a(r6, r7, r8, r9, r10)
|
||||
L7e:
|
||||
r11.f = r2
|
||||
r11.g = r3
|
||||
android.view.VelocityTracker r12 = r11.j
|
||||
if (r12 == 0) goto Lae
|
||||
r12.recycle()
|
||||
r12 = 0
|
||||
r11.j = r12
|
||||
goto Lae
|
||||
L8d:
|
||||
float r0 = r14.getX()
|
||||
int r0 = (int) r0
|
||||
float r3 = r14.getY()
|
||||
int r3 = (int) r3
|
||||
boolean r12 = r12.a(r13, r0, r3)
|
||||
if (r12 == 0) goto Lb6
|
||||
boolean r12 = r11.a(r13)
|
||||
if (r12 == 0) goto Lb6
|
||||
r11.h = r3
|
||||
int r12 = r14.getPointerId(r2)
|
||||
r11.g = r12
|
||||
r11.d()
|
||||
Lae:
|
||||
android.view.VelocityTracker r12 = r11.j
|
||||
if (r12 == 0) goto Lb5
|
||||
r12.addMovement(r14)
|
||||
Lb5:
|
||||
return r1
|
||||
Lb6:
|
||||
return r2
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.appbar.HeaderBehavior.b(androidx.coordinatorlayout.widget.CoordinatorLayout, android.view.View, android.view.MotionEvent):boolean");
|
||||
}
|
||||
|
||||
abstract int c();
|
||||
|
||||
abstract int c(V v);
|
||||
|
||||
int c(CoordinatorLayout coordinatorLayout, V v, int i) {
|
||||
return b(coordinatorLayout, (CoordinatorLayout) v, i, Integer.MIN_VALUE, Integer.MAX_VALUE);
|
||||
}
|
||||
|
||||
abstract void e(CoordinatorLayout coordinatorLayout, V v);
|
||||
|
||||
public HeaderBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.g = -1;
|
||||
this.i = -1;
|
||||
}
|
||||
|
||||
final int a(CoordinatorLayout coordinatorLayout, V v, int i, int i2, int i3) {
|
||||
return b(coordinatorLayout, (CoordinatorLayout) v, c() - i, i2, i3);
|
||||
}
|
||||
|
||||
final boolean a(CoordinatorLayout coordinatorLayout, V v, int i, int i2, float f) {
|
||||
Runnable runnable = this.d;
|
||||
if (runnable != null) {
|
||||
v.removeCallbacks(runnable);
|
||||
this.d = null;
|
||||
}
|
||||
if (this.e == null) {
|
||||
this.e = new OverScroller(v.getContext());
|
||||
}
|
||||
this.e.fling(0, b(), 0, Math.round(f), 0, 0, i, i2);
|
||||
if (this.e.computeScrollOffset()) {
|
||||
this.d = new FlingRunnable(coordinatorLayout, v);
|
||||
ViewCompat.a(v, this.d);
|
||||
return true;
|
||||
}
|
||||
e(coordinatorLayout, v);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
package com.google.android.material.appbar;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import androidx.core.math.MathUtils;
|
||||
import androidx.core.view.GravityCompat;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
abstract class HeaderScrollingViewBehavior extends ViewOffsetBehavior<View> {
|
||||
final Rect d;
|
||||
final Rect e;
|
||||
private int f;
|
||||
private int g;
|
||||
|
||||
public HeaderScrollingViewBehavior() {
|
||||
this.d = new Rect();
|
||||
this.e = new Rect();
|
||||
this.f = 0;
|
||||
}
|
||||
|
||||
private static int c(int i) {
|
||||
if (i == 0) {
|
||||
return 8388659;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
abstract View a(List<View> list);
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, View view, int i, int i2, int i3, int i4) {
|
||||
View a;
|
||||
int i5 = view.getLayoutParams().height;
|
||||
if ((i5 != -1 && i5 != -2) || (a = a(coordinatorLayout.b(view))) == null) {
|
||||
return false;
|
||||
}
|
||||
if (ViewCompat.h(a) && !ViewCompat.h(view)) {
|
||||
ViewCompat.a(view, true);
|
||||
if (ViewCompat.h(view)) {
|
||||
view.requestLayout();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
int size = View.MeasureSpec.getSize(i3);
|
||||
if (size == 0) {
|
||||
size = coordinatorLayout.getHeight();
|
||||
}
|
||||
coordinatorLayout.a(view, i, i2, View.MeasureSpec.makeMeasureSpec((size - a.getMeasuredHeight()) + c(a), i5 == -1 ? 1073741824 : Integer.MIN_VALUE), i4);
|
||||
return true;
|
||||
}
|
||||
|
||||
abstract float b(View view);
|
||||
|
||||
@Override // com.google.android.material.appbar.ViewOffsetBehavior
|
||||
protected void b(CoordinatorLayout coordinatorLayout, View view, int i) {
|
||||
View a = a(coordinatorLayout.b(view));
|
||||
if (a == null) {
|
||||
super.b(coordinatorLayout, (CoordinatorLayout) view, i);
|
||||
this.f = 0;
|
||||
return;
|
||||
}
|
||||
CoordinatorLayout.LayoutParams layoutParams = (CoordinatorLayout.LayoutParams) view.getLayoutParams();
|
||||
Rect rect = this.d;
|
||||
rect.set(coordinatorLayout.getPaddingLeft() + ((ViewGroup.MarginLayoutParams) layoutParams).leftMargin, a.getBottom() + ((ViewGroup.MarginLayoutParams) layoutParams).topMargin, (coordinatorLayout.getWidth() - coordinatorLayout.getPaddingRight()) - ((ViewGroup.MarginLayoutParams) layoutParams).rightMargin, ((coordinatorLayout.getHeight() + a.getBottom()) - coordinatorLayout.getPaddingBottom()) - ((ViewGroup.MarginLayoutParams) layoutParams).bottomMargin);
|
||||
WindowInsetsCompat lastWindowInsets = coordinatorLayout.getLastWindowInsets();
|
||||
if (lastWindowInsets != null && ViewCompat.h(coordinatorLayout) && !ViewCompat.h(view)) {
|
||||
rect.left += lastWindowInsets.c();
|
||||
rect.right -= lastWindowInsets.d();
|
||||
}
|
||||
Rect rect2 = this.e;
|
||||
GravityCompat.a(c(layoutParams.c), view.getMeasuredWidth(), view.getMeasuredHeight(), rect, rect2, i);
|
||||
int a2 = a(a);
|
||||
view.layout(rect2.left, rect2.top - a2, rect2.right, rect2.bottom - a2);
|
||||
this.f = rect2.top - a.getBottom();
|
||||
}
|
||||
|
||||
int c(View view) {
|
||||
return view.getMeasuredHeight();
|
||||
}
|
||||
|
||||
final int d() {
|
||||
return this.f;
|
||||
}
|
||||
|
||||
public final int c() {
|
||||
return this.g;
|
||||
}
|
||||
|
||||
public HeaderScrollingViewBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.d = new Rect();
|
||||
this.e = new Rect();
|
||||
this.f = 0;
|
||||
}
|
||||
|
||||
final int a(View view) {
|
||||
if (this.g == 0) {
|
||||
return 0;
|
||||
}
|
||||
float b = b(view);
|
||||
int i = this.g;
|
||||
return MathUtils.a((int) (b * i), 0, i);
|
||||
}
|
||||
|
||||
public final void b(int i) {
|
||||
this.g = i;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.google.android.material.appbar;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class ViewOffsetBehavior<V extends View> extends CoordinatorLayout.Behavior<V> {
|
||||
private ViewOffsetHelper a;
|
||||
private int b;
|
||||
private int c;
|
||||
|
||||
public ViewOffsetBehavior() {
|
||||
this.b = 0;
|
||||
this.c = 0;
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, V v, int i) {
|
||||
b(coordinatorLayout, (CoordinatorLayout) v, i);
|
||||
if (this.a == null) {
|
||||
this.a = new ViewOffsetHelper(v);
|
||||
}
|
||||
this.a.c();
|
||||
int i2 = this.b;
|
||||
if (i2 != 0) {
|
||||
this.a.b(i2);
|
||||
this.b = 0;
|
||||
}
|
||||
int i3 = this.c;
|
||||
if (i3 == 0) {
|
||||
return true;
|
||||
}
|
||||
this.a.a(i3);
|
||||
this.c = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
protected void b(CoordinatorLayout coordinatorLayout, V v, int i) {
|
||||
coordinatorLayout.c(v, i);
|
||||
}
|
||||
|
||||
public int b() {
|
||||
ViewOffsetHelper viewOffsetHelper = this.a;
|
||||
if (viewOffsetHelper != null) {
|
||||
return viewOffsetHelper.b();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public ViewOffsetBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.b = 0;
|
||||
this.c = 0;
|
||||
}
|
||||
|
||||
public boolean a(int i) {
|
||||
ViewOffsetHelper viewOffsetHelper = this.a;
|
||||
if (viewOffsetHelper != null) {
|
||||
return viewOffsetHelper.b(i);
|
||||
}
|
||||
this.b = i;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.google.android.material.appbar;
|
||||
|
||||
import android.view.View;
|
||||
import androidx.core.view.ViewCompat;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class ViewOffsetHelper {
|
||||
private final View a;
|
||||
private int b;
|
||||
private int c;
|
||||
private int d;
|
||||
private int e;
|
||||
|
||||
public ViewOffsetHelper(View view) {
|
||||
this.a = view;
|
||||
}
|
||||
|
||||
private void d() {
|
||||
View view = this.a;
|
||||
ViewCompat.d(view, this.d - (view.getTop() - this.b));
|
||||
View view2 = this.a;
|
||||
ViewCompat.c(view2, this.e - (view2.getLeft() - this.c));
|
||||
}
|
||||
|
||||
public boolean a(int i) {
|
||||
if (this.e == i) {
|
||||
return false;
|
||||
}
|
||||
this.e = i;
|
||||
d();
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean b(int i) {
|
||||
if (this.d == i) {
|
||||
return false;
|
||||
}
|
||||
this.d = i;
|
||||
d();
|
||||
return true;
|
||||
}
|
||||
|
||||
public void c() {
|
||||
this.b = this.a.getTop();
|
||||
this.c = this.a.getLeft();
|
||||
d();
|
||||
}
|
||||
|
||||
public int a() {
|
||||
return this.b;
|
||||
}
|
||||
|
||||
public int b() {
|
||||
return this.d;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.google.android.material.appbar;
|
||||
|
||||
import android.R;
|
||||
import android.animation.AnimatorInflater;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.animation.StateListAnimator;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewOutlineProvider;
|
||||
import com.google.android.material.R$attr;
|
||||
import com.google.android.material.R$integer;
|
||||
import com.google.android.material.internal.ThemeEnforcement;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class ViewUtilsLollipop {
|
||||
private static final int[] a = {R.attr.stateListAnimator};
|
||||
|
||||
static void a(View view) {
|
||||
view.setOutlineProvider(ViewOutlineProvider.BOUNDS);
|
||||
}
|
||||
|
||||
static void a(View view, AttributeSet attributeSet, int i, int i2) {
|
||||
Context context = view.getContext();
|
||||
TypedArray c = ThemeEnforcement.c(context, attributeSet, a, i, i2, new int[0]);
|
||||
try {
|
||||
if (c.hasValue(0)) {
|
||||
view.setStateListAnimator(AnimatorInflater.loadStateListAnimator(context, c.getResourceId(0, 0)));
|
||||
}
|
||||
} finally {
|
||||
c.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
static void a(View view, float f) {
|
||||
int integer = view.getResources().getInteger(R$integer.app_bar_elevation_anim_duration);
|
||||
StateListAnimator stateListAnimator = new StateListAnimator();
|
||||
long j = integer;
|
||||
stateListAnimator.addState(new int[]{R.attr.enabled, R$attr.state_liftable, -R$attr.state_lifted}, ObjectAnimator.ofFloat(view, "elevation", 0.0f).setDuration(j));
|
||||
stateListAnimator.addState(new int[]{R.attr.enabled}, ObjectAnimator.ofFloat(view, "elevation", f).setDuration(j));
|
||||
stateListAnimator.addState(new int[0], ObjectAnimator.ofFloat(view, "elevation", 0.0f).setDuration(0L));
|
||||
view.setStateListAnimator(stateListAnimator);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package com.google.android.material.behavior;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.TimeInterpolator;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewPropertyAnimator;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import com.google.android.material.animation.AnimationUtils;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class HideBottomViewOnScrollBehavior<V extends View> extends CoordinatorLayout.Behavior<V> {
|
||||
private int a;
|
||||
private int b;
|
||||
private ViewPropertyAnimator c;
|
||||
|
||||
public HideBottomViewOnScrollBehavior() {
|
||||
this.a = 0;
|
||||
this.b = 2;
|
||||
}
|
||||
|
||||
protected void b(V v) {
|
||||
ViewPropertyAnimator viewPropertyAnimator = this.c;
|
||||
if (viewPropertyAnimator != null) {
|
||||
viewPropertyAnimator.cancel();
|
||||
v.clearAnimation();
|
||||
}
|
||||
this.b = 2;
|
||||
a((HideBottomViewOnScrollBehavior<V>) v, 0, 225L, AnimationUtils.d);
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean b(CoordinatorLayout coordinatorLayout, V v, View view, View view2, int i) {
|
||||
return i == 2;
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, V v, int i) {
|
||||
this.a = v.getMeasuredHeight();
|
||||
return super.a(coordinatorLayout, (CoordinatorLayout) v, i);
|
||||
}
|
||||
|
||||
public HideBottomViewOnScrollBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.a = 0;
|
||||
this.b = 2;
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public void a(CoordinatorLayout coordinatorLayout, V v, View view, int i, int i2, int i3, int i4) {
|
||||
if (this.b != 1 && i2 > 0) {
|
||||
a((HideBottomViewOnScrollBehavior<V>) v);
|
||||
} else {
|
||||
if (this.b == 2 || i2 >= 0) {
|
||||
return;
|
||||
}
|
||||
b(v);
|
||||
}
|
||||
}
|
||||
|
||||
protected void a(V v) {
|
||||
ViewPropertyAnimator viewPropertyAnimator = this.c;
|
||||
if (viewPropertyAnimator != null) {
|
||||
viewPropertyAnimator.cancel();
|
||||
v.clearAnimation();
|
||||
}
|
||||
this.b = 1;
|
||||
a((HideBottomViewOnScrollBehavior<V>) v, this.a, 175L, AnimationUtils.c);
|
||||
}
|
||||
|
||||
private void a(V v, int i, long j, TimeInterpolator timeInterpolator) {
|
||||
this.c = v.animate().translationY(i).setInterpolator(timeInterpolator).setDuration(j).setListener(new AnimatorListenerAdapter() { // from class: com.google.android.material.behavior.HideBottomViewOnScrollBehavior.1
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator) {
|
||||
HideBottomViewOnScrollBehavior.this.c = null;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,262 @@
|
||||
package com.google.android.material.behavior;
|
||||
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewParent;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.customview.widget.ViewDragHelper;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class SwipeDismissBehavior<V extends View> extends CoordinatorLayout.Behavior<V> {
|
||||
ViewDragHelper a;
|
||||
OnDismissListener b;
|
||||
private boolean c;
|
||||
private boolean e;
|
||||
private float d = 0.0f;
|
||||
int f = 2;
|
||||
float g = 0.5f;
|
||||
float h = 0.0f;
|
||||
float i = 0.5f;
|
||||
private final ViewDragHelper.Callback j = new ViewDragHelper.Callback() { // from class: com.google.android.material.behavior.SwipeDismissBehavior.1
|
||||
private int a;
|
||||
private int b = -1;
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public void a(View view, int i) {
|
||||
this.b = i;
|
||||
this.a = view.getLeft();
|
||||
ViewParent parent = view.getParent();
|
||||
if (parent != null) {
|
||||
parent.requestDisallowInterceptTouchEvent(true);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public boolean b(View view, int i) {
|
||||
return this.b == -1 && SwipeDismissBehavior.this.a(view);
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public void c(int i) {
|
||||
OnDismissListener onDismissListener = SwipeDismissBehavior.this.b;
|
||||
if (onDismissListener != null) {
|
||||
onDismissListener.a(i);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public int b(View view, int i, int i2) {
|
||||
return view.getTop();
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public void a(View view, float f, float f2) {
|
||||
int i;
|
||||
boolean z;
|
||||
OnDismissListener onDismissListener;
|
||||
this.b = -1;
|
||||
int width = view.getWidth();
|
||||
if (a(view, f)) {
|
||||
int left = view.getLeft();
|
||||
int i2 = this.a;
|
||||
i = left < i2 ? i2 - width : i2 + width;
|
||||
z = true;
|
||||
} else {
|
||||
i = this.a;
|
||||
z = false;
|
||||
}
|
||||
if (SwipeDismissBehavior.this.a.c(i, view.getTop())) {
|
||||
ViewCompat.a(view, new SettleRunnable(view, z));
|
||||
} else {
|
||||
if (!z || (onDismissListener = SwipeDismissBehavior.this.b) == null) {
|
||||
return;
|
||||
}
|
||||
onDismissListener.a(view);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean a(View view, float f) {
|
||||
if (f == 0.0f) {
|
||||
return Math.abs(view.getLeft() - this.a) >= Math.round(((float) view.getWidth()) * SwipeDismissBehavior.this.g);
|
||||
}
|
||||
boolean z = ViewCompat.k(view) == 1;
|
||||
int i = SwipeDismissBehavior.this.f;
|
||||
if (i == 2) {
|
||||
return true;
|
||||
}
|
||||
if (i == 0) {
|
||||
if (z) {
|
||||
if (f >= 0.0f) {
|
||||
return false;
|
||||
}
|
||||
} else if (f <= 0.0f) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (i != 1) {
|
||||
return false;
|
||||
}
|
||||
if (z) {
|
||||
if (f <= 0.0f) {
|
||||
return false;
|
||||
}
|
||||
} else if (f >= 0.0f) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public int a(View view) {
|
||||
return view.getWidth();
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public int a(View view, int i, int i2) {
|
||||
int width;
|
||||
int width2;
|
||||
int width3;
|
||||
boolean z = ViewCompat.k(view) == 1;
|
||||
int i3 = SwipeDismissBehavior.this.f;
|
||||
if (i3 == 0) {
|
||||
if (z) {
|
||||
width = this.a - view.getWidth();
|
||||
width2 = this.a;
|
||||
} else {
|
||||
width = this.a;
|
||||
width3 = view.getWidth();
|
||||
width2 = width3 + width;
|
||||
}
|
||||
} else if (i3 != 1) {
|
||||
width = this.a - view.getWidth();
|
||||
width2 = view.getWidth() + this.a;
|
||||
} else if (z) {
|
||||
width = this.a;
|
||||
width3 = view.getWidth();
|
||||
width2 = width3 + width;
|
||||
} else {
|
||||
width = this.a - view.getWidth();
|
||||
width2 = this.a;
|
||||
}
|
||||
return SwipeDismissBehavior.a(width, i, width2);
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public void a(View view, int i, int i2, int i3, int i4) {
|
||||
float width = this.a + (view.getWidth() * SwipeDismissBehavior.this.h);
|
||||
float width2 = this.a + (view.getWidth() * SwipeDismissBehavior.this.i);
|
||||
float f = i;
|
||||
if (f <= width) {
|
||||
view.setAlpha(1.0f);
|
||||
} else if (f >= width2) {
|
||||
view.setAlpha(0.0f);
|
||||
} else {
|
||||
view.setAlpha(SwipeDismissBehavior.a(0.0f, 1.0f - SwipeDismissBehavior.b(width, width2, f), 1.0f));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public interface OnDismissListener {
|
||||
void a(int i);
|
||||
|
||||
void a(View view);
|
||||
}
|
||||
|
||||
private class SettleRunnable implements Runnable {
|
||||
private final View a;
|
||||
private final boolean b;
|
||||
|
||||
SettleRunnable(View view, boolean z) {
|
||||
this.a = view;
|
||||
this.b = z;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public void run() {
|
||||
OnDismissListener onDismissListener;
|
||||
ViewDragHelper viewDragHelper = SwipeDismissBehavior.this.a;
|
||||
if (viewDragHelper != null && viewDragHelper.a(true)) {
|
||||
ViewCompat.a(this.a, this);
|
||||
} else {
|
||||
if (!this.b || (onDismissListener = SwipeDismissBehavior.this.b) == null) {
|
||||
return;
|
||||
}
|
||||
onDismissListener.a(this.a);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static float b(float f, float f2, float f3) {
|
||||
return (f3 - f) / (f2 - f);
|
||||
}
|
||||
|
||||
public void a(OnDismissListener onDismissListener) {
|
||||
this.b = onDismissListener;
|
||||
}
|
||||
|
||||
public boolean a(View view) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void b(float f) {
|
||||
this.h = a(0.0f, f, 1.0f);
|
||||
}
|
||||
|
||||
public void a(int i) {
|
||||
this.f = i;
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean b(CoordinatorLayout coordinatorLayout, V v, MotionEvent motionEvent) {
|
||||
ViewDragHelper viewDragHelper = this.a;
|
||||
if (viewDragHelper == null) {
|
||||
return false;
|
||||
}
|
||||
viewDragHelper.a(motionEvent);
|
||||
return true;
|
||||
}
|
||||
|
||||
public void a(float f) {
|
||||
this.i = a(0.0f, f, 1.0f);
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, V v, MotionEvent motionEvent) {
|
||||
boolean z = this.c;
|
||||
int actionMasked = motionEvent.getActionMasked();
|
||||
if (actionMasked == 0) {
|
||||
this.c = coordinatorLayout.a(v, (int) motionEvent.getX(), (int) motionEvent.getY());
|
||||
z = this.c;
|
||||
} else if (actionMasked == 1 || actionMasked == 3) {
|
||||
this.c = false;
|
||||
}
|
||||
if (!z) {
|
||||
return false;
|
||||
}
|
||||
a((ViewGroup) coordinatorLayout);
|
||||
return this.a.b(motionEvent);
|
||||
}
|
||||
|
||||
private void a(ViewGroup viewGroup) {
|
||||
ViewDragHelper a;
|
||||
if (this.a == null) {
|
||||
if (this.e) {
|
||||
a = ViewDragHelper.a(viewGroup, this.d, this.j);
|
||||
} else {
|
||||
a = ViewDragHelper.a(viewGroup, this.j);
|
||||
}
|
||||
this.a = a;
|
||||
}
|
||||
}
|
||||
|
||||
static float a(float f, float f2, float f3) {
|
||||
return Math.min(Math.max(f, f2), f3);
|
||||
}
|
||||
|
||||
static int a(int i, int i2, int i3) {
|
||||
return Math.min(Math.max(i, i2), i3);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,476 @@
|
||||
package com.google.android.material.bottomappbar;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.AnimatorSet;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import androidx.appcompat.widget.ActionMenuView;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import androidx.core.graphics.drawable.DrawableCompat;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.customview.view.AbsSavedState;
|
||||
import com.google.android.material.animation.AnimationUtils;
|
||||
import com.google.android.material.behavior.HideBottomViewOnScrollBehavior;
|
||||
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
||||
import com.google.android.material.shape.MaterialShapeDrawable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class BottomAppBar extends Toolbar implements CoordinatorLayout.AttachedBehavior {
|
||||
private final int Q;
|
||||
private final MaterialShapeDrawable R;
|
||||
private final BottomAppBarTopEdgeTreatment S;
|
||||
private Animator T;
|
||||
private Animator U;
|
||||
private Animator V;
|
||||
private int W;
|
||||
private boolean a0;
|
||||
private boolean b0;
|
||||
AnimatorListenerAdapter c0;
|
||||
|
||||
static class SavedState extends AbsSavedState {
|
||||
public static final Parcelable.Creator<SavedState> CREATOR = new Parcelable.ClassLoaderCreator<SavedState>() { // from class: com.google.android.material.bottomappbar.BottomAppBar.SavedState.1
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public SavedState[] newArray(int i) {
|
||||
return new SavedState[i];
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // android.os.Parcelable.ClassLoaderCreator
|
||||
public SavedState createFromParcel(Parcel parcel, ClassLoader classLoader) {
|
||||
return new SavedState(parcel, classLoader);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public SavedState createFromParcel(Parcel parcel) {
|
||||
return new SavedState(parcel, null);
|
||||
}
|
||||
};
|
||||
int fabAlignmentMode;
|
||||
boolean fabAttached;
|
||||
|
||||
public SavedState(Parcelable parcelable) {
|
||||
super(parcelable);
|
||||
}
|
||||
|
||||
@Override // androidx.customview.view.AbsSavedState, android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
super.writeToParcel(parcel, i);
|
||||
parcel.writeInt(this.fabAlignmentMode);
|
||||
parcel.writeInt(this.fabAttached ? 1 : 0);
|
||||
}
|
||||
|
||||
public SavedState(Parcel parcel, ClassLoader classLoader) {
|
||||
super(parcel, classLoader);
|
||||
this.fabAlignmentMode = parcel.readInt();
|
||||
this.fabAttached = parcel.readInt() != 0;
|
||||
}
|
||||
}
|
||||
|
||||
static /* synthetic */ void c(BottomAppBar bottomAppBar) {
|
||||
bottomAppBar.p();
|
||||
throw null;
|
||||
}
|
||||
|
||||
private ActionMenuView getActionMenuView() {
|
||||
for (int i = 0; i < getChildCount(); i++) {
|
||||
View childAt = getChildAt(i);
|
||||
if (childAt instanceof ActionMenuView) {
|
||||
return (ActionMenuView) childAt;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private float getFabTranslationX() {
|
||||
return a(this.W);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public float getFabTranslationY() {
|
||||
return a(this.b0);
|
||||
}
|
||||
|
||||
private void l() {
|
||||
Animator animator = this.T;
|
||||
if (animator != null) {
|
||||
animator.cancel();
|
||||
}
|
||||
Animator animator2 = this.V;
|
||||
if (animator2 != null) {
|
||||
animator2.cancel();
|
||||
}
|
||||
Animator animator3 = this.U;
|
||||
if (animator3 != null) {
|
||||
animator3.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public FloatingActionButton m() {
|
||||
if (!(getParent() instanceof CoordinatorLayout)) {
|
||||
return null;
|
||||
}
|
||||
for (View view : ((CoordinatorLayout) getParent()).c(this)) {
|
||||
if (view instanceof FloatingActionButton) {
|
||||
return (FloatingActionButton) view;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public boolean n() {
|
||||
Animator animator;
|
||||
Animator animator2;
|
||||
Animator animator3 = this.T;
|
||||
return (animator3 != null && animator3.isRunning()) || ((animator = this.V) != null && animator.isRunning()) || ((animator2 = this.U) != null && animator2.isRunning());
|
||||
}
|
||||
|
||||
private boolean o() {
|
||||
FloatingActionButton m = m();
|
||||
return m != null && m.a();
|
||||
}
|
||||
|
||||
private void p() {
|
||||
this.S.d(getFabTranslationX());
|
||||
throw null;
|
||||
}
|
||||
|
||||
public ColorStateList getBackgroundTint() {
|
||||
this.R.a();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.AttachedBehavior
|
||||
public CoordinatorLayout.Behavior<BottomAppBar> getBehavior() {
|
||||
return new Behavior();
|
||||
}
|
||||
|
||||
public float getCradleVerticalOffset() {
|
||||
this.S.a();
|
||||
throw null;
|
||||
}
|
||||
|
||||
public int getFabAlignmentMode() {
|
||||
return this.W;
|
||||
}
|
||||
|
||||
public float getFabCradleMargin() {
|
||||
this.S.b();
|
||||
throw null;
|
||||
}
|
||||
|
||||
public float getFabCradleRoundedCornerRadius() {
|
||||
this.S.c();
|
||||
throw null;
|
||||
}
|
||||
|
||||
public boolean getHideOnScroll() {
|
||||
return this.a0;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.Toolbar, android.view.ViewGroup, android.view.View
|
||||
protected void onLayout(boolean z, int i, int i2, int i3, int i4) {
|
||||
super.onLayout(z, i, i2, i3, i4);
|
||||
l();
|
||||
p();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.Toolbar, android.view.View
|
||||
protected void onRestoreInstanceState(Parcelable parcelable) {
|
||||
if (!(parcelable instanceof SavedState)) {
|
||||
super.onRestoreInstanceState(parcelable);
|
||||
return;
|
||||
}
|
||||
SavedState savedState = (SavedState) parcelable;
|
||||
super.onRestoreInstanceState(savedState.getSuperState());
|
||||
this.W = savedState.fabAlignmentMode;
|
||||
this.b0 = savedState.fabAttached;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.Toolbar, android.view.View
|
||||
protected Parcelable onSaveInstanceState() {
|
||||
SavedState savedState = new SavedState(super.onSaveInstanceState());
|
||||
savedState.fabAlignmentMode = this.W;
|
||||
savedState.fabAttached = this.b0;
|
||||
return savedState;
|
||||
}
|
||||
|
||||
public void setBackgroundTint(ColorStateList colorStateList) {
|
||||
DrawableCompat.a(this.R, colorStateList);
|
||||
}
|
||||
|
||||
public void setCradleVerticalOffset(float f) {
|
||||
if (f == getCradleVerticalOffset()) {
|
||||
return;
|
||||
}
|
||||
this.S.a(f);
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void setFabAlignmentMode(int i) {
|
||||
b(i);
|
||||
a(i, this.b0);
|
||||
this.W = i;
|
||||
}
|
||||
|
||||
public void setFabCradleMargin(float f) {
|
||||
if (f == getFabCradleMargin()) {
|
||||
return;
|
||||
}
|
||||
this.S.b(f);
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void setFabCradleRoundedCornerRadius(float f) {
|
||||
if (f == getFabCradleRoundedCornerRadius()) {
|
||||
return;
|
||||
}
|
||||
this.S.c(f);
|
||||
throw null;
|
||||
}
|
||||
|
||||
void setFabDiameter(int i) {
|
||||
this.S.d();
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void setHideOnScroll(boolean z) {
|
||||
this.a0 = z;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.Toolbar
|
||||
public void setSubtitle(CharSequence charSequence) {
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.Toolbar
|
||||
public void setTitle(CharSequence charSequence) {
|
||||
}
|
||||
|
||||
public static class Behavior extends HideBottomViewOnScrollBehavior<BottomAppBar> {
|
||||
private final Rect d;
|
||||
|
||||
public Behavior() {
|
||||
this.d = new Rect();
|
||||
}
|
||||
|
||||
public Behavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.d = new Rect();
|
||||
}
|
||||
|
||||
private boolean a(FloatingActionButton floatingActionButton, BottomAppBar bottomAppBar) {
|
||||
((CoordinatorLayout.LayoutParams) floatingActionButton.getLayoutParams()).d = 17;
|
||||
bottomAppBar.a(floatingActionButton);
|
||||
return true;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: protected */
|
||||
@Override // com.google.android.material.behavior.HideBottomViewOnScrollBehavior
|
||||
public void b(BottomAppBar bottomAppBar) {
|
||||
super.b((Behavior) bottomAppBar);
|
||||
FloatingActionButton m = bottomAppBar.m();
|
||||
if (m != null) {
|
||||
m.clearAnimation();
|
||||
m.animate().translationY(bottomAppBar.getFabTranslationY()).setInterpolator(AnimationUtils.d).setDuration(225L);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.behavior.HideBottomViewOnScrollBehavior, androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, BottomAppBar bottomAppBar, int i) {
|
||||
FloatingActionButton m = bottomAppBar.m();
|
||||
if (m != null) {
|
||||
a(m, bottomAppBar);
|
||||
m.b(this.d);
|
||||
bottomAppBar.setFabDiameter(this.d.height());
|
||||
}
|
||||
if (bottomAppBar.n()) {
|
||||
coordinatorLayout.c(bottomAppBar, i);
|
||||
return super.a(coordinatorLayout, (CoordinatorLayout) bottomAppBar, i);
|
||||
}
|
||||
BottomAppBar.c(bottomAppBar);
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public boolean b(CoordinatorLayout coordinatorLayout, BottomAppBar bottomAppBar, View view, View view2, int i, int i2) {
|
||||
return bottomAppBar.getHideOnScroll() && super.b(coordinatorLayout, bottomAppBar, view, view2, i, i2);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: protected */
|
||||
@Override // com.google.android.material.behavior.HideBottomViewOnScrollBehavior
|
||||
public void a(BottomAppBar bottomAppBar) {
|
||||
super.a((Behavior) bottomAppBar);
|
||||
FloatingActionButton m = bottomAppBar.m();
|
||||
if (m != null) {
|
||||
m.a(this.d);
|
||||
float measuredHeight = m.getMeasuredHeight() - this.d.height();
|
||||
m.clearAnimation();
|
||||
m.animate().translationY((-m.getPaddingBottom()) + measuredHeight).setInterpolator(AnimationUtils.c).setDuration(175L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void b(int i) {
|
||||
if (this.W == i || !ViewCompat.x(this)) {
|
||||
return;
|
||||
}
|
||||
Animator animator = this.U;
|
||||
if (animator != null) {
|
||||
animator.cancel();
|
||||
}
|
||||
ArrayList arrayList = new ArrayList();
|
||||
a(i, arrayList);
|
||||
b(i, arrayList);
|
||||
AnimatorSet animatorSet = new AnimatorSet();
|
||||
animatorSet.playTogether(arrayList);
|
||||
this.U = animatorSet;
|
||||
this.U.addListener(new AnimatorListenerAdapter() { // from class: com.google.android.material.bottomappbar.BottomAppBar.1
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator2) {
|
||||
BottomAppBar.this.U = null;
|
||||
}
|
||||
});
|
||||
this.U.start();
|
||||
}
|
||||
|
||||
private void a(int i, List<Animator> list) {
|
||||
if (this.b0) {
|
||||
this.S.e();
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
private void a(int i, boolean z) {
|
||||
if (ViewCompat.x(this)) {
|
||||
Animator animator = this.V;
|
||||
if (animator != null) {
|
||||
animator.cancel();
|
||||
}
|
||||
ArrayList arrayList = new ArrayList();
|
||||
if (!o()) {
|
||||
i = 0;
|
||||
z = false;
|
||||
}
|
||||
a(i, z, arrayList);
|
||||
AnimatorSet animatorSet = new AnimatorSet();
|
||||
animatorSet.playTogether(arrayList);
|
||||
this.V = animatorSet;
|
||||
this.V.addListener(new AnimatorListenerAdapter() { // from class: com.google.android.material.bottomappbar.BottomAppBar.3
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator2) {
|
||||
BottomAppBar.this.V = null;
|
||||
}
|
||||
});
|
||||
this.V.start();
|
||||
}
|
||||
}
|
||||
|
||||
private void b(int i, List<Animator> list) {
|
||||
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(m(), "translationX", a(i));
|
||||
ofFloat.setDuration(300L);
|
||||
list.add(ofFloat);
|
||||
}
|
||||
|
||||
private void b(FloatingActionButton floatingActionButton) {
|
||||
floatingActionButton.c(this.c0);
|
||||
floatingActionButton.d(this.c0);
|
||||
}
|
||||
|
||||
private void a(final int i, final boolean z, List<Animator> list) {
|
||||
final ActionMenuView actionMenuView = getActionMenuView();
|
||||
if (actionMenuView == null) {
|
||||
return;
|
||||
}
|
||||
Animator ofFloat = ObjectAnimator.ofFloat(actionMenuView, "alpha", 1.0f);
|
||||
if ((!this.b0 && (!z || !o())) || (this.W != 1 && i != 1)) {
|
||||
if (actionMenuView.getAlpha() < 1.0f) {
|
||||
list.add(ofFloat);
|
||||
}
|
||||
} else {
|
||||
ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(actionMenuView, "alpha", 0.0f);
|
||||
ofFloat2.addListener(new AnimatorListenerAdapter() { // from class: com.google.android.material.bottomappbar.BottomAppBar.4
|
||||
public boolean a;
|
||||
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationCancel(Animator animator) {
|
||||
this.a = true;
|
||||
}
|
||||
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator) {
|
||||
if (this.a) {
|
||||
return;
|
||||
}
|
||||
BottomAppBar.this.a(actionMenuView, i, z);
|
||||
}
|
||||
});
|
||||
AnimatorSet animatorSet = new AnimatorSet();
|
||||
animatorSet.setDuration(150L);
|
||||
animatorSet.playSequentially(ofFloat2, ofFloat);
|
||||
list.add(animatorSet);
|
||||
}
|
||||
}
|
||||
|
||||
private float a(boolean z) {
|
||||
FloatingActionButton m = m();
|
||||
if (m == null) {
|
||||
return 0.0f;
|
||||
}
|
||||
Rect rect = new Rect();
|
||||
m.a(rect);
|
||||
float height = rect.height();
|
||||
if (height == 0.0f) {
|
||||
height = m.getMeasuredHeight();
|
||||
}
|
||||
float height2 = m.getHeight() - rect.bottom;
|
||||
float height3 = m.getHeight() - rect.height();
|
||||
float f = (-getCradleVerticalOffset()) + (height / 2.0f) + height2;
|
||||
float paddingBottom = height3 - m.getPaddingBottom();
|
||||
float f2 = -getMeasuredHeight();
|
||||
if (z) {
|
||||
paddingBottom = f;
|
||||
}
|
||||
return f2 + paddingBottom;
|
||||
}
|
||||
|
||||
private int a(int i) {
|
||||
boolean z = ViewCompat.k(this) == 1;
|
||||
if (i == 1) {
|
||||
return ((getMeasuredWidth() / 2) - this.Q) * (z ? -1 : 1);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public void a(ActionMenuView actionMenuView, int i, boolean z) {
|
||||
boolean z2 = ViewCompat.k(this) == 1;
|
||||
int i2 = 0;
|
||||
for (int i3 = 0; i3 < getChildCount(); i3++) {
|
||||
View childAt = getChildAt(i3);
|
||||
if ((childAt.getLayoutParams() instanceof Toolbar.LayoutParams) && (((Toolbar.LayoutParams) childAt.getLayoutParams()).a & 8388615) == 8388611) {
|
||||
i2 = Math.max(i2, z2 ? childAt.getLeft() : childAt.getRight());
|
||||
}
|
||||
}
|
||||
actionMenuView.setTranslationX((i == 1 && z) ? i2 - (z2 ? actionMenuView.getRight() : actionMenuView.getLeft()) : 0.0f);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public void a(FloatingActionButton floatingActionButton) {
|
||||
b(floatingActionButton);
|
||||
floatingActionButton.a(this.c0);
|
||||
floatingActionButton.b(this.c0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.google.android.material.bottomappbar;
|
||||
|
||||
import com.google.android.material.shape.EdgeTreatment;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class BottomAppBarTopEdgeTreatment extends EdgeTreatment {
|
||||
float a() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
void a(float f) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
float b() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
void b(float f) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
float c() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
void c(float f) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
float d() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
void d(float f) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
float e() {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.google.android.material.bottomnavigation;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class BottomNavigationPresenter$SavedState implements Parcelable {
|
||||
public static final Parcelable.Creator<BottomNavigationPresenter$SavedState> CREATOR = new Parcelable.Creator<BottomNavigationPresenter$SavedState>() { // from class: com.google.android.material.bottomnavigation.BottomNavigationPresenter$SavedState.1
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public BottomNavigationPresenter$SavedState createFromParcel(Parcel parcel) {
|
||||
return new BottomNavigationPresenter$SavedState(parcel);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public BottomNavigationPresenter$SavedState[] newArray(int i) {
|
||||
return new BottomNavigationPresenter$SavedState[i];
|
||||
}
|
||||
};
|
||||
int selectedItemId;
|
||||
|
||||
BottomNavigationPresenter$SavedState() {
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
parcel.writeInt(this.selectedItemId);
|
||||
}
|
||||
|
||||
BottomNavigationPresenter$SavedState(Parcel parcel) {
|
||||
this.selectedItemId = parcel.readInt();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.google.android.material.bottomnavigation;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import androidx.customview.view.AbsSavedState;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class BottomNavigationView$SavedState extends AbsSavedState {
|
||||
public static final Parcelable.Creator<BottomNavigationView$SavedState> CREATOR = new Parcelable.ClassLoaderCreator<BottomNavigationView$SavedState>() { // from class: com.google.android.material.bottomnavigation.BottomNavigationView$SavedState.1
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public BottomNavigationView$SavedState[] newArray(int i) {
|
||||
return new BottomNavigationView$SavedState[i];
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // android.os.Parcelable.ClassLoaderCreator
|
||||
public BottomNavigationView$SavedState createFromParcel(Parcel parcel, ClassLoader classLoader) {
|
||||
return new BottomNavigationView$SavedState(parcel, classLoader);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public BottomNavigationView$SavedState createFromParcel(Parcel parcel) {
|
||||
return new BottomNavigationView$SavedState(parcel, null);
|
||||
}
|
||||
};
|
||||
Bundle menuPresenterState;
|
||||
|
||||
public BottomNavigationView$SavedState(Parcelable parcelable) {
|
||||
super(parcelable);
|
||||
}
|
||||
|
||||
private void readFromParcel(Parcel parcel, ClassLoader classLoader) {
|
||||
this.menuPresenterState = parcel.readBundle(classLoader);
|
||||
}
|
||||
|
||||
@Override // androidx.customview.view.AbsSavedState, android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
super.writeToParcel(parcel, i);
|
||||
parcel.writeBundle(this.menuPresenterState);
|
||||
}
|
||||
|
||||
public BottomNavigationView$SavedState(Parcel parcel, ClassLoader classLoader) {
|
||||
super(parcel, classLoader);
|
||||
readFromParcel(parcel, classLoader);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,753 @@
|
||||
package com.google.android.material.bottomsheet;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.os.Build;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.TypedValue;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.VelocityTracker;
|
||||
import android.view.View;
|
||||
import android.view.ViewConfiguration;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewParent;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import androidx.core.math.MathUtils;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.customview.view.AbsSavedState;
|
||||
import androidx.customview.widget.ViewDragHelper;
|
||||
import com.google.android.material.R$dimen;
|
||||
import com.google.android.material.R$styleable;
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class BottomSheetBehavior<V extends View> extends CoordinatorLayout.Behavior<V> {
|
||||
private boolean a;
|
||||
private float b;
|
||||
private int c;
|
||||
private boolean d;
|
||||
private int e;
|
||||
private int f;
|
||||
int g;
|
||||
int h;
|
||||
int i;
|
||||
boolean j;
|
||||
private boolean k;
|
||||
int l;
|
||||
ViewDragHelper m;
|
||||
private boolean n;
|
||||
private int o;
|
||||
private boolean p;
|
||||
int q;
|
||||
WeakReference<V> r;
|
||||
WeakReference<View> s;
|
||||
private BottomSheetCallback t;
|
||||
private VelocityTracker u;
|
||||
int v;
|
||||
private int w;
|
||||
boolean x;
|
||||
private Map<View, Integer> y;
|
||||
private final ViewDragHelper.Callback z;
|
||||
|
||||
public static abstract class BottomSheetCallback {
|
||||
public abstract void a(View view, float f);
|
||||
|
||||
public abstract void a(View view, int i);
|
||||
}
|
||||
|
||||
protected static class SavedState extends AbsSavedState {
|
||||
public static final Parcelable.Creator<SavedState> CREATOR = new Parcelable.ClassLoaderCreator<SavedState>() { // from class: com.google.android.material.bottomsheet.BottomSheetBehavior.SavedState.1
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public SavedState[] newArray(int i) {
|
||||
return new SavedState[i];
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // android.os.Parcelable.ClassLoaderCreator
|
||||
public SavedState createFromParcel(Parcel parcel, ClassLoader classLoader) {
|
||||
return new SavedState(parcel, classLoader);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public SavedState createFromParcel(Parcel parcel) {
|
||||
return new SavedState(parcel, (ClassLoader) null);
|
||||
}
|
||||
};
|
||||
final int state;
|
||||
|
||||
public SavedState(Parcel parcel) {
|
||||
this(parcel, (ClassLoader) null);
|
||||
}
|
||||
|
||||
@Override // androidx.customview.view.AbsSavedState, android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
super.writeToParcel(parcel, i);
|
||||
parcel.writeInt(this.state);
|
||||
}
|
||||
|
||||
public SavedState(Parcel parcel, ClassLoader classLoader) {
|
||||
super(parcel, classLoader);
|
||||
this.state = parcel.readInt();
|
||||
}
|
||||
|
||||
public SavedState(Parcelable parcelable, int i) {
|
||||
super(parcelable);
|
||||
this.state = i;
|
||||
}
|
||||
}
|
||||
|
||||
private class SettleRunnable implements Runnable {
|
||||
private final View a;
|
||||
private final int b;
|
||||
|
||||
SettleRunnable(View view, int i) {
|
||||
this.a = view;
|
||||
this.b = i;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public void run() {
|
||||
ViewDragHelper viewDragHelper = BottomSheetBehavior.this.m;
|
||||
if (viewDragHelper == null || !viewDragHelper.a(true)) {
|
||||
BottomSheetBehavior.this.c(this.b);
|
||||
} else {
|
||||
ViewCompat.a(this.a, this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public BottomSheetBehavior() {
|
||||
this.a = true;
|
||||
this.l = 4;
|
||||
this.z = new ViewDragHelper.Callback() { // from class: com.google.android.material.bottomsheet.BottomSheetBehavior.2
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public void a(View view, int i, int i2, int i3, int i4) {
|
||||
BottomSheetBehavior.this.a(i2);
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public boolean b(View view, int i) {
|
||||
WeakReference<V> weakReference;
|
||||
View view2;
|
||||
BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.this;
|
||||
int i2 = bottomSheetBehavior.l;
|
||||
if (i2 == 1 || bottomSheetBehavior.x) {
|
||||
return false;
|
||||
}
|
||||
return ((i2 == 3 && bottomSheetBehavior.v == i && (view2 = bottomSheetBehavior.s.get()) != null && view2.canScrollVertically(-1)) || (weakReference = BottomSheetBehavior.this.r) == null || weakReference.get() != view) ? false : true;
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public void c(int i) {
|
||||
if (i == 1) {
|
||||
BottomSheetBehavior.this.c(1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public void a(View view, float f, float f2) {
|
||||
int i;
|
||||
int i2;
|
||||
int i3;
|
||||
int i4 = 4;
|
||||
if (f2 >= 0.0f) {
|
||||
BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.this;
|
||||
if (bottomSheetBehavior.j && bottomSheetBehavior.a(view, f2) && (view.getTop() > BottomSheetBehavior.this.i || Math.abs(f) < Math.abs(f2))) {
|
||||
i3 = BottomSheetBehavior.this.q;
|
||||
i4 = 5;
|
||||
} else if (f2 == 0.0f || Math.abs(f) > Math.abs(f2)) {
|
||||
int top = view.getTop();
|
||||
if (!BottomSheetBehavior.this.a) {
|
||||
BottomSheetBehavior bottomSheetBehavior2 = BottomSheetBehavior.this;
|
||||
int i5 = bottomSheetBehavior2.h;
|
||||
if (top < i5) {
|
||||
if (top >= Math.abs(top - bottomSheetBehavior2.i)) {
|
||||
i2 = BottomSheetBehavior.this.h;
|
||||
}
|
||||
i3 = 0;
|
||||
i4 = 3;
|
||||
} else if (Math.abs(top - i5) < Math.abs(top - BottomSheetBehavior.this.i)) {
|
||||
i2 = BottomSheetBehavior.this.h;
|
||||
} else {
|
||||
i = BottomSheetBehavior.this.i;
|
||||
}
|
||||
i3 = i2;
|
||||
i4 = 6;
|
||||
} else if (Math.abs(top - BottomSheetBehavior.this.g) < Math.abs(top - BottomSheetBehavior.this.i)) {
|
||||
i3 = BottomSheetBehavior.this.g;
|
||||
i4 = 3;
|
||||
} else {
|
||||
i = BottomSheetBehavior.this.i;
|
||||
}
|
||||
i3 = i;
|
||||
} else {
|
||||
i3 = BottomSheetBehavior.this.i;
|
||||
}
|
||||
} else if (BottomSheetBehavior.this.a) {
|
||||
i3 = BottomSheetBehavior.this.g;
|
||||
i4 = 3;
|
||||
} else {
|
||||
int top2 = view.getTop();
|
||||
int i6 = BottomSheetBehavior.this.h;
|
||||
if (top2 > i6) {
|
||||
i3 = i6;
|
||||
i4 = 6;
|
||||
}
|
||||
i3 = 0;
|
||||
i4 = 3;
|
||||
}
|
||||
if (!BottomSheetBehavior.this.m.c(view.getLeft(), i3)) {
|
||||
BottomSheetBehavior.this.c(i4);
|
||||
} else {
|
||||
BottomSheetBehavior.this.c(2);
|
||||
ViewCompat.a(view, new SettleRunnable(view, i4));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public int b(View view, int i, int i2) {
|
||||
int c = BottomSheetBehavior.this.c();
|
||||
BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.this;
|
||||
return MathUtils.a(i, c, bottomSheetBehavior.j ? bottomSheetBehavior.q : bottomSheetBehavior.i);
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public int b(View view) {
|
||||
BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.this;
|
||||
if (bottomSheetBehavior.j) {
|
||||
return bottomSheetBehavior.q;
|
||||
}
|
||||
return bottomSheetBehavior.i;
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public int a(View view, int i, int i2) {
|
||||
return view.getLeft();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private void e() {
|
||||
this.v = -1;
|
||||
VelocityTracker velocityTracker = this.u;
|
||||
if (velocityTracker != null) {
|
||||
velocityTracker.recycle();
|
||||
this.u = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void c(boolean z) {
|
||||
this.k = z;
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public Parcelable d(CoordinatorLayout coordinatorLayout, V v) {
|
||||
return new SavedState(super.d(coordinatorLayout, v), this.l);
|
||||
}
|
||||
|
||||
private float d() {
|
||||
VelocityTracker velocityTracker = this.u;
|
||||
if (velocityTracker == null) {
|
||||
return 0.0f;
|
||||
}
|
||||
velocityTracker.computeCurrentVelocity(1000, this.b);
|
||||
return this.u.getYVelocity(this.v);
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public void a(CoordinatorLayout coordinatorLayout, V v, Parcelable parcelable) {
|
||||
SavedState savedState = (SavedState) parcelable;
|
||||
super.a(coordinatorLayout, (CoordinatorLayout) v, savedState.getSuperState());
|
||||
int i = savedState.state;
|
||||
if (i == 1 || i == 2) {
|
||||
this.l = 4;
|
||||
} else {
|
||||
this.l = i;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean b(CoordinatorLayout coordinatorLayout, V v, MotionEvent motionEvent) {
|
||||
if (!v.isShown()) {
|
||||
return false;
|
||||
}
|
||||
int actionMasked = motionEvent.getActionMasked();
|
||||
if (this.l == 1 && actionMasked == 0) {
|
||||
return true;
|
||||
}
|
||||
ViewDragHelper viewDragHelper = this.m;
|
||||
if (viewDragHelper != null) {
|
||||
viewDragHelper.a(motionEvent);
|
||||
}
|
||||
if (actionMasked == 0) {
|
||||
e();
|
||||
}
|
||||
if (this.u == null) {
|
||||
this.u = VelocityTracker.obtain();
|
||||
}
|
||||
this.u.addMovement(motionEvent);
|
||||
if (actionMasked == 2 && !this.n && Math.abs(this.w - motionEvent.getY()) > this.m.c()) {
|
||||
this.m.a(v, motionEvent.getPointerId(motionEvent.getActionIndex()));
|
||||
}
|
||||
return !this.n;
|
||||
}
|
||||
|
||||
void c(int i) {
|
||||
BottomSheetCallback bottomSheetCallback;
|
||||
if (this.l == i) {
|
||||
return;
|
||||
}
|
||||
this.l = i;
|
||||
if (i == 6 || i == 3) {
|
||||
d(true);
|
||||
} else if (i == 5 || i == 4) {
|
||||
d(false);
|
||||
}
|
||||
V v = this.r.get();
|
||||
if (v == null || (bottomSheetCallback = this.t) == null) {
|
||||
return;
|
||||
}
|
||||
bottomSheetCallback.a((View) v, i);
|
||||
}
|
||||
|
||||
public BottomSheetBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
int i;
|
||||
this.a = true;
|
||||
this.l = 4;
|
||||
this.z = new ViewDragHelper.Callback() { // from class: com.google.android.material.bottomsheet.BottomSheetBehavior.2
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public void a(View view, int i2, int i22, int i3, int i4) {
|
||||
BottomSheetBehavior.this.a(i22);
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public boolean b(View view, int i2) {
|
||||
WeakReference<V> weakReference;
|
||||
View view2;
|
||||
BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.this;
|
||||
int i22 = bottomSheetBehavior.l;
|
||||
if (i22 == 1 || bottomSheetBehavior.x) {
|
||||
return false;
|
||||
}
|
||||
return ((i22 == 3 && bottomSheetBehavior.v == i2 && (view2 = bottomSheetBehavior.s.get()) != null && view2.canScrollVertically(-1)) || (weakReference = BottomSheetBehavior.this.r) == null || weakReference.get() != view) ? false : true;
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public void c(int i2) {
|
||||
if (i2 == 1) {
|
||||
BottomSheetBehavior.this.c(1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public void a(View view, float f, float f2) {
|
||||
int i2;
|
||||
int i22;
|
||||
int i3;
|
||||
int i4 = 4;
|
||||
if (f2 >= 0.0f) {
|
||||
BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.this;
|
||||
if (bottomSheetBehavior.j && bottomSheetBehavior.a(view, f2) && (view.getTop() > BottomSheetBehavior.this.i || Math.abs(f) < Math.abs(f2))) {
|
||||
i3 = BottomSheetBehavior.this.q;
|
||||
i4 = 5;
|
||||
} else if (f2 == 0.0f || Math.abs(f) > Math.abs(f2)) {
|
||||
int top = view.getTop();
|
||||
if (!BottomSheetBehavior.this.a) {
|
||||
BottomSheetBehavior bottomSheetBehavior2 = BottomSheetBehavior.this;
|
||||
int i5 = bottomSheetBehavior2.h;
|
||||
if (top < i5) {
|
||||
if (top >= Math.abs(top - bottomSheetBehavior2.i)) {
|
||||
i22 = BottomSheetBehavior.this.h;
|
||||
}
|
||||
i3 = 0;
|
||||
i4 = 3;
|
||||
} else if (Math.abs(top - i5) < Math.abs(top - BottomSheetBehavior.this.i)) {
|
||||
i22 = BottomSheetBehavior.this.h;
|
||||
} else {
|
||||
i2 = BottomSheetBehavior.this.i;
|
||||
}
|
||||
i3 = i22;
|
||||
i4 = 6;
|
||||
} else if (Math.abs(top - BottomSheetBehavior.this.g) < Math.abs(top - BottomSheetBehavior.this.i)) {
|
||||
i3 = BottomSheetBehavior.this.g;
|
||||
i4 = 3;
|
||||
} else {
|
||||
i2 = BottomSheetBehavior.this.i;
|
||||
}
|
||||
i3 = i2;
|
||||
} else {
|
||||
i3 = BottomSheetBehavior.this.i;
|
||||
}
|
||||
} else if (BottomSheetBehavior.this.a) {
|
||||
i3 = BottomSheetBehavior.this.g;
|
||||
i4 = 3;
|
||||
} else {
|
||||
int top2 = view.getTop();
|
||||
int i6 = BottomSheetBehavior.this.h;
|
||||
if (top2 > i6) {
|
||||
i3 = i6;
|
||||
i4 = 6;
|
||||
}
|
||||
i3 = 0;
|
||||
i4 = 3;
|
||||
}
|
||||
if (!BottomSheetBehavior.this.m.c(view.getLeft(), i3)) {
|
||||
BottomSheetBehavior.this.c(i4);
|
||||
} else {
|
||||
BottomSheetBehavior.this.c(2);
|
||||
ViewCompat.a(view, new SettleRunnable(view, i4));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public int b(View view, int i2, int i22) {
|
||||
int c = BottomSheetBehavior.this.c();
|
||||
BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.this;
|
||||
return MathUtils.a(i2, c, bottomSheetBehavior.j ? bottomSheetBehavior.q : bottomSheetBehavior.i);
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public int b(View view) {
|
||||
BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.this;
|
||||
if (bottomSheetBehavior.j) {
|
||||
return bottomSheetBehavior.q;
|
||||
}
|
||||
return bottomSheetBehavior.i;
|
||||
}
|
||||
|
||||
@Override // androidx.customview.widget.ViewDragHelper.Callback
|
||||
public int a(View view, int i2, int i22) {
|
||||
return view.getLeft();
|
||||
}
|
||||
};
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.BottomSheetBehavior_Layout);
|
||||
TypedValue peekValue = obtainStyledAttributes.peekValue(R$styleable.BottomSheetBehavior_Layout_behavior_peekHeight);
|
||||
if (peekValue != null && (i = peekValue.data) == -1) {
|
||||
b(i);
|
||||
} else {
|
||||
b(obtainStyledAttributes.getDimensionPixelSize(R$styleable.BottomSheetBehavior_Layout_behavior_peekHeight, -1));
|
||||
}
|
||||
b(obtainStyledAttributes.getBoolean(R$styleable.BottomSheetBehavior_Layout_behavior_hideable, false));
|
||||
a(obtainStyledAttributes.getBoolean(R$styleable.BottomSheetBehavior_Layout_behavior_fitToContents, true));
|
||||
c(obtainStyledAttributes.getBoolean(R$styleable.BottomSheetBehavior_Layout_behavior_skipCollapsed, false));
|
||||
obtainStyledAttributes.recycle();
|
||||
this.b = ViewConfiguration.get(context).getScaledMaximumFlingVelocity();
|
||||
}
|
||||
|
||||
private void d(boolean z) {
|
||||
WeakReference<V> weakReference = this.r;
|
||||
if (weakReference == null) {
|
||||
return;
|
||||
}
|
||||
ViewParent parent = weakReference.get().getParent();
|
||||
if (parent instanceof CoordinatorLayout) {
|
||||
CoordinatorLayout coordinatorLayout = (CoordinatorLayout) parent;
|
||||
int childCount = coordinatorLayout.getChildCount();
|
||||
if (Build.VERSION.SDK_INT >= 16 && z) {
|
||||
if (this.y != null) {
|
||||
return;
|
||||
} else {
|
||||
this.y = new HashMap(childCount);
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < childCount; i++) {
|
||||
View childAt = coordinatorLayout.getChildAt(i);
|
||||
if (childAt != this.r.get()) {
|
||||
if (!z) {
|
||||
Map<View, Integer> map = this.y;
|
||||
if (map != null && map.containsKey(childAt)) {
|
||||
ViewCompat.f(childAt, this.y.get(childAt).intValue());
|
||||
}
|
||||
} else {
|
||||
if (Build.VERSION.SDK_INT >= 16) {
|
||||
this.y.put(childAt, Integer.valueOf(childAt.getImportantForAccessibility()));
|
||||
}
|
||||
ViewCompat.f(childAt, 4);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (z) {
|
||||
return;
|
||||
}
|
||||
this.y = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, V v, int i) {
|
||||
if (ViewCompat.h(coordinatorLayout) && !ViewCompat.h(v)) {
|
||||
v.setFitsSystemWindows(true);
|
||||
}
|
||||
int top = v.getTop();
|
||||
coordinatorLayout.c(v, i);
|
||||
this.q = coordinatorLayout.getHeight();
|
||||
if (this.d) {
|
||||
if (this.e == 0) {
|
||||
this.e = coordinatorLayout.getResources().getDimensionPixelSize(R$dimen.design_bottom_sheet_peek_height_min);
|
||||
}
|
||||
this.f = Math.max(this.e, this.q - ((coordinatorLayout.getWidth() * 9) / 16));
|
||||
} else {
|
||||
this.f = this.c;
|
||||
}
|
||||
this.g = Math.max(0, this.q - v.getHeight());
|
||||
this.h = this.q / 2;
|
||||
b();
|
||||
int i2 = this.l;
|
||||
if (i2 == 3) {
|
||||
ViewCompat.d((View) v, c());
|
||||
} else if (i2 == 6) {
|
||||
ViewCompat.d((View) v, this.h);
|
||||
} else if (this.j && i2 == 5) {
|
||||
ViewCompat.d((View) v, this.q);
|
||||
} else {
|
||||
int i3 = this.l;
|
||||
if (i3 == 4) {
|
||||
ViewCompat.d((View) v, this.i);
|
||||
} else if (i3 == 1 || i3 == 2) {
|
||||
ViewCompat.d((View) v, top - v.getTop());
|
||||
}
|
||||
}
|
||||
if (this.m == null) {
|
||||
this.m = ViewDragHelper.a(coordinatorLayout, this.z);
|
||||
}
|
||||
this.r = new WeakReference<>(v);
|
||||
this.s = new WeakReference<>(a(v));
|
||||
return true;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public int c() {
|
||||
if (this.a) {
|
||||
return this.g;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean b(CoordinatorLayout coordinatorLayout, V v, View view, View view2, int i, int i2) {
|
||||
this.o = 0;
|
||||
this.p = false;
|
||||
return (i & 2) != 0;
|
||||
}
|
||||
|
||||
public final void b(int i) {
|
||||
WeakReference<V> weakReference;
|
||||
V v;
|
||||
boolean z = true;
|
||||
if (i == -1) {
|
||||
if (!this.d) {
|
||||
this.d = true;
|
||||
}
|
||||
z = false;
|
||||
} else {
|
||||
if (this.d || this.c != i) {
|
||||
this.d = false;
|
||||
this.c = Math.max(0, i);
|
||||
this.i = this.q - i;
|
||||
}
|
||||
z = false;
|
||||
}
|
||||
if (!z || this.l != 4 || (weakReference = this.r) == null || (v = weakReference.get()) == null) {
|
||||
return;
|
||||
}
|
||||
v.requestLayout();
|
||||
}
|
||||
|
||||
public void b(boolean z) {
|
||||
this.j = z;
|
||||
}
|
||||
|
||||
private void b() {
|
||||
if (this.a) {
|
||||
this.i = Math.max(this.q - this.f, this.g);
|
||||
} else {
|
||||
this.i = this.q - this.f;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, V v, MotionEvent motionEvent) {
|
||||
ViewDragHelper viewDragHelper;
|
||||
if (!v.isShown()) {
|
||||
this.n = true;
|
||||
return false;
|
||||
}
|
||||
int actionMasked = motionEvent.getActionMasked();
|
||||
if (actionMasked == 0) {
|
||||
e();
|
||||
}
|
||||
if (this.u == null) {
|
||||
this.u = VelocityTracker.obtain();
|
||||
}
|
||||
this.u.addMovement(motionEvent);
|
||||
if (actionMasked == 0) {
|
||||
int x = (int) motionEvent.getX();
|
||||
this.w = (int) motionEvent.getY();
|
||||
WeakReference<View> weakReference = this.s;
|
||||
View view = weakReference != null ? weakReference.get() : null;
|
||||
if (view != null && coordinatorLayout.a(view, x, this.w)) {
|
||||
this.v = motionEvent.getPointerId(motionEvent.getActionIndex());
|
||||
this.x = true;
|
||||
}
|
||||
this.n = this.v == -1 && !coordinatorLayout.a(v, x, this.w);
|
||||
} else if (actionMasked == 1 || actionMasked == 3) {
|
||||
this.x = false;
|
||||
this.v = -1;
|
||||
if (this.n) {
|
||||
this.n = false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!this.n && (viewDragHelper = this.m) != null && viewDragHelper.b(motionEvent)) {
|
||||
return true;
|
||||
}
|
||||
WeakReference<View> weakReference2 = this.s;
|
||||
View view2 = weakReference2 != null ? weakReference2.get() : null;
|
||||
return (actionMasked != 2 || view2 == null || this.n || this.l == 1 || coordinatorLayout.a(view2, (int) motionEvent.getX(), (int) motionEvent.getY()) || this.m == null || Math.abs(((float) this.w) - motionEvent.getY()) <= ((float) this.m.c())) ? false : true;
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public void a(CoordinatorLayout coordinatorLayout, V v, View view, int i, int i2, int[] iArr, int i3) {
|
||||
if (i3 != 1 && view == this.s.get()) {
|
||||
int top = v.getTop();
|
||||
int i4 = top - i2;
|
||||
if (i2 > 0) {
|
||||
if (i4 < c()) {
|
||||
iArr[1] = top - c();
|
||||
ViewCompat.d((View) v, -iArr[1]);
|
||||
c(3);
|
||||
} else {
|
||||
iArr[1] = i2;
|
||||
ViewCompat.d((View) v, -i2);
|
||||
c(1);
|
||||
}
|
||||
} else if (i2 < 0 && !view.canScrollVertically(-1)) {
|
||||
int i5 = this.i;
|
||||
if (i4 > i5 && !this.j) {
|
||||
iArr[1] = top - i5;
|
||||
ViewCompat.d((View) v, -iArr[1]);
|
||||
c(4);
|
||||
} else {
|
||||
iArr[1] = i2;
|
||||
ViewCompat.d((View) v, -i2);
|
||||
c(1);
|
||||
}
|
||||
}
|
||||
a(v.getTop());
|
||||
this.o = i2;
|
||||
this.p = true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public void a(CoordinatorLayout coordinatorLayout, V v, View view, int i) {
|
||||
int i2;
|
||||
int i3 = 3;
|
||||
if (v.getTop() == c()) {
|
||||
c(3);
|
||||
return;
|
||||
}
|
||||
if (view == this.s.get() && this.p) {
|
||||
if (this.o > 0) {
|
||||
i2 = c();
|
||||
} else if (this.j && a(v, d())) {
|
||||
i2 = this.q;
|
||||
i3 = 5;
|
||||
} else {
|
||||
if (this.o == 0) {
|
||||
int top = v.getTop();
|
||||
if (this.a) {
|
||||
if (Math.abs(top - this.g) < Math.abs(top - this.i)) {
|
||||
i2 = this.g;
|
||||
} else {
|
||||
i2 = this.i;
|
||||
}
|
||||
} else {
|
||||
int i4 = this.h;
|
||||
if (top < i4) {
|
||||
if (top < Math.abs(top - this.i)) {
|
||||
i2 = 0;
|
||||
} else {
|
||||
i2 = this.h;
|
||||
}
|
||||
} else if (Math.abs(top - i4) < Math.abs(top - this.i)) {
|
||||
i2 = this.h;
|
||||
} else {
|
||||
i2 = this.i;
|
||||
}
|
||||
i3 = 6;
|
||||
}
|
||||
} else {
|
||||
i2 = this.i;
|
||||
}
|
||||
i3 = 4;
|
||||
}
|
||||
if (this.m.b(v, v.getLeft(), i2)) {
|
||||
c(2);
|
||||
ViewCompat.a(v, new SettleRunnable(v, i3));
|
||||
} else {
|
||||
c(i3);
|
||||
}
|
||||
this.p = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, V v, View view, float f, float f2) {
|
||||
return view == this.s.get() && (this.l != 3 || super.a(coordinatorLayout, (CoordinatorLayout) v, view, f, f2));
|
||||
}
|
||||
|
||||
public void a(boolean z) {
|
||||
if (this.a == z) {
|
||||
return;
|
||||
}
|
||||
this.a = z;
|
||||
if (this.r != null) {
|
||||
b();
|
||||
}
|
||||
c((this.a && this.l == 6) ? 3 : this.l);
|
||||
}
|
||||
|
||||
boolean a(View view, float f) {
|
||||
if (this.k) {
|
||||
return true;
|
||||
}
|
||||
return view.getTop() >= this.i && Math.abs((((float) view.getTop()) + (f * 0.1f)) - ((float) this.i)) / ((float) this.c) > 0.5f;
|
||||
}
|
||||
|
||||
View a(View view) {
|
||||
if (ViewCompat.y(view)) {
|
||||
return view;
|
||||
}
|
||||
if (!(view instanceof ViewGroup)) {
|
||||
return null;
|
||||
}
|
||||
ViewGroup viewGroup = (ViewGroup) view;
|
||||
int childCount = viewGroup.getChildCount();
|
||||
for (int i = 0; i < childCount; i++) {
|
||||
View a = a(viewGroup.getChildAt(i));
|
||||
if (a != null) {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
void a(int i) {
|
||||
BottomSheetCallback bottomSheetCallback;
|
||||
V v = this.r.get();
|
||||
if (v == null || (bottomSheetCallback = this.t) == null) {
|
||||
return;
|
||||
}
|
||||
if (i > this.i) {
|
||||
bottomSheetCallback.a(v, (r2 - i) / (this.q - r2));
|
||||
} else {
|
||||
bottomSheetCallback.a(v, (r2 - i) / (r2 - c()));
|
||||
}
|
||||
}
|
||||
}
|
||||
363
sources/com/google/android/material/button/MaterialButton.java
Normal file
363
sources/com/google/android/material/button/MaterialButton.java
Normal file
@@ -0,0 +1,363 @@
|
||||
package com.google.android.material.button;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Build;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import androidx.appcompat.content.res.AppCompatResources;
|
||||
import androidx.appcompat.widget.AppCompatButton;
|
||||
import androidx.core.graphics.drawable.DrawableCompat;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.widget.TextViewCompat;
|
||||
import com.google.android.material.R$attr;
|
||||
import com.google.android.material.R$style;
|
||||
import com.google.android.material.R$styleable;
|
||||
import com.google.android.material.internal.ThemeEnforcement;
|
||||
import com.google.android.material.internal.ViewUtils;
|
||||
import com.google.android.material.resources.MaterialResources;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class MaterialButton extends AppCompatButton {
|
||||
private final MaterialButtonHelper c;
|
||||
private int d;
|
||||
private PorterDuff.Mode e;
|
||||
private ColorStateList f;
|
||||
private Drawable g;
|
||||
private int h;
|
||||
private int i;
|
||||
private int j;
|
||||
|
||||
public MaterialButton(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, R$attr.materialButtonStyle);
|
||||
}
|
||||
|
||||
private boolean a() {
|
||||
return ViewCompat.k(this) == 1;
|
||||
}
|
||||
|
||||
private boolean b() {
|
||||
MaterialButtonHelper materialButtonHelper = this.c;
|
||||
return (materialButtonHelper == null || materialButtonHelper.g()) ? false : true;
|
||||
}
|
||||
|
||||
private void c() {
|
||||
Drawable drawable = this.g;
|
||||
if (drawable != null) {
|
||||
this.g = drawable.mutate();
|
||||
DrawableCompat.a(this.g, this.f);
|
||||
PorterDuff.Mode mode = this.e;
|
||||
if (mode != null) {
|
||||
DrawableCompat.a(this.g, mode);
|
||||
}
|
||||
int i = this.h;
|
||||
if (i == 0) {
|
||||
i = this.g.getIntrinsicWidth();
|
||||
}
|
||||
int i2 = this.h;
|
||||
if (i2 == 0) {
|
||||
i2 = this.g.getIntrinsicHeight();
|
||||
}
|
||||
Drawable drawable2 = this.g;
|
||||
int i3 = this.i;
|
||||
drawable2.setBounds(i3, 0, i + i3, i2);
|
||||
}
|
||||
TextViewCompat.a(this, this.g, null, null, null);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public ColorStateList getBackgroundTintList() {
|
||||
return getSupportBackgroundTintList();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public PorterDuff.Mode getBackgroundTintMode() {
|
||||
return getSupportBackgroundTintMode();
|
||||
}
|
||||
|
||||
public int getCornerRadius() {
|
||||
if (b()) {
|
||||
return this.c.a();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Drawable getIcon() {
|
||||
return this.g;
|
||||
}
|
||||
|
||||
public int getIconGravity() {
|
||||
return this.j;
|
||||
}
|
||||
|
||||
public int getIconPadding() {
|
||||
return this.d;
|
||||
}
|
||||
|
||||
public int getIconSize() {
|
||||
return this.h;
|
||||
}
|
||||
|
||||
public ColorStateList getIconTint() {
|
||||
return this.f;
|
||||
}
|
||||
|
||||
public PorterDuff.Mode getIconTintMode() {
|
||||
return this.e;
|
||||
}
|
||||
|
||||
public ColorStateList getRippleColor() {
|
||||
if (b()) {
|
||||
return this.c.b();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public ColorStateList getStrokeColor() {
|
||||
if (b()) {
|
||||
return this.c.c();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getStrokeWidth() {
|
||||
if (b()) {
|
||||
return this.c.d();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton, androidx.core.view.TintableBackgroundView
|
||||
public ColorStateList getSupportBackgroundTintList() {
|
||||
return b() ? this.c.e() : super.getSupportBackgroundTintList();
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton, androidx.core.view.TintableBackgroundView
|
||||
public PorterDuff.Mode getSupportBackgroundTintMode() {
|
||||
return b() ? this.c.f() : super.getSupportBackgroundTintMode();
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
protected void onDraw(Canvas canvas) {
|
||||
super.onDraw(canvas);
|
||||
if (Build.VERSION.SDK_INT >= 21 || !b()) {
|
||||
return;
|
||||
}
|
||||
this.c.a(canvas);
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton, android.widget.TextView, android.view.View
|
||||
protected void onLayout(boolean z, int i, int i2, int i3, int i4) {
|
||||
MaterialButtonHelper materialButtonHelper;
|
||||
super.onLayout(z, i, i2, i3, i4);
|
||||
if (Build.VERSION.SDK_INT != 21 || (materialButtonHelper = this.c) == null) {
|
||||
return;
|
||||
}
|
||||
materialButtonHelper.a(i4 - i2, i3 - i);
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
protected void onMeasure(int i, int i2) {
|
||||
super.onMeasure(i, i2);
|
||||
if (this.g == null || this.j != 2) {
|
||||
return;
|
||||
}
|
||||
int measureText = (int) getPaint().measureText(getText().toString());
|
||||
int i3 = this.h;
|
||||
if (i3 == 0) {
|
||||
i3 = this.g.getIntrinsicWidth();
|
||||
}
|
||||
int measuredWidth = (((((getMeasuredWidth() - measureText) - ViewCompat.n(this)) - i3) - this.d) - ViewCompat.o(this)) / 2;
|
||||
if (a()) {
|
||||
measuredWidth = -measuredWidth;
|
||||
}
|
||||
if (this.i != measuredWidth) {
|
||||
this.i = measuredWidth;
|
||||
c();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackground(Drawable drawable) {
|
||||
setBackgroundDrawable(drawable);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundColor(int i) {
|
||||
if (b()) {
|
||||
this.c.a(i);
|
||||
} else {
|
||||
super.setBackgroundColor(i);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton, android.view.View
|
||||
public void setBackgroundDrawable(Drawable drawable) {
|
||||
if (!b()) {
|
||||
super.setBackgroundDrawable(drawable);
|
||||
} else {
|
||||
if (drawable == getBackground()) {
|
||||
getBackground().setState(drawable.getState());
|
||||
return;
|
||||
}
|
||||
Log.i("MaterialButton", "Setting a custom background is not supported.");
|
||||
this.c.h();
|
||||
super.setBackgroundDrawable(drawable);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton, android.view.View
|
||||
public void setBackgroundResource(int i) {
|
||||
setBackgroundDrawable(i != 0 ? AppCompatResources.c(getContext(), i) : null);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundTintList(ColorStateList colorStateList) {
|
||||
setSupportBackgroundTintList(colorStateList);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundTintMode(PorterDuff.Mode mode) {
|
||||
setSupportBackgroundTintMode(mode);
|
||||
}
|
||||
|
||||
public void setCornerRadius(int i) {
|
||||
if (b()) {
|
||||
this.c.b(i);
|
||||
}
|
||||
}
|
||||
|
||||
public void setCornerRadiusResource(int i) {
|
||||
if (b()) {
|
||||
setCornerRadius(getResources().getDimensionPixelSize(i));
|
||||
}
|
||||
}
|
||||
|
||||
public void setIcon(Drawable drawable) {
|
||||
if (this.g != drawable) {
|
||||
this.g = drawable;
|
||||
c();
|
||||
}
|
||||
}
|
||||
|
||||
public void setIconGravity(int i) {
|
||||
this.j = i;
|
||||
}
|
||||
|
||||
public void setIconPadding(int i) {
|
||||
if (this.d != i) {
|
||||
this.d = i;
|
||||
setCompoundDrawablePadding(i);
|
||||
}
|
||||
}
|
||||
|
||||
public void setIconResource(int i) {
|
||||
setIcon(i != 0 ? AppCompatResources.c(getContext(), i) : null);
|
||||
}
|
||||
|
||||
public void setIconSize(int i) {
|
||||
if (i < 0) {
|
||||
throw new IllegalArgumentException("iconSize cannot be less than 0");
|
||||
}
|
||||
if (this.h != i) {
|
||||
this.h = i;
|
||||
c();
|
||||
}
|
||||
}
|
||||
|
||||
public void setIconTint(ColorStateList colorStateList) {
|
||||
if (this.f != colorStateList) {
|
||||
this.f = colorStateList;
|
||||
c();
|
||||
}
|
||||
}
|
||||
|
||||
public void setIconTintMode(PorterDuff.Mode mode) {
|
||||
if (this.e != mode) {
|
||||
this.e = mode;
|
||||
c();
|
||||
}
|
||||
}
|
||||
|
||||
public void setIconTintResource(int i) {
|
||||
setIconTint(AppCompatResources.b(getContext(), i));
|
||||
}
|
||||
|
||||
void setInternalBackground(Drawable drawable) {
|
||||
super.setBackgroundDrawable(drawable);
|
||||
}
|
||||
|
||||
public void setRippleColor(ColorStateList colorStateList) {
|
||||
if (b()) {
|
||||
this.c.a(colorStateList);
|
||||
}
|
||||
}
|
||||
|
||||
public void setRippleColorResource(int i) {
|
||||
if (b()) {
|
||||
setRippleColor(AppCompatResources.b(getContext(), i));
|
||||
}
|
||||
}
|
||||
|
||||
public void setStrokeColor(ColorStateList colorStateList) {
|
||||
if (b()) {
|
||||
this.c.b(colorStateList);
|
||||
}
|
||||
}
|
||||
|
||||
public void setStrokeColorResource(int i) {
|
||||
if (b()) {
|
||||
setStrokeColor(AppCompatResources.b(getContext(), i));
|
||||
}
|
||||
}
|
||||
|
||||
public void setStrokeWidth(int i) {
|
||||
if (b()) {
|
||||
this.c.c(i);
|
||||
}
|
||||
}
|
||||
|
||||
public void setStrokeWidthResource(int i) {
|
||||
if (b()) {
|
||||
setStrokeWidth(getResources().getDimensionPixelSize(i));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton, androidx.core.view.TintableBackgroundView
|
||||
public void setSupportBackgroundTintList(ColorStateList colorStateList) {
|
||||
if (b()) {
|
||||
this.c.c(colorStateList);
|
||||
} else if (this.c != null) {
|
||||
super.setSupportBackgroundTintList(colorStateList);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton, androidx.core.view.TintableBackgroundView
|
||||
public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
|
||||
if (b()) {
|
||||
this.c.a(mode);
|
||||
} else if (this.c != null) {
|
||||
super.setSupportBackgroundTintMode(mode);
|
||||
}
|
||||
}
|
||||
|
||||
public MaterialButton(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
TypedArray c = ThemeEnforcement.c(context, attributeSet, R$styleable.MaterialButton, i, R$style.Widget_MaterialComponents_Button, new int[0]);
|
||||
this.d = c.getDimensionPixelSize(R$styleable.MaterialButton_iconPadding, 0);
|
||||
this.e = ViewUtils.a(c.getInt(R$styleable.MaterialButton_iconTintMode, -1), PorterDuff.Mode.SRC_IN);
|
||||
this.f = MaterialResources.a(getContext(), c, R$styleable.MaterialButton_iconTint);
|
||||
this.g = MaterialResources.b(getContext(), c, R$styleable.MaterialButton_icon);
|
||||
this.j = c.getInteger(R$styleable.MaterialButton_iconGravity, 1);
|
||||
this.h = c.getDimensionPixelSize(R$styleable.MaterialButton_iconSize, 0);
|
||||
this.c = new MaterialButtonHelper(this);
|
||||
this.c.a(c);
|
||||
c.recycle();
|
||||
setCompoundDrawablePadding(this.d);
|
||||
c();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.material.button;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.ColorFilter;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.GradientDrawable;
|
||||
import android.graphics.drawable.InsetDrawable;
|
||||
import android.graphics.drawable.LayerDrawable;
|
||||
import android.graphics.drawable.RippleDrawable;
|
||||
|
||||
@TargetApi(21)
|
||||
/* loaded from: classes.dex */
|
||||
class MaterialButtonBackgroundDrawable extends RippleDrawable {
|
||||
MaterialButtonBackgroundDrawable(ColorStateList colorStateList, InsetDrawable insetDrawable, Drawable drawable) {
|
||||
super(colorStateList, insetDrawable, drawable);
|
||||
}
|
||||
|
||||
@Override // android.graphics.drawable.LayerDrawable, android.graphics.drawable.Drawable
|
||||
public void setColorFilter(ColorFilter colorFilter) {
|
||||
if (getDrawable(0) != null) {
|
||||
((GradientDrawable) ((LayerDrawable) ((InsetDrawable) getDrawable(0)).getDrawable()).getDrawable(0)).setColorFilter(colorFilter);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,310 @@
|
||||
package com.google.android.material.button;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.GradientDrawable;
|
||||
import android.graphics.drawable.InsetDrawable;
|
||||
import android.graphics.drawable.LayerDrawable;
|
||||
import android.graphics.drawable.RippleDrawable;
|
||||
import android.os.Build;
|
||||
import androidx.core.graphics.drawable.DrawableCompat;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import com.google.android.material.R$styleable;
|
||||
import com.google.android.material.internal.ViewUtils;
|
||||
import com.google.android.material.resources.MaterialResources;
|
||||
import com.google.android.material.ripple.RippleUtils;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class MaterialButtonHelper {
|
||||
private static final boolean w;
|
||||
private final MaterialButton a;
|
||||
private int b;
|
||||
private int c;
|
||||
private int d;
|
||||
private int e;
|
||||
private int f;
|
||||
private int g;
|
||||
private PorterDuff.Mode h;
|
||||
private ColorStateList i;
|
||||
private ColorStateList j;
|
||||
private ColorStateList k;
|
||||
private GradientDrawable o;
|
||||
private Drawable p;
|
||||
private GradientDrawable q;
|
||||
private Drawable r;
|
||||
private GradientDrawable s;
|
||||
private GradientDrawable t;
|
||||
private GradientDrawable u;
|
||||
private final Paint l = new Paint(1);
|
||||
private final Rect m = new Rect();
|
||||
private final RectF n = new RectF();
|
||||
private boolean v = false;
|
||||
|
||||
static {
|
||||
w = Build.VERSION.SDK_INT >= 21;
|
||||
}
|
||||
|
||||
public MaterialButtonHelper(MaterialButton materialButton) {
|
||||
this.a = materialButton;
|
||||
}
|
||||
|
||||
private Drawable i() {
|
||||
this.o = new GradientDrawable();
|
||||
this.o.setCornerRadius(this.f + 1.0E-5f);
|
||||
this.o.setColor(-1);
|
||||
this.p = DrawableCompat.h(this.o);
|
||||
DrawableCompat.a(this.p, this.i);
|
||||
PorterDuff.Mode mode = this.h;
|
||||
if (mode != null) {
|
||||
DrawableCompat.a(this.p, mode);
|
||||
}
|
||||
this.q = new GradientDrawable();
|
||||
this.q.setCornerRadius(this.f + 1.0E-5f);
|
||||
this.q.setColor(-1);
|
||||
this.r = DrawableCompat.h(this.q);
|
||||
DrawableCompat.a(this.r, this.k);
|
||||
return a(new LayerDrawable(new Drawable[]{this.p, this.r}));
|
||||
}
|
||||
|
||||
@TargetApi(21)
|
||||
private Drawable j() {
|
||||
this.s = new GradientDrawable();
|
||||
this.s.setCornerRadius(this.f + 1.0E-5f);
|
||||
this.s.setColor(-1);
|
||||
n();
|
||||
this.t = new GradientDrawable();
|
||||
this.t.setCornerRadius(this.f + 1.0E-5f);
|
||||
this.t.setColor(0);
|
||||
this.t.setStroke(this.g, this.j);
|
||||
InsetDrawable a = a(new LayerDrawable(new Drawable[]{this.s, this.t}));
|
||||
this.u = new GradientDrawable();
|
||||
this.u.setCornerRadius(this.f + 1.0E-5f);
|
||||
this.u.setColor(-1);
|
||||
return new MaterialButtonBackgroundDrawable(RippleUtils.a(this.k), a, this.u);
|
||||
}
|
||||
|
||||
private GradientDrawable k() {
|
||||
if (!w || this.a.getBackground() == null) {
|
||||
return null;
|
||||
}
|
||||
return (GradientDrawable) ((LayerDrawable) ((InsetDrawable) ((RippleDrawable) this.a.getBackground()).getDrawable(0)).getDrawable()).getDrawable(0);
|
||||
}
|
||||
|
||||
private GradientDrawable l() {
|
||||
if (!w || this.a.getBackground() == null) {
|
||||
return null;
|
||||
}
|
||||
return (GradientDrawable) ((LayerDrawable) ((InsetDrawable) ((RippleDrawable) this.a.getBackground()).getDrawable(0)).getDrawable()).getDrawable(1);
|
||||
}
|
||||
|
||||
private void m() {
|
||||
if (w && this.t != null) {
|
||||
this.a.setInternalBackground(j());
|
||||
} else {
|
||||
if (w) {
|
||||
return;
|
||||
}
|
||||
this.a.invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
private void n() {
|
||||
GradientDrawable gradientDrawable = this.s;
|
||||
if (gradientDrawable != null) {
|
||||
DrawableCompat.a(gradientDrawable, this.i);
|
||||
PorterDuff.Mode mode = this.h;
|
||||
if (mode != null) {
|
||||
DrawableCompat.a(this.s, mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void a(TypedArray typedArray) {
|
||||
this.b = typedArray.getDimensionPixelOffset(R$styleable.MaterialButton_android_insetLeft, 0);
|
||||
this.c = typedArray.getDimensionPixelOffset(R$styleable.MaterialButton_android_insetRight, 0);
|
||||
this.d = typedArray.getDimensionPixelOffset(R$styleable.MaterialButton_android_insetTop, 0);
|
||||
this.e = typedArray.getDimensionPixelOffset(R$styleable.MaterialButton_android_insetBottom, 0);
|
||||
this.f = typedArray.getDimensionPixelSize(R$styleable.MaterialButton_cornerRadius, 0);
|
||||
this.g = typedArray.getDimensionPixelSize(R$styleable.MaterialButton_strokeWidth, 0);
|
||||
this.h = ViewUtils.a(typedArray.getInt(R$styleable.MaterialButton_backgroundTintMode, -1), PorterDuff.Mode.SRC_IN);
|
||||
this.i = MaterialResources.a(this.a.getContext(), typedArray, R$styleable.MaterialButton_backgroundTint);
|
||||
this.j = MaterialResources.a(this.a.getContext(), typedArray, R$styleable.MaterialButton_strokeColor);
|
||||
this.k = MaterialResources.a(this.a.getContext(), typedArray, R$styleable.MaterialButton_rippleColor);
|
||||
this.l.setStyle(Paint.Style.STROKE);
|
||||
this.l.setStrokeWidth(this.g);
|
||||
Paint paint = this.l;
|
||||
ColorStateList colorStateList = this.j;
|
||||
paint.setColor(colorStateList != null ? colorStateList.getColorForState(this.a.getDrawableState(), 0) : 0);
|
||||
int o = ViewCompat.o(this.a);
|
||||
int paddingTop = this.a.getPaddingTop();
|
||||
int n = ViewCompat.n(this.a);
|
||||
int paddingBottom = this.a.getPaddingBottom();
|
||||
this.a.setInternalBackground(w ? j() : i());
|
||||
ViewCompat.a(this.a, o + this.b, paddingTop + this.d, n + this.c, paddingBottom + this.e);
|
||||
}
|
||||
|
||||
ColorStateList b() {
|
||||
return this.k;
|
||||
}
|
||||
|
||||
void c(ColorStateList colorStateList) {
|
||||
if (this.i != colorStateList) {
|
||||
this.i = colorStateList;
|
||||
if (w) {
|
||||
n();
|
||||
return;
|
||||
}
|
||||
Drawable drawable = this.p;
|
||||
if (drawable != null) {
|
||||
DrawableCompat.a(drawable, this.i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int d() {
|
||||
return this.g;
|
||||
}
|
||||
|
||||
ColorStateList e() {
|
||||
return this.i;
|
||||
}
|
||||
|
||||
PorterDuff.Mode f() {
|
||||
return this.h;
|
||||
}
|
||||
|
||||
boolean g() {
|
||||
return this.v;
|
||||
}
|
||||
|
||||
void h() {
|
||||
this.v = true;
|
||||
this.a.setSupportBackgroundTintList(this.i);
|
||||
this.a.setSupportBackgroundTintMode(this.h);
|
||||
}
|
||||
|
||||
void b(ColorStateList colorStateList) {
|
||||
if (this.j != colorStateList) {
|
||||
this.j = colorStateList;
|
||||
this.l.setColor(colorStateList != null ? colorStateList.getColorForState(this.a.getDrawableState(), 0) : 0);
|
||||
m();
|
||||
}
|
||||
}
|
||||
|
||||
ColorStateList c() {
|
||||
return this.j;
|
||||
}
|
||||
|
||||
void b(int i) {
|
||||
GradientDrawable gradientDrawable;
|
||||
if (this.f != i) {
|
||||
this.f = i;
|
||||
if (w && this.s != null && this.t != null && this.u != null) {
|
||||
if (Build.VERSION.SDK_INT == 21) {
|
||||
float f = i + 1.0E-5f;
|
||||
k().setCornerRadius(f);
|
||||
l().setCornerRadius(f);
|
||||
}
|
||||
float f2 = i + 1.0E-5f;
|
||||
this.s.setCornerRadius(f2);
|
||||
this.t.setCornerRadius(f2);
|
||||
this.u.setCornerRadius(f2);
|
||||
return;
|
||||
}
|
||||
if (w || (gradientDrawable = this.o) == null || this.q == null) {
|
||||
return;
|
||||
}
|
||||
float f3 = i + 1.0E-5f;
|
||||
gradientDrawable.setCornerRadius(f3);
|
||||
this.q.setCornerRadius(f3);
|
||||
this.a.invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
void c(int i) {
|
||||
if (this.g != i) {
|
||||
this.g = i;
|
||||
this.l.setStrokeWidth(i);
|
||||
m();
|
||||
}
|
||||
}
|
||||
|
||||
void a(Canvas canvas) {
|
||||
if (canvas == null || this.j == null || this.g <= 0) {
|
||||
return;
|
||||
}
|
||||
this.m.set(this.a.getBackground().getBounds());
|
||||
RectF rectF = this.n;
|
||||
float f = this.m.left;
|
||||
int i = this.g;
|
||||
rectF.set(f + (i / 2.0f) + this.b, r1.top + (i / 2.0f) + this.d, (r1.right - (i / 2.0f)) - this.c, (r1.bottom - (i / 2.0f)) - this.e);
|
||||
float f2 = this.f - (this.g / 2.0f);
|
||||
canvas.drawRoundRect(this.n, f2, f2, this.l);
|
||||
}
|
||||
|
||||
private InsetDrawable a(Drawable drawable) {
|
||||
return new InsetDrawable(drawable, this.b, this.d, this.c, this.e);
|
||||
}
|
||||
|
||||
void a(PorterDuff.Mode mode) {
|
||||
PorterDuff.Mode mode2;
|
||||
if (this.h != mode) {
|
||||
this.h = mode;
|
||||
if (w) {
|
||||
n();
|
||||
return;
|
||||
}
|
||||
Drawable drawable = this.p;
|
||||
if (drawable == null || (mode2 = this.h) == null) {
|
||||
return;
|
||||
}
|
||||
DrawableCompat.a(drawable, mode2);
|
||||
}
|
||||
}
|
||||
|
||||
void a(int i, int i2) {
|
||||
GradientDrawable gradientDrawable = this.u;
|
||||
if (gradientDrawable != null) {
|
||||
gradientDrawable.setBounds(this.b, this.d, i2 - this.c, i - this.e);
|
||||
}
|
||||
}
|
||||
|
||||
void a(int i) {
|
||||
GradientDrawable gradientDrawable;
|
||||
GradientDrawable gradientDrawable2;
|
||||
if (w && (gradientDrawable2 = this.s) != null) {
|
||||
gradientDrawable2.setColor(i);
|
||||
} else {
|
||||
if (w || (gradientDrawable = this.o) == null) {
|
||||
return;
|
||||
}
|
||||
gradientDrawable.setColor(i);
|
||||
}
|
||||
}
|
||||
|
||||
void a(ColorStateList colorStateList) {
|
||||
Drawable drawable;
|
||||
if (this.k != colorStateList) {
|
||||
this.k = colorStateList;
|
||||
if (w && (this.a.getBackground() instanceof RippleDrawable)) {
|
||||
((RippleDrawable) this.a.getBackground()).setColor(colorStateList);
|
||||
} else {
|
||||
if (w || (drawable = this.r) == null) {
|
||||
return;
|
||||
}
|
||||
DrawableCompat.a(drawable, colorStateList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int a() {
|
||||
return this.f;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.google.android.material.circularreveal;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.AnimatorSet;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.animation.TypeEvaluator;
|
||||
import android.os.Build;
|
||||
import android.util.Property;
|
||||
import android.view.View;
|
||||
import android.view.ViewAnimationUtils;
|
||||
import com.google.android.material.circularreveal.CircularRevealWidget;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class CircularRevealCompat {
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static Animator a(CircularRevealWidget circularRevealWidget, float f, float f2, float f3) {
|
||||
ObjectAnimator ofObject = ObjectAnimator.ofObject(circularRevealWidget, (Property<CircularRevealWidget, V>) CircularRevealWidget.CircularRevealProperty.a, (TypeEvaluator) CircularRevealWidget.CircularRevealEvaluator.b, (Object[]) new CircularRevealWidget.RevealInfo[]{new CircularRevealWidget.RevealInfo(f, f2, f3)});
|
||||
if (Build.VERSION.SDK_INT < 21) {
|
||||
return ofObject;
|
||||
}
|
||||
CircularRevealWidget.RevealInfo revealInfo = circularRevealWidget.getRevealInfo();
|
||||
if (revealInfo == null) {
|
||||
throw new IllegalStateException("Caller must set a non-null RevealInfo before calling this.");
|
||||
}
|
||||
Animator createCircularReveal = ViewAnimationUtils.createCircularReveal((View) circularRevealWidget, (int) f, (int) f2, revealInfo.c, f3);
|
||||
AnimatorSet animatorSet = new AnimatorSet();
|
||||
animatorSet.playTogether(ofObject, createCircularReveal);
|
||||
return animatorSet;
|
||||
}
|
||||
|
||||
public static Animator.AnimatorListener a(final CircularRevealWidget circularRevealWidget) {
|
||||
return new AnimatorListenerAdapter() { // from class: com.google.android.material.circularreveal.CircularRevealCompat.1
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator) {
|
||||
CircularRevealWidget.this.b();
|
||||
}
|
||||
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationStart(Animator animator) {
|
||||
CircularRevealWidget.this.a();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package com.google.android.material.circularreveal;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.widget.FrameLayout;
|
||||
import com.google.android.material.circularreveal.CircularRevealWidget;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class CircularRevealFrameLayout extends FrameLayout implements CircularRevealWidget {
|
||||
private final CircularRevealHelper a;
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public void a() {
|
||||
this.a.a();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public void b() {
|
||||
this.a.b();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
@SuppressLint({"MissingSuperCall"})
|
||||
public void draw(Canvas canvas) {
|
||||
CircularRevealHelper circularRevealHelper = this.a;
|
||||
if (circularRevealHelper == null) {
|
||||
super.draw(canvas);
|
||||
} else {
|
||||
circularRevealHelper.a(canvas);
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public Drawable getCircularRevealOverlayDrawable() {
|
||||
this.a.c();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public int getCircularRevealScrimColor() {
|
||||
this.a.d();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public CircularRevealWidget.RevealInfo getRevealInfo() {
|
||||
this.a.e();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public boolean isOpaque() {
|
||||
CircularRevealHelper circularRevealHelper = this.a;
|
||||
if (circularRevealHelper == null) {
|
||||
return super.isOpaque();
|
||||
}
|
||||
circularRevealHelper.f();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public void setCircularRevealOverlayDrawable(Drawable drawable) {
|
||||
this.a.a(drawable);
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public void setCircularRevealScrimColor(int i) {
|
||||
this.a.a(i);
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public void setRevealInfo(CircularRevealWidget.RevealInfo revealInfo) {
|
||||
this.a.a(revealInfo);
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.google.android.material.circularreveal;
|
||||
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Build;
|
||||
import com.google.android.material.circularreveal.CircularRevealWidget;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class CircularRevealHelper {
|
||||
public static final int a;
|
||||
|
||||
interface Delegate {
|
||||
}
|
||||
|
||||
static {
|
||||
int i = Build.VERSION.SDK_INT;
|
||||
if (i >= 21) {
|
||||
a = 2;
|
||||
} else if (i >= 18) {
|
||||
a = 1;
|
||||
} else {
|
||||
a = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void a() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void a(int i) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void a(Canvas canvas) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void a(Drawable drawable) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void a(CircularRevealWidget.RevealInfo revealInfo) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void b() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public Drawable c() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public int d() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public CircularRevealWidget.RevealInfo e() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public boolean f() {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.google.android.material.circularreveal;
|
||||
|
||||
import android.animation.TypeEvaluator;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.Property;
|
||||
import com.google.android.material.circularreveal.CircularRevealHelper;
|
||||
import com.google.android.material.math.MathUtils;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public interface CircularRevealWidget extends CircularRevealHelper.Delegate {
|
||||
|
||||
public static class CircularRevealEvaluator implements TypeEvaluator<RevealInfo> {
|
||||
public static final TypeEvaluator<RevealInfo> b = new CircularRevealEvaluator();
|
||||
private final RevealInfo a = new RevealInfo();
|
||||
|
||||
@Override // android.animation.TypeEvaluator
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public RevealInfo evaluate(float f, RevealInfo revealInfo, RevealInfo revealInfo2) {
|
||||
this.a.a(MathUtils.a(revealInfo.a, revealInfo2.a, f), MathUtils.a(revealInfo.b, revealInfo2.b, f), MathUtils.a(revealInfo.c, revealInfo2.c, f));
|
||||
return this.a;
|
||||
}
|
||||
}
|
||||
|
||||
public static class CircularRevealProperty extends Property<CircularRevealWidget, RevealInfo> {
|
||||
public static final Property<CircularRevealWidget, RevealInfo> a = new CircularRevealProperty("circularReveal");
|
||||
|
||||
private CircularRevealProperty(String str) {
|
||||
super(RevealInfo.class, str);
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public RevealInfo get(CircularRevealWidget circularRevealWidget) {
|
||||
return circularRevealWidget.getRevealInfo();
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public void set(CircularRevealWidget circularRevealWidget, RevealInfo revealInfo) {
|
||||
circularRevealWidget.setRevealInfo(revealInfo);
|
||||
}
|
||||
}
|
||||
|
||||
public static class CircularRevealScrimColorProperty extends Property<CircularRevealWidget, Integer> {
|
||||
public static final Property<CircularRevealWidget, Integer> a = new CircularRevealScrimColorProperty("circularRevealScrimColor");
|
||||
|
||||
private CircularRevealScrimColorProperty(String str) {
|
||||
super(Integer.class, str);
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public Integer get(CircularRevealWidget circularRevealWidget) {
|
||||
return Integer.valueOf(circularRevealWidget.getCircularRevealScrimColor());
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public void set(CircularRevealWidget circularRevealWidget, Integer num) {
|
||||
circularRevealWidget.setCircularRevealScrimColor(num.intValue());
|
||||
}
|
||||
}
|
||||
|
||||
public static class RevealInfo {
|
||||
public float a;
|
||||
public float b;
|
||||
public float c;
|
||||
|
||||
public void a(float f, float f2, float f3) {
|
||||
this.a = f;
|
||||
this.b = f2;
|
||||
this.c = f3;
|
||||
}
|
||||
|
||||
private RevealInfo() {
|
||||
}
|
||||
|
||||
public RevealInfo(float f, float f2, float f3) {
|
||||
this.a = f;
|
||||
this.b = f2;
|
||||
this.c = f3;
|
||||
}
|
||||
}
|
||||
|
||||
void a();
|
||||
|
||||
void b();
|
||||
|
||||
int getCircularRevealScrimColor();
|
||||
|
||||
RevealInfo getRevealInfo();
|
||||
|
||||
void setCircularRevealOverlayDrawable(Drawable drawable);
|
||||
|
||||
void setCircularRevealScrimColor(int i);
|
||||
|
||||
void setRevealInfo(RevealInfo revealInfo);
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.google.android.material.circularreveal.cardview;
|
||||
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import androidx.cardview.widget.CardView;
|
||||
import com.google.android.material.circularreveal.CircularRevealHelper;
|
||||
import com.google.android.material.circularreveal.CircularRevealWidget;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class CircularRevealCardView extends CardView implements CircularRevealWidget {
|
||||
private final CircularRevealHelper j;
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public void a() {
|
||||
this.j.a();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public void b() {
|
||||
this.j.b();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void draw(Canvas canvas) {
|
||||
CircularRevealHelper circularRevealHelper = this.j;
|
||||
if (circularRevealHelper == null) {
|
||||
super.draw(canvas);
|
||||
} else {
|
||||
circularRevealHelper.a(canvas);
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
public Drawable getCircularRevealOverlayDrawable() {
|
||||
this.j.c();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public int getCircularRevealScrimColor() {
|
||||
this.j.d();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public CircularRevealWidget.RevealInfo getRevealInfo() {
|
||||
this.j.e();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public boolean isOpaque() {
|
||||
CircularRevealHelper circularRevealHelper = this.j;
|
||||
if (circularRevealHelper == null) {
|
||||
return super.isOpaque();
|
||||
}
|
||||
circularRevealHelper.f();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public void setCircularRevealOverlayDrawable(Drawable drawable) {
|
||||
this.j.a(drawable);
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public void setCircularRevealScrimColor(int i) {
|
||||
this.j.a(i);
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.circularreveal.CircularRevealWidget
|
||||
public void setRevealInfo(CircularRevealWidget.RevealInfo revealInfo) {
|
||||
this.j.a(revealInfo);
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.google.android.material.expandable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public interface ExpandableTransformationWidget extends ExpandableWidget {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.google.android.material.expandable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public interface ExpandableWidget {
|
||||
boolean isExpanded();
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.material.expandable;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class ExpandableWidgetHelper {
|
||||
public int a() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void a(int i) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void a(Bundle bundle) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public boolean b() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public Bundle c() {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,669 @@
|
||||
package com.google.android.material.floatingactionbutton;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcelable;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.appcompat.widget.AppCompatDrawableManager;
|
||||
import androidx.appcompat.widget.AppCompatImageHelper;
|
||||
import androidx.collection.SimpleArrayMap;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import androidx.core.graphics.drawable.DrawableCompat;
|
||||
import androidx.core.view.TintableBackgroundView;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.widget.TintableImageSourceView;
|
||||
import com.google.android.material.R$dimen;
|
||||
import com.google.android.material.R$styleable;
|
||||
import com.google.android.material.animation.MotionSpec;
|
||||
import com.google.android.material.appbar.AppBarLayout;
|
||||
import com.google.android.material.bottomsheet.BottomSheetBehavior;
|
||||
import com.google.android.material.expandable.ExpandableTransformationWidget;
|
||||
import com.google.android.material.expandable.ExpandableWidgetHelper;
|
||||
import com.google.android.material.floatingactionbutton.FloatingActionButtonImpl;
|
||||
import com.google.android.material.internal.DescendantOffsetUtils;
|
||||
import com.google.android.material.internal.VisibilityAwareImageButton;
|
||||
import com.google.android.material.shadow.ShadowViewDelegate;
|
||||
import com.google.android.material.stateful.ExtendableSavedState;
|
||||
import java.util.List;
|
||||
|
||||
@CoordinatorLayout.DefaultBehavior(Behavior.class)
|
||||
/* loaded from: classes.dex */
|
||||
public class FloatingActionButton extends VisibilityAwareImageButton implements TintableBackgroundView, TintableImageSourceView, ExpandableTransformationWidget {
|
||||
private ColorStateList b;
|
||||
private PorterDuff.Mode c;
|
||||
private ColorStateList d;
|
||||
private PorterDuff.Mode e;
|
||||
private ColorStateList f;
|
||||
private int g;
|
||||
private int h;
|
||||
private int i;
|
||||
private int j;
|
||||
boolean k;
|
||||
final Rect l;
|
||||
private final Rect m;
|
||||
private final AppCompatImageHelper n;
|
||||
private final ExpandableWidgetHelper o;
|
||||
private FloatingActionButtonImpl p;
|
||||
|
||||
protected static class BaseBehavior<T extends FloatingActionButton> extends CoordinatorLayout.Behavior<T> {
|
||||
private Rect a;
|
||||
private OnVisibilityChangedListener b;
|
||||
private boolean c;
|
||||
|
||||
public BaseBehavior() {
|
||||
this.c = true;
|
||||
}
|
||||
|
||||
private boolean b(View view, FloatingActionButton floatingActionButton) {
|
||||
if (!a(view, floatingActionButton)) {
|
||||
return false;
|
||||
}
|
||||
if (view.getTop() < (floatingActionButton.getHeight() / 2) + ((ViewGroup.MarginLayoutParams) ((CoordinatorLayout.LayoutParams) floatingActionButton.getLayoutParams())).topMargin) {
|
||||
floatingActionButton.a(this.b, false);
|
||||
return true;
|
||||
}
|
||||
floatingActionButton.b(this.b, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
public BaseBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.FloatingActionButton_Behavior_Layout);
|
||||
this.c = obtainStyledAttributes.getBoolean(R$styleable.FloatingActionButton_Behavior_Layout_behavior_autoHide, true);
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public void a(CoordinatorLayout.LayoutParams layoutParams) {
|
||||
if (layoutParams.h == 0) {
|
||||
layoutParams.h = 80;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public boolean b(CoordinatorLayout coordinatorLayout, FloatingActionButton floatingActionButton, View view) {
|
||||
if (view instanceof AppBarLayout) {
|
||||
a(coordinatorLayout, (AppBarLayout) view, floatingActionButton);
|
||||
return false;
|
||||
}
|
||||
if (!a(view)) {
|
||||
return false;
|
||||
}
|
||||
b(view, floatingActionButton);
|
||||
return false;
|
||||
}
|
||||
|
||||
private static boolean a(View view) {
|
||||
ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
|
||||
if (layoutParams instanceof CoordinatorLayout.LayoutParams) {
|
||||
return ((CoordinatorLayout.LayoutParams) layoutParams).d() instanceof BottomSheetBehavior;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean a(View view, FloatingActionButton floatingActionButton) {
|
||||
return this.c && ((CoordinatorLayout.LayoutParams) floatingActionButton.getLayoutParams()).c() == view.getId() && floatingActionButton.getUserSetVisibility() == 0;
|
||||
}
|
||||
|
||||
private boolean a(CoordinatorLayout coordinatorLayout, AppBarLayout appBarLayout, FloatingActionButton floatingActionButton) {
|
||||
if (!a(appBarLayout, floatingActionButton)) {
|
||||
return false;
|
||||
}
|
||||
if (this.a == null) {
|
||||
this.a = new Rect();
|
||||
}
|
||||
Rect rect = this.a;
|
||||
DescendantOffsetUtils.a(coordinatorLayout, appBarLayout, rect);
|
||||
if (rect.bottom <= appBarLayout.getMinimumHeightForVisibleOverlappingContent()) {
|
||||
floatingActionButton.a(this.b, false);
|
||||
return true;
|
||||
}
|
||||
floatingActionButton.b(this.b, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, FloatingActionButton floatingActionButton, int i) {
|
||||
List<View> b = coordinatorLayout.b(floatingActionButton);
|
||||
int size = b.size();
|
||||
for (int i2 = 0; i2 < size; i2++) {
|
||||
View view = b.get(i2);
|
||||
if (view instanceof AppBarLayout) {
|
||||
if (a(coordinatorLayout, (AppBarLayout) view, floatingActionButton)) {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (a(view) && b(view, floatingActionButton)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
coordinatorLayout.c(floatingActionButton, i);
|
||||
a(coordinatorLayout, floatingActionButton);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, FloatingActionButton floatingActionButton, Rect rect) {
|
||||
Rect rect2 = floatingActionButton.l;
|
||||
rect.set(floatingActionButton.getLeft() + rect2.left, floatingActionButton.getTop() + rect2.top, floatingActionButton.getRight() - rect2.right, floatingActionButton.getBottom() - rect2.bottom);
|
||||
return true;
|
||||
}
|
||||
|
||||
private void a(CoordinatorLayout coordinatorLayout, FloatingActionButton floatingActionButton) {
|
||||
int i;
|
||||
Rect rect = floatingActionButton.l;
|
||||
if (rect == null || rect.centerX() <= 0 || rect.centerY() <= 0) {
|
||||
return;
|
||||
}
|
||||
CoordinatorLayout.LayoutParams layoutParams = (CoordinatorLayout.LayoutParams) floatingActionButton.getLayoutParams();
|
||||
int i2 = 0;
|
||||
if (floatingActionButton.getRight() >= coordinatorLayout.getWidth() - ((ViewGroup.MarginLayoutParams) layoutParams).rightMargin) {
|
||||
i = rect.right;
|
||||
} else {
|
||||
i = floatingActionButton.getLeft() <= ((ViewGroup.MarginLayoutParams) layoutParams).leftMargin ? -rect.left : 0;
|
||||
}
|
||||
if (floatingActionButton.getBottom() >= coordinatorLayout.getHeight() - ((ViewGroup.MarginLayoutParams) layoutParams).bottomMargin) {
|
||||
i2 = rect.bottom;
|
||||
} else if (floatingActionButton.getTop() <= ((ViewGroup.MarginLayoutParams) layoutParams).topMargin) {
|
||||
i2 = -rect.top;
|
||||
}
|
||||
if (i2 != 0) {
|
||||
ViewCompat.d((View) floatingActionButton, i2);
|
||||
}
|
||||
if (i != 0) {
|
||||
ViewCompat.c((View) floatingActionButton, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class Behavior extends BaseBehavior<FloatingActionButton> {
|
||||
public Behavior() {
|
||||
}
|
||||
|
||||
public Behavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
}
|
||||
|
||||
public static abstract class OnVisibilityChangedListener {
|
||||
public abstract void a(FloatingActionButton floatingActionButton);
|
||||
|
||||
public abstract void b(FloatingActionButton floatingActionButton);
|
||||
}
|
||||
|
||||
private void c() {
|
||||
Drawable drawable = getDrawable();
|
||||
if (drawable == null) {
|
||||
return;
|
||||
}
|
||||
ColorStateList colorStateList = this.d;
|
||||
if (colorStateList == null) {
|
||||
DrawableCompat.b(drawable);
|
||||
return;
|
||||
}
|
||||
int colorForState = colorStateList.getColorForState(getDrawableState(), 0);
|
||||
PorterDuff.Mode mode = this.e;
|
||||
if (mode == null) {
|
||||
mode = PorterDuff.Mode.SRC_IN;
|
||||
}
|
||||
drawable.mutate().setColorFilter(AppCompatDrawableManager.a(colorForState, mode));
|
||||
}
|
||||
|
||||
private FloatingActionButtonImpl getImpl() {
|
||||
if (this.p == null) {
|
||||
this.p = b();
|
||||
}
|
||||
return this.p;
|
||||
}
|
||||
|
||||
void b(OnVisibilityChangedListener onVisibilityChangedListener, boolean z) {
|
||||
getImpl().b(a(onVisibilityChangedListener), z);
|
||||
}
|
||||
|
||||
public void d(Animator.AnimatorListener animatorListener) {
|
||||
getImpl().d(animatorListener);
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView, android.view.View
|
||||
protected void drawableStateChanged() {
|
||||
super.drawableStateChanged();
|
||||
getImpl().a(getDrawableState());
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public ColorStateList getBackgroundTintList() {
|
||||
return this.b;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public PorterDuff.Mode getBackgroundTintMode() {
|
||||
return this.c;
|
||||
}
|
||||
|
||||
public float getCompatElevation() {
|
||||
return getImpl().b();
|
||||
}
|
||||
|
||||
public float getCompatHoveredFocusedTranslationZ() {
|
||||
return getImpl().d();
|
||||
}
|
||||
|
||||
public float getCompatPressedTranslationZ() {
|
||||
return getImpl().e();
|
||||
}
|
||||
|
||||
public Drawable getContentBackground() {
|
||||
return getImpl().a();
|
||||
}
|
||||
|
||||
public int getCustomSize() {
|
||||
return this.h;
|
||||
}
|
||||
|
||||
public int getExpandedComponentIdHint() {
|
||||
this.o.a();
|
||||
throw null;
|
||||
}
|
||||
|
||||
public MotionSpec getHideMotionSpec() {
|
||||
return getImpl().c();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public int getRippleColor() {
|
||||
ColorStateList colorStateList = this.f;
|
||||
if (colorStateList != null) {
|
||||
return colorStateList.getDefaultColor();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public ColorStateList getRippleColorStateList() {
|
||||
return this.f;
|
||||
}
|
||||
|
||||
public MotionSpec getShowMotionSpec() {
|
||||
return getImpl().f();
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return this.g;
|
||||
}
|
||||
|
||||
int getSizeDimension() {
|
||||
return a(this.g);
|
||||
}
|
||||
|
||||
@Override // androidx.core.view.TintableBackgroundView
|
||||
public ColorStateList getSupportBackgroundTintList() {
|
||||
return getBackgroundTintList();
|
||||
}
|
||||
|
||||
@Override // androidx.core.view.TintableBackgroundView
|
||||
public PorterDuff.Mode getSupportBackgroundTintMode() {
|
||||
return getBackgroundTintMode();
|
||||
}
|
||||
|
||||
@Override // androidx.core.widget.TintableImageSourceView
|
||||
public ColorStateList getSupportImageTintList() {
|
||||
return this.d;
|
||||
}
|
||||
|
||||
@Override // androidx.core.widget.TintableImageSourceView
|
||||
public PorterDuff.Mode getSupportImageTintMode() {
|
||||
return this.e;
|
||||
}
|
||||
|
||||
public boolean getUseCompatPadding() {
|
||||
return this.k;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.expandable.ExpandableWidget
|
||||
public boolean isExpanded() {
|
||||
this.o.b();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView, android.view.View
|
||||
public void jumpDrawablesToCurrentState() {
|
||||
super.jumpDrawablesToCurrentState();
|
||||
getImpl().i();
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView, android.view.View
|
||||
protected void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
getImpl().j();
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView, android.view.View
|
||||
protected void onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow();
|
||||
getImpl().l();
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView, android.view.View
|
||||
protected void onMeasure(int i, int i2) {
|
||||
int sizeDimension = getSizeDimension();
|
||||
this.i = (sizeDimension - this.j) / 2;
|
||||
getImpl().p();
|
||||
int min = Math.min(a(sizeDimension, i), a(sizeDimension, i2));
|
||||
Rect rect = this.l;
|
||||
setMeasuredDimension(rect.left + min + rect.right, min + rect.top + rect.bottom);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected void onRestoreInstanceState(Parcelable parcelable) {
|
||||
if (!(parcelable instanceof ExtendableSavedState)) {
|
||||
super.onRestoreInstanceState(parcelable);
|
||||
return;
|
||||
}
|
||||
ExtendableSavedState extendableSavedState = (ExtendableSavedState) parcelable;
|
||||
super.onRestoreInstanceState(extendableSavedState.getSuperState());
|
||||
this.o.a(extendableSavedState.extendableStates.get("expandableWidgetHelper"));
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected Parcelable onSaveInstanceState() {
|
||||
SimpleArrayMap<String, Bundle> simpleArrayMap = new ExtendableSavedState(super.onSaveInstanceState()).extendableStates;
|
||||
this.o.c();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public boolean onTouchEvent(MotionEvent motionEvent) {
|
||||
if (motionEvent.getAction() == 0 && a(this.m) && !this.m.contains((int) motionEvent.getX(), (int) motionEvent.getY())) {
|
||||
return false;
|
||||
}
|
||||
return super.onTouchEvent(motionEvent);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundColor(int i) {
|
||||
Log.i("FloatingActionButton", "Setting a custom background is not supported.");
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundDrawable(Drawable drawable) {
|
||||
Log.i("FloatingActionButton", "Setting a custom background is not supported.");
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundResource(int i) {
|
||||
Log.i("FloatingActionButton", "Setting a custom background is not supported.");
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundTintList(ColorStateList colorStateList) {
|
||||
if (this.b != colorStateList) {
|
||||
this.b = colorStateList;
|
||||
getImpl().a(colorStateList);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundTintMode(PorterDuff.Mode mode) {
|
||||
if (this.c != mode) {
|
||||
this.c = mode;
|
||||
getImpl().a(mode);
|
||||
}
|
||||
}
|
||||
|
||||
public void setCompatElevation(float f) {
|
||||
getImpl().a(f);
|
||||
}
|
||||
|
||||
public void setCompatElevationResource(int i) {
|
||||
setCompatElevation(getResources().getDimension(i));
|
||||
}
|
||||
|
||||
public void setCompatHoveredFocusedTranslationZ(float f) {
|
||||
getImpl().b(f);
|
||||
}
|
||||
|
||||
public void setCompatHoveredFocusedTranslationZResource(int i) {
|
||||
setCompatHoveredFocusedTranslationZ(getResources().getDimension(i));
|
||||
}
|
||||
|
||||
public void setCompatPressedTranslationZ(float f) {
|
||||
getImpl().d(f);
|
||||
}
|
||||
|
||||
public void setCompatPressedTranslationZResource(int i) {
|
||||
setCompatPressedTranslationZ(getResources().getDimension(i));
|
||||
}
|
||||
|
||||
public void setCustomSize(int i) {
|
||||
if (i < 0) {
|
||||
throw new IllegalArgumentException("Custom size must be non-negative");
|
||||
}
|
||||
this.h = i;
|
||||
}
|
||||
|
||||
public void setExpandedComponentIdHint(int i) {
|
||||
this.o.a(i);
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void setHideMotionSpec(MotionSpec motionSpec) {
|
||||
getImpl().a(motionSpec);
|
||||
}
|
||||
|
||||
public void setHideMotionSpecResource(int i) {
|
||||
setHideMotionSpec(MotionSpec.a(getContext(), i));
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView
|
||||
public void setImageDrawable(Drawable drawable) {
|
||||
super.setImageDrawable(drawable);
|
||||
getImpl().o();
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView
|
||||
public void setImageResource(int i) {
|
||||
this.n.a(i);
|
||||
}
|
||||
|
||||
public void setRippleColor(int i) {
|
||||
setRippleColor(ColorStateList.valueOf(i));
|
||||
}
|
||||
|
||||
public void setShowMotionSpec(MotionSpec motionSpec) {
|
||||
getImpl().b(motionSpec);
|
||||
}
|
||||
|
||||
public void setShowMotionSpecResource(int i) {
|
||||
setShowMotionSpec(MotionSpec.a(getContext(), i));
|
||||
}
|
||||
|
||||
public void setSize(int i) {
|
||||
this.h = 0;
|
||||
if (i != this.g) {
|
||||
this.g = i;
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.core.view.TintableBackgroundView
|
||||
public void setSupportBackgroundTintList(ColorStateList colorStateList) {
|
||||
setBackgroundTintList(colorStateList);
|
||||
}
|
||||
|
||||
@Override // androidx.core.view.TintableBackgroundView
|
||||
public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
|
||||
setBackgroundTintMode(mode);
|
||||
}
|
||||
|
||||
@Override // androidx.core.widget.TintableImageSourceView
|
||||
public void setSupportImageTintList(ColorStateList colorStateList) {
|
||||
if (this.d != colorStateList) {
|
||||
this.d = colorStateList;
|
||||
c();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.core.widget.TintableImageSourceView
|
||||
public void setSupportImageTintMode(PorterDuff.Mode mode) {
|
||||
if (this.e != mode) {
|
||||
this.e = mode;
|
||||
c();
|
||||
}
|
||||
}
|
||||
|
||||
public void setUseCompatPadding(boolean z) {
|
||||
if (this.k != z) {
|
||||
this.k = z;
|
||||
getImpl().k();
|
||||
}
|
||||
}
|
||||
|
||||
public void b(Animator.AnimatorListener animatorListener) {
|
||||
getImpl().b(animatorListener);
|
||||
}
|
||||
|
||||
public void setRippleColor(ColorStateList colorStateList) {
|
||||
if (this.f != colorStateList) {
|
||||
this.f = colorStateList;
|
||||
getImpl().b(this.f);
|
||||
}
|
||||
}
|
||||
|
||||
void a(OnVisibilityChangedListener onVisibilityChangedListener, boolean z) {
|
||||
getImpl().a(a(onVisibilityChangedListener), z);
|
||||
}
|
||||
|
||||
public void b(Rect rect) {
|
||||
rect.set(0, 0, getMeasuredWidth(), getMeasuredHeight());
|
||||
c(rect);
|
||||
}
|
||||
|
||||
private class ShadowDelegateImpl implements ShadowViewDelegate {
|
||||
ShadowDelegateImpl() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.shadow.ShadowViewDelegate
|
||||
public void a(int i, int i2, int i3, int i4) {
|
||||
FloatingActionButton.this.l.set(i, i2, i3, i4);
|
||||
FloatingActionButton floatingActionButton = FloatingActionButton.this;
|
||||
floatingActionButton.setPadding(i + floatingActionButton.i, i2 + FloatingActionButton.this.i, i3 + FloatingActionButton.this.i, i4 + FloatingActionButton.this.i);
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.shadow.ShadowViewDelegate
|
||||
public float b() {
|
||||
return FloatingActionButton.this.getSizeDimension() / 2.0f;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.shadow.ShadowViewDelegate
|
||||
public void a(Drawable drawable) {
|
||||
FloatingActionButton.super.setBackgroundDrawable(drawable);
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.shadow.ShadowViewDelegate
|
||||
public boolean a() {
|
||||
return FloatingActionButton.this.k;
|
||||
}
|
||||
}
|
||||
|
||||
public void a(Animator.AnimatorListener animatorListener) {
|
||||
getImpl().a(animatorListener);
|
||||
}
|
||||
|
||||
private FloatingActionButtonImpl.InternalVisibilityChangedListener a(final OnVisibilityChangedListener onVisibilityChangedListener) {
|
||||
if (onVisibilityChangedListener == null) {
|
||||
return null;
|
||||
}
|
||||
return new FloatingActionButtonImpl.InternalVisibilityChangedListener() { // from class: com.google.android.material.floatingactionbutton.FloatingActionButton.1
|
||||
@Override // com.google.android.material.floatingactionbutton.FloatingActionButtonImpl.InternalVisibilityChangedListener
|
||||
public void a() {
|
||||
onVisibilityChangedListener.b(FloatingActionButton.this);
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.floatingactionbutton.FloatingActionButtonImpl.InternalVisibilityChangedListener
|
||||
public void b() {
|
||||
onVisibilityChangedListener.a(FloatingActionButton.this);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private FloatingActionButtonImpl b() {
|
||||
if (Build.VERSION.SDK_INT >= 21) {
|
||||
return new FloatingActionButtonImplLollipop(this, new ShadowDelegateImpl());
|
||||
}
|
||||
return new FloatingActionButtonImpl(this, new ShadowDelegateImpl());
|
||||
}
|
||||
|
||||
public boolean a() {
|
||||
return getImpl().h();
|
||||
}
|
||||
|
||||
private int a(int i) {
|
||||
int i2 = this.h;
|
||||
if (i2 != 0) {
|
||||
return i2;
|
||||
}
|
||||
Resources resources = getResources();
|
||||
if (i != -1) {
|
||||
if (i != 1) {
|
||||
return resources.getDimensionPixelSize(R$dimen.design_fab_size_normal);
|
||||
}
|
||||
return resources.getDimensionPixelSize(R$dimen.design_fab_size_mini);
|
||||
}
|
||||
if (Math.max(resources.getConfiguration().screenWidthDp, resources.getConfiguration().screenHeightDp) < 470) {
|
||||
return a(1);
|
||||
}
|
||||
return a(0);
|
||||
}
|
||||
|
||||
public void c(Animator.AnimatorListener animatorListener) {
|
||||
getImpl().c(animatorListener);
|
||||
}
|
||||
|
||||
private void c(Rect rect) {
|
||||
int i = rect.left;
|
||||
Rect rect2 = this.l;
|
||||
rect.left = i + rect2.left;
|
||||
rect.top += rect2.top;
|
||||
rect.right -= rect2.right;
|
||||
rect.bottom -= rect2.bottom;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public boolean a(Rect rect) {
|
||||
if (!ViewCompat.x(this)) {
|
||||
return false;
|
||||
}
|
||||
rect.set(0, 0, getWidth(), getHeight());
|
||||
c(rect);
|
||||
return true;
|
||||
}
|
||||
|
||||
private static int a(int i, int i2) {
|
||||
int mode = View.MeasureSpec.getMode(i2);
|
||||
int size = View.MeasureSpec.getSize(i2);
|
||||
if (mode == Integer.MIN_VALUE) {
|
||||
return Math.min(i, size);
|
||||
}
|
||||
if (mode == 0) {
|
||||
return i;
|
||||
}
|
||||
if (mode == 1073741824) {
|
||||
return size;
|
||||
}
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,552 @@
|
||||
package com.google.android.material.floatingactionbutton;
|
||||
|
||||
import android.R;
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.AnimatorSet;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.animation.TimeInterpolator;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.Matrix;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Build;
|
||||
import android.util.Property;
|
||||
import android.view.View;
|
||||
import android.view.ViewTreeObserver;
|
||||
import androidx.core.graphics.drawable.DrawableCompat;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import com.google.android.material.R$animator;
|
||||
import com.google.android.material.animation.AnimationUtils;
|
||||
import com.google.android.material.animation.AnimatorSetCompat;
|
||||
import com.google.android.material.animation.ImageMatrixProperty;
|
||||
import com.google.android.material.animation.MatrixEvaluator;
|
||||
import com.google.android.material.animation.MotionSpec;
|
||||
import com.google.android.material.internal.CircularBorderDrawable;
|
||||
import com.google.android.material.internal.StateListAnimator;
|
||||
import com.google.android.material.internal.VisibilityAwareImageButton;
|
||||
import com.google.android.material.ripple.RippleUtils;
|
||||
import com.google.android.material.shadow.ShadowDrawableWrapper;
|
||||
import com.google.android.material.shadow.ShadowViewDelegate;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class FloatingActionButtonImpl {
|
||||
static final TimeInterpolator B = AnimationUtils.c;
|
||||
static final int[] C = {R.attr.state_pressed, R.attr.state_enabled};
|
||||
static final int[] D = {R.attr.state_hovered, R.attr.state_focused, R.attr.state_enabled};
|
||||
static final int[] E = {R.attr.state_focused, R.attr.state_enabled};
|
||||
static final int[] F = {R.attr.state_hovered, R.attr.state_enabled};
|
||||
static final int[] G = {R.attr.state_enabled};
|
||||
static final int[] H = new int[0];
|
||||
private ViewTreeObserver.OnPreDrawListener A;
|
||||
Animator b;
|
||||
MotionSpec c;
|
||||
MotionSpec d;
|
||||
private MotionSpec e;
|
||||
private MotionSpec f;
|
||||
ShadowDrawableWrapper h;
|
||||
private float i;
|
||||
Drawable j;
|
||||
Drawable k;
|
||||
CircularBorderDrawable l;
|
||||
Drawable m;
|
||||
float n;
|
||||
float o;
|
||||
float p;
|
||||
int q;
|
||||
private ArrayList<Animator.AnimatorListener> s;
|
||||
private ArrayList<Animator.AnimatorListener> t;
|
||||
final VisibilityAwareImageButton u;
|
||||
final ShadowViewDelegate v;
|
||||
int a = 0;
|
||||
float r = 1.0f;
|
||||
private final Rect w = new Rect();
|
||||
private final RectF x = new RectF();
|
||||
private final RectF y = new RectF();
|
||||
private final Matrix z = new Matrix();
|
||||
private final StateListAnimator g = new StateListAnimator();
|
||||
|
||||
private class DisabledElevationAnimation extends ShadowAnimatorImpl {
|
||||
DisabledElevationAnimation(FloatingActionButtonImpl floatingActionButtonImpl) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
private class ElevateToHoveredFocusedTranslationZAnimation extends ShadowAnimatorImpl {
|
||||
ElevateToHoveredFocusedTranslationZAnimation() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
private class ElevateToPressedTranslationZAnimation extends ShadowAnimatorImpl {
|
||||
ElevateToPressedTranslationZAnimation() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
interface InternalVisibilityChangedListener {
|
||||
void a();
|
||||
|
||||
void b();
|
||||
}
|
||||
|
||||
private class ResetElevationAnimation extends ShadowAnimatorImpl {
|
||||
ResetElevationAnimation() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
private abstract class ShadowAnimatorImpl extends AnimatorListenerAdapter implements ValueAnimator.AnimatorUpdateListener {
|
||||
private boolean a;
|
||||
private float b;
|
||||
private float c;
|
||||
|
||||
private ShadowAnimatorImpl() {
|
||||
}
|
||||
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator) {
|
||||
FloatingActionButtonImpl.this.h.b(this.c);
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
||||
public void onAnimationUpdate(ValueAnimator valueAnimator) {
|
||||
if (!this.a) {
|
||||
FloatingActionButtonImpl.this.h.b();
|
||||
throw null;
|
||||
}
|
||||
ShadowDrawableWrapper shadowDrawableWrapper = FloatingActionButtonImpl.this.h;
|
||||
float f = this.b;
|
||||
shadowDrawableWrapper.b(f + ((this.c - f) * valueAnimator.getAnimatedFraction()));
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
FloatingActionButtonImpl(VisibilityAwareImageButton visibilityAwareImageButton, ShadowViewDelegate shadowViewDelegate) {
|
||||
this.u = visibilityAwareImageButton;
|
||||
this.v = shadowViewDelegate;
|
||||
this.g.a(C, a((ShadowAnimatorImpl) new ElevateToPressedTranslationZAnimation()));
|
||||
this.g.a(D, a((ShadowAnimatorImpl) new ElevateToHoveredFocusedTranslationZAnimation()));
|
||||
this.g.a(E, a((ShadowAnimatorImpl) new ElevateToHoveredFocusedTranslationZAnimation()));
|
||||
this.g.a(F, a((ShadowAnimatorImpl) new ElevateToHoveredFocusedTranslationZAnimation()));
|
||||
this.g.a(G, a((ShadowAnimatorImpl) new ResetElevationAnimation()));
|
||||
this.g.a(H, a((ShadowAnimatorImpl) new DisabledElevationAnimation(this)));
|
||||
this.i = this.u.getRotation();
|
||||
}
|
||||
|
||||
private void q() {
|
||||
if (this.A == null) {
|
||||
this.A = new ViewTreeObserver.OnPreDrawListener() { // from class: com.google.android.material.floatingactionbutton.FloatingActionButtonImpl.3
|
||||
@Override // android.view.ViewTreeObserver.OnPreDrawListener
|
||||
public boolean onPreDraw() {
|
||||
FloatingActionButtonImpl.this.m();
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
private MotionSpec r() {
|
||||
if (this.f == null) {
|
||||
this.f = MotionSpec.a(this.u.getContext(), R$animator.design_fab_hide_motion_spec);
|
||||
}
|
||||
return this.f;
|
||||
}
|
||||
|
||||
private MotionSpec s() {
|
||||
if (this.e == null) {
|
||||
this.e = MotionSpec.a(this.u.getContext(), R$animator.design_fab_show_motion_spec);
|
||||
}
|
||||
return this.e;
|
||||
}
|
||||
|
||||
private boolean t() {
|
||||
return ViewCompat.x(this.u) && !this.u.isInEditMode();
|
||||
}
|
||||
|
||||
private void u() {
|
||||
if (Build.VERSION.SDK_INT == 19) {
|
||||
if (this.i % 90.0f != 0.0f) {
|
||||
if (this.u.getLayerType() != 1) {
|
||||
this.u.setLayerType(1, null);
|
||||
}
|
||||
} else if (this.u.getLayerType() != 0) {
|
||||
this.u.setLayerType(0, null);
|
||||
}
|
||||
}
|
||||
ShadowDrawableWrapper shadowDrawableWrapper = this.h;
|
||||
if (shadowDrawableWrapper != null) {
|
||||
shadowDrawableWrapper.a(-this.i);
|
||||
throw null;
|
||||
}
|
||||
CircularBorderDrawable circularBorderDrawable = this.l;
|
||||
if (circularBorderDrawable == null) {
|
||||
return;
|
||||
}
|
||||
circularBorderDrawable.a(-this.i);
|
||||
throw null;
|
||||
}
|
||||
|
||||
void a(ColorStateList colorStateList) {
|
||||
Drawable drawable = this.j;
|
||||
if (drawable != null) {
|
||||
DrawableCompat.a(drawable, colorStateList);
|
||||
}
|
||||
CircularBorderDrawable circularBorderDrawable = this.l;
|
||||
if (circularBorderDrawable == null) {
|
||||
return;
|
||||
}
|
||||
circularBorderDrawable.a(colorStateList);
|
||||
throw null;
|
||||
}
|
||||
|
||||
void b(ColorStateList colorStateList) {
|
||||
Drawable drawable = this.k;
|
||||
if (drawable != null) {
|
||||
DrawableCompat.a(drawable, RippleUtils.a(colorStateList));
|
||||
}
|
||||
}
|
||||
|
||||
void b(Rect rect) {
|
||||
}
|
||||
|
||||
final void c(float f) {
|
||||
this.r = f;
|
||||
Matrix matrix = this.z;
|
||||
a(f, matrix);
|
||||
this.u.setImageMatrix(matrix);
|
||||
}
|
||||
|
||||
float d() {
|
||||
return this.o;
|
||||
}
|
||||
|
||||
float e() {
|
||||
return this.p;
|
||||
}
|
||||
|
||||
final MotionSpec f() {
|
||||
return this.c;
|
||||
}
|
||||
|
||||
boolean g() {
|
||||
return this.u.getVisibility() == 0 ? this.a == 1 : this.a != 2;
|
||||
}
|
||||
|
||||
boolean h() {
|
||||
return this.u.getVisibility() != 0 ? this.a == 2 : this.a != 1;
|
||||
}
|
||||
|
||||
void i() {
|
||||
this.g.a();
|
||||
}
|
||||
|
||||
void j() {
|
||||
if (n()) {
|
||||
q();
|
||||
this.u.getViewTreeObserver().addOnPreDrawListener(this.A);
|
||||
}
|
||||
}
|
||||
|
||||
void k() {
|
||||
}
|
||||
|
||||
void l() {
|
||||
if (this.A != null) {
|
||||
this.u.getViewTreeObserver().removeOnPreDrawListener(this.A);
|
||||
this.A = null;
|
||||
}
|
||||
}
|
||||
|
||||
void m() {
|
||||
float rotation = this.u.getRotation();
|
||||
if (this.i != rotation) {
|
||||
this.i = rotation;
|
||||
u();
|
||||
}
|
||||
}
|
||||
|
||||
boolean n() {
|
||||
return true;
|
||||
}
|
||||
|
||||
final void o() {
|
||||
c(this.r);
|
||||
}
|
||||
|
||||
final void p() {
|
||||
Rect rect = this.w;
|
||||
a(rect);
|
||||
b(rect);
|
||||
this.v.a(rect.left, rect.top, rect.right, rect.bottom);
|
||||
}
|
||||
|
||||
final void d(float f) {
|
||||
if (this.p != f) {
|
||||
this.p = f;
|
||||
a(this.n, this.o, this.p);
|
||||
}
|
||||
}
|
||||
|
||||
float b() {
|
||||
return this.n;
|
||||
}
|
||||
|
||||
void a(PorterDuff.Mode mode) {
|
||||
Drawable drawable = this.j;
|
||||
if (drawable != null) {
|
||||
DrawableCompat.a(drawable, mode);
|
||||
}
|
||||
}
|
||||
|
||||
final void b(float f) {
|
||||
if (this.o != f) {
|
||||
this.o = f;
|
||||
a(this.n, this.o, this.p);
|
||||
}
|
||||
}
|
||||
|
||||
final MotionSpec c() {
|
||||
return this.d;
|
||||
}
|
||||
|
||||
void d(Animator.AnimatorListener animatorListener) {
|
||||
ArrayList<Animator.AnimatorListener> arrayList = this.s;
|
||||
if (arrayList == null) {
|
||||
return;
|
||||
}
|
||||
arrayList.remove(animatorListener);
|
||||
}
|
||||
|
||||
public void c(Animator.AnimatorListener animatorListener) {
|
||||
ArrayList<Animator.AnimatorListener> arrayList = this.t;
|
||||
if (arrayList == null) {
|
||||
return;
|
||||
}
|
||||
arrayList.remove(animatorListener);
|
||||
}
|
||||
|
||||
final void a(float f) {
|
||||
if (this.n != f) {
|
||||
this.n = f;
|
||||
a(this.n, this.o, this.p);
|
||||
}
|
||||
}
|
||||
|
||||
final void b(MotionSpec motionSpec) {
|
||||
this.c = motionSpec;
|
||||
}
|
||||
|
||||
void b(Animator.AnimatorListener animatorListener) {
|
||||
if (this.s == null) {
|
||||
this.s = new ArrayList<>();
|
||||
}
|
||||
this.s.add(animatorListener);
|
||||
}
|
||||
|
||||
private void a(float f, Matrix matrix) {
|
||||
matrix.reset();
|
||||
if (this.u.getDrawable() == null || this.q == 0) {
|
||||
return;
|
||||
}
|
||||
RectF rectF = this.x;
|
||||
RectF rectF2 = this.y;
|
||||
rectF.set(0.0f, 0.0f, r0.getIntrinsicWidth(), r0.getIntrinsicHeight());
|
||||
int i = this.q;
|
||||
rectF2.set(0.0f, 0.0f, i, i);
|
||||
matrix.setRectToRect(rectF, rectF2, Matrix.ScaleToFit.CENTER);
|
||||
int i2 = this.q;
|
||||
matrix.postScale(f, f, i2 / 2.0f, i2 / 2.0f);
|
||||
}
|
||||
|
||||
void b(final InternalVisibilityChangedListener internalVisibilityChangedListener, final boolean z) {
|
||||
if (h()) {
|
||||
return;
|
||||
}
|
||||
Animator animator = this.b;
|
||||
if (animator != null) {
|
||||
animator.cancel();
|
||||
}
|
||||
if (t()) {
|
||||
if (this.u.getVisibility() != 0) {
|
||||
this.u.setAlpha(0.0f);
|
||||
this.u.setScaleY(0.0f);
|
||||
this.u.setScaleX(0.0f);
|
||||
c(0.0f);
|
||||
}
|
||||
MotionSpec motionSpec = this.c;
|
||||
if (motionSpec == null) {
|
||||
motionSpec = s();
|
||||
}
|
||||
AnimatorSet a = a(motionSpec, 1.0f, 1.0f, 1.0f);
|
||||
a.addListener(new AnimatorListenerAdapter() { // from class: com.google.android.material.floatingactionbutton.FloatingActionButtonImpl.2
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator2) {
|
||||
FloatingActionButtonImpl floatingActionButtonImpl = FloatingActionButtonImpl.this;
|
||||
floatingActionButtonImpl.a = 0;
|
||||
floatingActionButtonImpl.b = null;
|
||||
InternalVisibilityChangedListener internalVisibilityChangedListener2 = internalVisibilityChangedListener;
|
||||
if (internalVisibilityChangedListener2 != null) {
|
||||
internalVisibilityChangedListener2.a();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationStart(Animator animator2) {
|
||||
FloatingActionButtonImpl.this.u.a(0, z);
|
||||
FloatingActionButtonImpl floatingActionButtonImpl = FloatingActionButtonImpl.this;
|
||||
floatingActionButtonImpl.a = 2;
|
||||
floatingActionButtonImpl.b = animator2;
|
||||
}
|
||||
});
|
||||
ArrayList<Animator.AnimatorListener> arrayList = this.s;
|
||||
if (arrayList != null) {
|
||||
Iterator<Animator.AnimatorListener> it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
a.addListener(it.next());
|
||||
}
|
||||
}
|
||||
a.start();
|
||||
return;
|
||||
}
|
||||
this.u.a(0, z);
|
||||
this.u.setAlpha(1.0f);
|
||||
this.u.setScaleY(1.0f);
|
||||
this.u.setScaleX(1.0f);
|
||||
c(1.0f);
|
||||
if (internalVisibilityChangedListener != null) {
|
||||
internalVisibilityChangedListener.a();
|
||||
}
|
||||
}
|
||||
|
||||
final void a(MotionSpec motionSpec) {
|
||||
this.d = motionSpec;
|
||||
}
|
||||
|
||||
void a(float f, float f2, float f3) {
|
||||
ShadowDrawableWrapper shadowDrawableWrapper = this.h;
|
||||
if (shadowDrawableWrapper == null) {
|
||||
return;
|
||||
}
|
||||
shadowDrawableWrapper.a(f, this.p + f);
|
||||
throw null;
|
||||
}
|
||||
|
||||
void a(int[] iArr) {
|
||||
this.g.a(iArr);
|
||||
}
|
||||
|
||||
public void a(Animator.AnimatorListener animatorListener) {
|
||||
if (this.t == null) {
|
||||
this.t = new ArrayList<>();
|
||||
}
|
||||
this.t.add(animatorListener);
|
||||
}
|
||||
|
||||
void a(final InternalVisibilityChangedListener internalVisibilityChangedListener, final boolean z) {
|
||||
if (g()) {
|
||||
return;
|
||||
}
|
||||
Animator animator = this.b;
|
||||
if (animator != null) {
|
||||
animator.cancel();
|
||||
}
|
||||
if (t()) {
|
||||
MotionSpec motionSpec = this.d;
|
||||
if (motionSpec == null) {
|
||||
motionSpec = r();
|
||||
}
|
||||
AnimatorSet a = a(motionSpec, 0.0f, 0.0f, 0.0f);
|
||||
a.addListener(new AnimatorListenerAdapter() { // from class: com.google.android.material.floatingactionbutton.FloatingActionButtonImpl.1
|
||||
private boolean a;
|
||||
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationCancel(Animator animator2) {
|
||||
this.a = true;
|
||||
}
|
||||
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator2) {
|
||||
FloatingActionButtonImpl floatingActionButtonImpl = FloatingActionButtonImpl.this;
|
||||
floatingActionButtonImpl.a = 0;
|
||||
floatingActionButtonImpl.b = null;
|
||||
if (this.a) {
|
||||
return;
|
||||
}
|
||||
floatingActionButtonImpl.u.a(z ? 8 : 4, z);
|
||||
InternalVisibilityChangedListener internalVisibilityChangedListener2 = internalVisibilityChangedListener;
|
||||
if (internalVisibilityChangedListener2 != null) {
|
||||
internalVisibilityChangedListener2.b();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationStart(Animator animator2) {
|
||||
FloatingActionButtonImpl.this.u.a(0, z);
|
||||
FloatingActionButtonImpl floatingActionButtonImpl = FloatingActionButtonImpl.this;
|
||||
floatingActionButtonImpl.a = 1;
|
||||
floatingActionButtonImpl.b = animator2;
|
||||
this.a = false;
|
||||
}
|
||||
});
|
||||
ArrayList<Animator.AnimatorListener> arrayList = this.t;
|
||||
if (arrayList != null) {
|
||||
Iterator<Animator.AnimatorListener> it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
a.addListener(it.next());
|
||||
}
|
||||
}
|
||||
a.start();
|
||||
return;
|
||||
}
|
||||
this.u.a(z ? 8 : 4, z);
|
||||
if (internalVisibilityChangedListener != null) {
|
||||
internalVisibilityChangedListener.b();
|
||||
}
|
||||
}
|
||||
|
||||
private AnimatorSet a(MotionSpec motionSpec, float f, float f2, float f3) {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this.u, (Property<VisibilityAwareImageButton, Float>) View.ALPHA, f);
|
||||
motionSpec.a("opacity").a((Animator) ofFloat);
|
||||
arrayList.add(ofFloat);
|
||||
ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(this.u, (Property<VisibilityAwareImageButton, Float>) View.SCALE_X, f2);
|
||||
motionSpec.a("scale").a((Animator) ofFloat2);
|
||||
arrayList.add(ofFloat2);
|
||||
ObjectAnimator ofFloat3 = ObjectAnimator.ofFloat(this.u, (Property<VisibilityAwareImageButton, Float>) View.SCALE_Y, f2);
|
||||
motionSpec.a("scale").a((Animator) ofFloat3);
|
||||
arrayList.add(ofFloat3);
|
||||
a(f3, this.z);
|
||||
ObjectAnimator ofObject = ObjectAnimator.ofObject(this.u, new ImageMatrixProperty(), new MatrixEvaluator(), new Matrix(this.z));
|
||||
motionSpec.a("iconScale").a((Animator) ofObject);
|
||||
arrayList.add(ofObject);
|
||||
AnimatorSet animatorSet = new AnimatorSet();
|
||||
AnimatorSetCompat.a(animatorSet, arrayList);
|
||||
return animatorSet;
|
||||
}
|
||||
|
||||
final Drawable a() {
|
||||
return this.m;
|
||||
}
|
||||
|
||||
void a(Rect rect) {
|
||||
this.h.getPadding(rect);
|
||||
throw null;
|
||||
}
|
||||
|
||||
private ValueAnimator a(ShadowAnimatorImpl shadowAnimatorImpl) {
|
||||
ValueAnimator valueAnimator = new ValueAnimator();
|
||||
valueAnimator.setInterpolator(B);
|
||||
valueAnimator.setDuration(100L);
|
||||
valueAnimator.addListener(shadowAnimatorImpl);
|
||||
valueAnimator.addUpdateListener(shadowAnimatorImpl);
|
||||
valueAnimator.setFloatValues(0.0f, 1.0f);
|
||||
return valueAnimator;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
package com.google.android.material.floatingactionbutton;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorSet;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.animation.StateListAnimator;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.InsetDrawable;
|
||||
import android.graphics.drawable.RippleDrawable;
|
||||
import android.os.Build;
|
||||
import android.util.Property;
|
||||
import android.view.View;
|
||||
import com.google.android.material.internal.VisibilityAwareImageButton;
|
||||
import com.google.android.material.ripple.RippleUtils;
|
||||
import com.google.android.material.shadow.ShadowDrawableWrapper;
|
||||
import com.google.android.material.shadow.ShadowViewDelegate;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class FloatingActionButtonImplLollipop extends FloatingActionButtonImpl {
|
||||
private InsetDrawable I;
|
||||
|
||||
FloatingActionButtonImplLollipop(VisibilityAwareImageButton visibilityAwareImageButton, ShadowViewDelegate shadowViewDelegate) {
|
||||
super(visibilityAwareImageButton, shadowViewDelegate);
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.floatingactionbutton.FloatingActionButtonImpl
|
||||
void a(float f, float f2, float f3) {
|
||||
if (Build.VERSION.SDK_INT == 21) {
|
||||
this.u.refreshDrawableState();
|
||||
} else {
|
||||
StateListAnimator stateListAnimator = new StateListAnimator();
|
||||
stateListAnimator.addState(FloatingActionButtonImpl.C, a(f, f3));
|
||||
stateListAnimator.addState(FloatingActionButtonImpl.D, a(f, f2));
|
||||
stateListAnimator.addState(FloatingActionButtonImpl.E, a(f, f2));
|
||||
stateListAnimator.addState(FloatingActionButtonImpl.F, a(f, f2));
|
||||
AnimatorSet animatorSet = new AnimatorSet();
|
||||
ArrayList arrayList = new ArrayList();
|
||||
arrayList.add(ObjectAnimator.ofFloat(this.u, "elevation", f).setDuration(0L));
|
||||
int i = Build.VERSION.SDK_INT;
|
||||
if (i >= 22 && i <= 24) {
|
||||
VisibilityAwareImageButton visibilityAwareImageButton = this.u;
|
||||
arrayList.add(ObjectAnimator.ofFloat(visibilityAwareImageButton, (Property<VisibilityAwareImageButton, Float>) View.TRANSLATION_Z, visibilityAwareImageButton.getTranslationZ()).setDuration(100L));
|
||||
}
|
||||
arrayList.add(ObjectAnimator.ofFloat(this.u, (Property<VisibilityAwareImageButton, Float>) View.TRANSLATION_Z, 0.0f).setDuration(100L));
|
||||
animatorSet.playSequentially((Animator[]) arrayList.toArray(new Animator[0]));
|
||||
animatorSet.setInterpolator(FloatingActionButtonImpl.B);
|
||||
stateListAnimator.addState(FloatingActionButtonImpl.G, animatorSet);
|
||||
stateListAnimator.addState(FloatingActionButtonImpl.H, a(0.0f, 0.0f));
|
||||
this.u.setStateListAnimator(stateListAnimator);
|
||||
}
|
||||
if (this.v.a()) {
|
||||
p();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.floatingactionbutton.FloatingActionButtonImpl
|
||||
void b(ColorStateList colorStateList) {
|
||||
Drawable drawable = this.k;
|
||||
if (drawable instanceof RippleDrawable) {
|
||||
((RippleDrawable) drawable).setColor(RippleUtils.a(colorStateList));
|
||||
} else {
|
||||
super.b(colorStateList);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.floatingactionbutton.FloatingActionButtonImpl
|
||||
void i() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.floatingactionbutton.FloatingActionButtonImpl
|
||||
void k() {
|
||||
p();
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.floatingactionbutton.FloatingActionButtonImpl
|
||||
boolean n() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.floatingactionbutton.FloatingActionButtonImpl
|
||||
public float b() {
|
||||
return this.u.getElevation();
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.floatingactionbutton.FloatingActionButtonImpl
|
||||
void b(Rect rect) {
|
||||
if (this.v.a()) {
|
||||
this.I = new InsetDrawable(this.k, rect.left, rect.top, rect.right, rect.bottom);
|
||||
this.v.a(this.I);
|
||||
} else {
|
||||
this.v.a(this.k);
|
||||
}
|
||||
}
|
||||
|
||||
private Animator a(float f, float f2) {
|
||||
AnimatorSet animatorSet = new AnimatorSet();
|
||||
animatorSet.play(ObjectAnimator.ofFloat(this.u, "elevation", f).setDuration(0L)).with(ObjectAnimator.ofFloat(this.u, (Property<VisibilityAwareImageButton, Float>) View.TRANSLATION_Z, f2).setDuration(100L));
|
||||
animatorSet.setInterpolator(FloatingActionButtonImpl.B);
|
||||
return animatorSet;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.floatingactionbutton.FloatingActionButtonImpl
|
||||
void a(int[] iArr) {
|
||||
if (Build.VERSION.SDK_INT == 21) {
|
||||
if (this.u.isEnabled()) {
|
||||
this.u.setElevation(this.n);
|
||||
if (this.u.isPressed()) {
|
||||
this.u.setTranslationZ(this.p);
|
||||
return;
|
||||
} else if (!this.u.isFocused() && !this.u.isHovered()) {
|
||||
this.u.setTranslationZ(0.0f);
|
||||
return;
|
||||
} else {
|
||||
this.u.setTranslationZ(this.o);
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.u.setElevation(0.0f);
|
||||
this.u.setTranslationZ(0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.floatingactionbutton.FloatingActionButtonImpl
|
||||
void a(Rect rect) {
|
||||
if (this.v.a()) {
|
||||
float b = this.v.b();
|
||||
float b2 = b() + this.p;
|
||||
int ceil = (int) Math.ceil(ShadowDrawableWrapper.a(b2, b, false));
|
||||
int ceil2 = (int) Math.ceil(ShadowDrawableWrapper.b(b2, b, false));
|
||||
rect.set(ceil, ceil2, ceil, ceil2);
|
||||
return;
|
||||
}
|
||||
rect.set(0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class BaselineLayout extends ViewGroup {
|
||||
private int a;
|
||||
|
||||
public BaselineLayout(Context context) {
|
||||
super(context, null, 0);
|
||||
this.a = -1;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public int getBaseline() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
protected void onLayout(boolean z, int i, int i2, int i3, int i4) {
|
||||
int childCount = getChildCount();
|
||||
int paddingLeft = getPaddingLeft();
|
||||
int paddingRight = ((i3 - i) - getPaddingRight()) - paddingLeft;
|
||||
int paddingTop = getPaddingTop();
|
||||
for (int i5 = 0; i5 < childCount; i5++) {
|
||||
View childAt = getChildAt(i5);
|
||||
if (childAt.getVisibility() != 8) {
|
||||
int measuredWidth = childAt.getMeasuredWidth();
|
||||
int measuredHeight = childAt.getMeasuredHeight();
|
||||
int i6 = ((paddingRight - measuredWidth) / 2) + paddingLeft;
|
||||
int baseline = (this.a == -1 || childAt.getBaseline() == -1) ? paddingTop : (this.a + paddingTop) - childAt.getBaseline();
|
||||
childAt.layout(i6, baseline, measuredWidth + i6, measuredHeight + baseline);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected void onMeasure(int i, int i2) {
|
||||
int childCount = getChildCount();
|
||||
int i3 = -1;
|
||||
int i4 = -1;
|
||||
int i5 = 0;
|
||||
int i6 = 0;
|
||||
int i7 = 0;
|
||||
for (int i8 = 0; i8 < childCount; i8++) {
|
||||
View childAt = getChildAt(i8);
|
||||
if (childAt.getVisibility() != 8) {
|
||||
measureChild(childAt, i, i2);
|
||||
int baseline = childAt.getBaseline();
|
||||
if (baseline != -1) {
|
||||
i3 = Math.max(i3, baseline);
|
||||
i4 = Math.max(i4, childAt.getMeasuredHeight() - baseline);
|
||||
}
|
||||
i6 = Math.max(i6, childAt.getMeasuredWidth());
|
||||
i5 = Math.max(i5, childAt.getMeasuredHeight());
|
||||
i7 = View.combineMeasuredStates(i7, childAt.getMeasuredState());
|
||||
}
|
||||
}
|
||||
if (i3 != -1) {
|
||||
i5 = Math.max(i5, Math.max(i4, getPaddingBottom()) + i3);
|
||||
this.a = i3;
|
||||
}
|
||||
setMeasuredDimension(View.resolveSizeAndState(Math.max(i6, getSuggestedMinimumWidth()), i, i7), View.resolveSizeAndState(Math.max(i5, getSuggestedMinimumHeight()), i2, i7 << 16));
|
||||
}
|
||||
|
||||
public BaselineLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet, 0);
|
||||
this.a = -1;
|
||||
}
|
||||
|
||||
public BaselineLayout(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
this.a = -1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.accessibility.AccessibilityEvent;
|
||||
import android.widget.Checkable;
|
||||
import android.widget.ImageButton;
|
||||
import androidx.appcompat.R$attr;
|
||||
import androidx.appcompat.widget.AppCompatImageButton;
|
||||
import androidx.core.view.AccessibilityDelegateCompat;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.accessibility.AccessibilityNodeInfoCompat;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class CheckableImageButton extends AppCompatImageButton implements Checkable {
|
||||
private static final int[] d = {R.attr.state_checked};
|
||||
private boolean c;
|
||||
|
||||
public CheckableImageButton(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
@Override // android.widget.Checkable
|
||||
public boolean isChecked() {
|
||||
return this.c;
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView, android.view.View
|
||||
public int[] onCreateDrawableState(int i) {
|
||||
return this.c ? ImageButton.mergeDrawableStates(super.onCreateDrawableState(i + d.length), d) : super.onCreateDrawableState(i);
|
||||
}
|
||||
|
||||
@Override // android.widget.Checkable
|
||||
public void setChecked(boolean z) {
|
||||
if (this.c != z) {
|
||||
this.c = z;
|
||||
refreshDrawableState();
|
||||
sendAccessibilityEvent(2048);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.Checkable
|
||||
public void toggle() {
|
||||
setChecked(!this.c);
|
||||
}
|
||||
|
||||
public CheckableImageButton(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, R$attr.imageButtonStyle);
|
||||
}
|
||||
|
||||
public CheckableImageButton(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
ViewCompat.a(this, new AccessibilityDelegateCompat() { // from class: com.google.android.material.internal.CheckableImageButton.1
|
||||
@Override // androidx.core.view.AccessibilityDelegateCompat
|
||||
public void a(View view, AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) {
|
||||
super.a(view, accessibilityNodeInfoCompat);
|
||||
accessibilityNodeInfoCompat.a(true);
|
||||
accessibilityNodeInfoCompat.b(CheckableImageButton.this.isChecked());
|
||||
}
|
||||
|
||||
@Override // androidx.core.view.AccessibilityDelegateCompat
|
||||
public void b(View view, AccessibilityEvent accessibilityEvent) {
|
||||
super.b(view, accessibilityEvent);
|
||||
accessibilityEvent.setChecked(CheckableImageButton.this.isChecked());
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.drawable.Drawable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class CircularBorderDrawable extends Drawable {
|
||||
public final void a(float f) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void a(ColorStateList colorStateList) {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,562 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.R;
|
||||
import android.animation.TimeInterpolator;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.Typeface;
|
||||
import android.os.Build;
|
||||
import android.text.TextPaint;
|
||||
import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
import androidx.appcompat.R$styleable;
|
||||
import androidx.appcompat.widget.TintTypedArray;
|
||||
import androidx.core.math.MathUtils;
|
||||
import androidx.core.text.TextDirectionHeuristicsCompat;
|
||||
import androidx.core.view.GravityCompat;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import com.google.android.material.animation.AnimationUtils;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class CollapsingTextHelper {
|
||||
private static final boolean T;
|
||||
private static final Paint U;
|
||||
private Paint A;
|
||||
private float B;
|
||||
private float C;
|
||||
private float D;
|
||||
private float E;
|
||||
private int[] F;
|
||||
private boolean G;
|
||||
private TimeInterpolator J;
|
||||
private TimeInterpolator K;
|
||||
private float L;
|
||||
private float M;
|
||||
private float N;
|
||||
private int O;
|
||||
private float P;
|
||||
private float Q;
|
||||
private float R;
|
||||
private int S;
|
||||
private final View a;
|
||||
private boolean b;
|
||||
private float c;
|
||||
private ColorStateList k;
|
||||
private ColorStateList l;
|
||||
private float m;
|
||||
private float n;
|
||||
private float o;
|
||||
private float p;
|
||||
private float q;
|
||||
private float r;
|
||||
private Typeface s;
|
||||
private Typeface t;
|
||||
private Typeface u;
|
||||
private CharSequence v;
|
||||
private CharSequence w;
|
||||
private boolean x;
|
||||
private boolean y;
|
||||
private Bitmap z;
|
||||
private int g = 16;
|
||||
private int h = 16;
|
||||
private float i = 15.0f;
|
||||
private float j = 15.0f;
|
||||
private final TextPaint H = new TextPaint(129);
|
||||
private final TextPaint I = new TextPaint(this.H);
|
||||
private final Rect e = new Rect();
|
||||
private final Rect d = new Rect();
|
||||
private final RectF f = new RectF();
|
||||
|
||||
static {
|
||||
T = Build.VERSION.SDK_INT < 18;
|
||||
U = null;
|
||||
Paint paint = U;
|
||||
if (paint != null) {
|
||||
paint.setAntiAlias(true);
|
||||
U.setColor(-65281);
|
||||
}
|
||||
}
|
||||
|
||||
public CollapsingTextHelper(View view) {
|
||||
this.a = view;
|
||||
}
|
||||
|
||||
private Typeface e(int i) {
|
||||
TypedArray obtainStyledAttributes = this.a.getContext().obtainStyledAttributes(i, new int[]{R.attr.fontFamily});
|
||||
try {
|
||||
String string = obtainStyledAttributes.getString(0);
|
||||
if (string != null) {
|
||||
return Typeface.create(string, 0);
|
||||
}
|
||||
obtainStyledAttributes.recycle();
|
||||
return null;
|
||||
} finally {
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
private void n() {
|
||||
float f = this.E;
|
||||
d(this.j);
|
||||
CharSequence charSequence = this.w;
|
||||
float measureText = charSequence != null ? this.H.measureText(charSequence, 0, charSequence.length()) : 0.0f;
|
||||
int a = GravityCompat.a(this.h, this.x ? 1 : 0);
|
||||
int i = a & 112;
|
||||
if (i == 48) {
|
||||
this.n = this.e.top - this.H.ascent();
|
||||
} else if (i != 80) {
|
||||
this.n = this.e.centerY() + (((this.H.descent() - this.H.ascent()) / 2.0f) - this.H.descent());
|
||||
} else {
|
||||
this.n = this.e.bottom;
|
||||
}
|
||||
int i2 = a & 8388615;
|
||||
if (i2 == 1) {
|
||||
this.p = this.e.centerX() - (measureText / 2.0f);
|
||||
} else if (i2 != 5) {
|
||||
this.p = this.e.left;
|
||||
} else {
|
||||
this.p = this.e.right - measureText;
|
||||
}
|
||||
d(this.i);
|
||||
CharSequence charSequence2 = this.w;
|
||||
float measureText2 = charSequence2 != null ? this.H.measureText(charSequence2, 0, charSequence2.length()) : 0.0f;
|
||||
int a2 = GravityCompat.a(this.g, this.x ? 1 : 0);
|
||||
int i3 = a2 & 112;
|
||||
if (i3 == 48) {
|
||||
this.m = this.d.top - this.H.ascent();
|
||||
} else if (i3 != 80) {
|
||||
this.m = this.d.centerY() + (((this.H.descent() - this.H.ascent()) / 2.0f) - this.H.descent());
|
||||
} else {
|
||||
this.m = this.d.bottom;
|
||||
}
|
||||
int i4 = a2 & 8388615;
|
||||
if (i4 == 1) {
|
||||
this.o = this.d.centerX() - (measureText2 / 2.0f);
|
||||
} else if (i4 != 5) {
|
||||
this.o = this.d.left;
|
||||
} else {
|
||||
this.o = this.d.right - measureText2;
|
||||
}
|
||||
p();
|
||||
f(f);
|
||||
}
|
||||
|
||||
private void o() {
|
||||
c(this.c);
|
||||
}
|
||||
|
||||
private void p() {
|
||||
Bitmap bitmap = this.z;
|
||||
if (bitmap != null) {
|
||||
bitmap.recycle();
|
||||
this.z = null;
|
||||
}
|
||||
}
|
||||
|
||||
private void q() {
|
||||
if (this.z != null || this.d.isEmpty() || TextUtils.isEmpty(this.w)) {
|
||||
return;
|
||||
}
|
||||
c(0.0f);
|
||||
this.B = this.H.ascent();
|
||||
this.C = this.H.descent();
|
||||
TextPaint textPaint = this.H;
|
||||
CharSequence charSequence = this.w;
|
||||
int round = Math.round(textPaint.measureText(charSequence, 0, charSequence.length()));
|
||||
int round2 = Math.round(this.C - this.B);
|
||||
if (round <= 0 || round2 <= 0) {
|
||||
return;
|
||||
}
|
||||
this.z = Bitmap.createBitmap(round, round2, Bitmap.Config.ARGB_8888);
|
||||
Canvas canvas = new Canvas(this.z);
|
||||
CharSequence charSequence2 = this.w;
|
||||
canvas.drawText(charSequence2, 0, charSequence2.length(), 0.0f, round2 - this.H.descent(), this.H);
|
||||
if (this.A == null) {
|
||||
this.A = new Paint(3);
|
||||
}
|
||||
}
|
||||
|
||||
private int r() {
|
||||
int[] iArr = this.F;
|
||||
return iArr != null ? this.k.getColorForState(iArr, 0) : this.k.getDefaultColor();
|
||||
}
|
||||
|
||||
public void a(TimeInterpolator timeInterpolator) {
|
||||
this.J = timeInterpolator;
|
||||
m();
|
||||
}
|
||||
|
||||
public void b(TimeInterpolator timeInterpolator) {
|
||||
this.K = timeInterpolator;
|
||||
m();
|
||||
}
|
||||
|
||||
public int c() {
|
||||
return this.h;
|
||||
}
|
||||
|
||||
public float d() {
|
||||
a(this.I);
|
||||
return -this.I.ascent();
|
||||
}
|
||||
|
||||
public int f() {
|
||||
int[] iArr = this.F;
|
||||
return iArr != null ? this.l.getColorForState(iArr, 0) : this.l.getDefaultColor();
|
||||
}
|
||||
|
||||
public int g() {
|
||||
return this.g;
|
||||
}
|
||||
|
||||
public Typeface h() {
|
||||
Typeface typeface = this.t;
|
||||
return typeface != null ? typeface : Typeface.DEFAULT;
|
||||
}
|
||||
|
||||
public float i() {
|
||||
return this.c;
|
||||
}
|
||||
|
||||
public CharSequence j() {
|
||||
return this.v;
|
||||
}
|
||||
|
||||
public final boolean k() {
|
||||
ColorStateList colorStateList;
|
||||
ColorStateList colorStateList2 = this.l;
|
||||
return (colorStateList2 != null && colorStateList2.isStateful()) || ((colorStateList = this.k) != null && colorStateList.isStateful());
|
||||
}
|
||||
|
||||
void l() {
|
||||
this.b = this.e.width() > 0 && this.e.height() > 0 && this.d.width() > 0 && this.d.height() > 0;
|
||||
}
|
||||
|
||||
public void m() {
|
||||
if (this.a.getHeight() <= 0 || this.a.getWidth() <= 0) {
|
||||
return;
|
||||
}
|
||||
n();
|
||||
o();
|
||||
}
|
||||
|
||||
public void c(int i) {
|
||||
TintTypedArray a = TintTypedArray.a(this.a.getContext(), i, R$styleable.TextAppearance);
|
||||
if (a.g(R$styleable.TextAppearance_android_textColor)) {
|
||||
this.k = a.a(R$styleable.TextAppearance_android_textColor);
|
||||
}
|
||||
if (a.g(R$styleable.TextAppearance_android_textSize)) {
|
||||
this.i = a.c(R$styleable.TextAppearance_android_textSize, (int) this.i);
|
||||
}
|
||||
this.S = a.d(R$styleable.TextAppearance_android_shadowColor, 0);
|
||||
this.Q = a.b(R$styleable.TextAppearance_android_shadowDx, 0.0f);
|
||||
this.R = a.b(R$styleable.TextAppearance_android_shadowDy, 0.0f);
|
||||
this.P = a.b(R$styleable.TextAppearance_android_shadowRadius, 0.0f);
|
||||
a.a();
|
||||
if (Build.VERSION.SDK_INT >= 16) {
|
||||
this.t = e(i);
|
||||
}
|
||||
m();
|
||||
}
|
||||
|
||||
public void a(float f) {
|
||||
if (this.i != f) {
|
||||
this.i = f;
|
||||
m();
|
||||
}
|
||||
}
|
||||
|
||||
public void b(ColorStateList colorStateList) {
|
||||
if (this.k != colorStateList) {
|
||||
this.k = colorStateList;
|
||||
m();
|
||||
}
|
||||
}
|
||||
|
||||
public void d(int i) {
|
||||
if (this.g != i) {
|
||||
this.g = i;
|
||||
m();
|
||||
}
|
||||
}
|
||||
|
||||
private void f(float f) {
|
||||
d(f);
|
||||
this.y = T && this.D != 1.0f;
|
||||
if (this.y) {
|
||||
q();
|
||||
}
|
||||
ViewCompat.A(this.a);
|
||||
}
|
||||
|
||||
private void d(float f) {
|
||||
float f2;
|
||||
boolean z;
|
||||
boolean z2;
|
||||
if (this.v == null) {
|
||||
return;
|
||||
}
|
||||
float width = this.e.width();
|
||||
float width2 = this.d.width();
|
||||
if (a(f, this.j)) {
|
||||
float f3 = this.j;
|
||||
this.D = 1.0f;
|
||||
Typeface typeface = this.u;
|
||||
Typeface typeface2 = this.s;
|
||||
if (typeface != typeface2) {
|
||||
this.u = typeface2;
|
||||
z2 = true;
|
||||
} else {
|
||||
z2 = false;
|
||||
}
|
||||
f2 = f3;
|
||||
z = z2;
|
||||
} else {
|
||||
f2 = this.i;
|
||||
Typeface typeface3 = this.u;
|
||||
Typeface typeface4 = this.t;
|
||||
if (typeface3 != typeface4) {
|
||||
this.u = typeface4;
|
||||
z = true;
|
||||
} else {
|
||||
z = false;
|
||||
}
|
||||
if (a(f, this.i)) {
|
||||
this.D = 1.0f;
|
||||
} else {
|
||||
this.D = f / this.i;
|
||||
}
|
||||
float f4 = this.j / this.i;
|
||||
width = width2 * f4 > width ? Math.min(width / f4, width2) : width2;
|
||||
}
|
||||
if (width > 0.0f) {
|
||||
z = this.E != f2 || this.G || z;
|
||||
this.E = f2;
|
||||
this.G = false;
|
||||
}
|
||||
if (this.w == null || z) {
|
||||
this.H.setTextSize(this.E);
|
||||
this.H.setTypeface(this.u);
|
||||
this.H.setLinearText(this.D != 1.0f);
|
||||
CharSequence ellipsize = TextUtils.ellipsize(this.v, this.H, width, TextUtils.TruncateAt.END);
|
||||
if (TextUtils.equals(ellipsize, this.w)) {
|
||||
return;
|
||||
}
|
||||
this.w = ellipsize;
|
||||
this.x = b(this.w);
|
||||
}
|
||||
}
|
||||
|
||||
public void a(ColorStateList colorStateList) {
|
||||
if (this.l != colorStateList) {
|
||||
this.l = colorStateList;
|
||||
m();
|
||||
}
|
||||
}
|
||||
|
||||
public void b(int i, int i2, int i3, int i4) {
|
||||
if (a(this.d, i, i2, i3, i4)) {
|
||||
return;
|
||||
}
|
||||
this.d.set(i, i2, i3, i4);
|
||||
this.G = true;
|
||||
l();
|
||||
}
|
||||
|
||||
public Typeface e() {
|
||||
Typeface typeface = this.s;
|
||||
return typeface != null ? typeface : Typeface.DEFAULT;
|
||||
}
|
||||
|
||||
private void e(float f) {
|
||||
this.f.left = a(this.d.left, this.e.left, f, this.J);
|
||||
this.f.top = a(this.m, this.n, f, this.J);
|
||||
this.f.right = a(this.d.right, this.e.right, f, this.J);
|
||||
this.f.bottom = a(this.d.bottom, this.e.bottom, f, this.J);
|
||||
}
|
||||
|
||||
public void a(int i, int i2, int i3, int i4) {
|
||||
if (a(this.e, i, i2, i3, i4)) {
|
||||
return;
|
||||
}
|
||||
this.e.set(i, i2, i3, i4);
|
||||
this.G = true;
|
||||
l();
|
||||
}
|
||||
|
||||
public void b(int i) {
|
||||
if (this.h != i) {
|
||||
this.h = i;
|
||||
m();
|
||||
}
|
||||
}
|
||||
|
||||
public float a() {
|
||||
if (this.v == null) {
|
||||
return 0.0f;
|
||||
}
|
||||
a(this.I);
|
||||
TextPaint textPaint = this.I;
|
||||
CharSequence charSequence = this.v;
|
||||
return textPaint.measureText(charSequence, 0, charSequence.length());
|
||||
}
|
||||
|
||||
public void b(Typeface typeface) {
|
||||
if (this.t != typeface) {
|
||||
this.t = typeface;
|
||||
m();
|
||||
}
|
||||
}
|
||||
|
||||
public void a(RectF rectF) {
|
||||
boolean b = b(this.v);
|
||||
Rect rect = this.e;
|
||||
rectF.left = !b ? rect.left : rect.right - a();
|
||||
Rect rect2 = this.e;
|
||||
rectF.top = rect2.top;
|
||||
rectF.right = !b ? rectF.left + a() : rect2.right;
|
||||
rectF.bottom = this.e.top + d();
|
||||
}
|
||||
|
||||
public void b(float f) {
|
||||
float a = MathUtils.a(f, 0.0f, 1.0f);
|
||||
if (a != this.c) {
|
||||
this.c = a;
|
||||
o();
|
||||
}
|
||||
}
|
||||
|
||||
private boolean b(CharSequence charSequence) {
|
||||
return (ViewCompat.k(this.a) == 1 ? TextDirectionHeuristicsCompat.b : TextDirectionHeuristicsCompat.a).a(charSequence, 0, charSequence.length());
|
||||
}
|
||||
|
||||
private void a(TextPaint textPaint) {
|
||||
textPaint.setTextSize(this.j);
|
||||
textPaint.setTypeface(this.s);
|
||||
}
|
||||
|
||||
public void c(Typeface typeface) {
|
||||
this.t = typeface;
|
||||
this.s = typeface;
|
||||
m();
|
||||
}
|
||||
|
||||
public void a(int i) {
|
||||
TintTypedArray a = TintTypedArray.a(this.a.getContext(), i, R$styleable.TextAppearance);
|
||||
if (a.g(R$styleable.TextAppearance_android_textColor)) {
|
||||
this.l = a.a(R$styleable.TextAppearance_android_textColor);
|
||||
}
|
||||
if (a.g(R$styleable.TextAppearance_android_textSize)) {
|
||||
this.j = a.c(R$styleable.TextAppearance_android_textSize, (int) this.j);
|
||||
}
|
||||
this.O = a.d(R$styleable.TextAppearance_android_shadowColor, 0);
|
||||
this.M = a.b(R$styleable.TextAppearance_android_shadowDx, 0.0f);
|
||||
this.N = a.b(R$styleable.TextAppearance_android_shadowDy, 0.0f);
|
||||
this.L = a.b(R$styleable.TextAppearance_android_shadowRadius, 0.0f);
|
||||
a.a();
|
||||
if (Build.VERSION.SDK_INT >= 16) {
|
||||
this.s = e(i);
|
||||
}
|
||||
m();
|
||||
}
|
||||
|
||||
public ColorStateList b() {
|
||||
return this.l;
|
||||
}
|
||||
|
||||
private void c(float f) {
|
||||
e(f);
|
||||
this.q = a(this.o, this.p, f, this.J);
|
||||
this.r = a(this.m, this.n, f, this.J);
|
||||
f(a(this.i, this.j, f, this.K));
|
||||
if (this.l != this.k) {
|
||||
this.H.setColor(a(r(), f(), f));
|
||||
} else {
|
||||
this.H.setColor(f());
|
||||
}
|
||||
this.H.setShadowLayer(a(this.P, this.L, f, (TimeInterpolator) null), a(this.Q, this.M, f, (TimeInterpolator) null), a(this.R, this.N, f, (TimeInterpolator) null), a(this.S, this.O, f));
|
||||
ViewCompat.A(this.a);
|
||||
}
|
||||
|
||||
public void a(Typeface typeface) {
|
||||
if (this.s != typeface) {
|
||||
this.s = typeface;
|
||||
m();
|
||||
}
|
||||
}
|
||||
|
||||
public final boolean a(int[] iArr) {
|
||||
this.F = iArr;
|
||||
if (!k()) {
|
||||
return false;
|
||||
}
|
||||
m();
|
||||
return true;
|
||||
}
|
||||
|
||||
public void a(Canvas canvas) {
|
||||
float ascent;
|
||||
int save = canvas.save();
|
||||
if (this.w != null && this.b) {
|
||||
float f = this.q;
|
||||
float f2 = this.r;
|
||||
boolean z = this.y && this.z != null;
|
||||
if (z) {
|
||||
ascent = this.B * this.D;
|
||||
} else {
|
||||
ascent = this.H.ascent() * this.D;
|
||||
this.H.descent();
|
||||
}
|
||||
if (z) {
|
||||
f2 += ascent;
|
||||
}
|
||||
float f3 = f2;
|
||||
float f4 = this.D;
|
||||
if (f4 != 1.0f) {
|
||||
canvas.scale(f4, f4, f, f3);
|
||||
}
|
||||
if (z) {
|
||||
canvas.drawBitmap(this.z, f, f3, this.A);
|
||||
} else {
|
||||
CharSequence charSequence = this.w;
|
||||
canvas.drawText(charSequence, 0, charSequence.length(), f, f3, this.H);
|
||||
}
|
||||
}
|
||||
canvas.restoreToCount(save);
|
||||
}
|
||||
|
||||
public void a(CharSequence charSequence) {
|
||||
if (charSequence == null || !charSequence.equals(this.v)) {
|
||||
this.v = charSequence;
|
||||
this.w = null;
|
||||
p();
|
||||
m();
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean a(float f, float f2) {
|
||||
return Math.abs(f - f2) < 0.001f;
|
||||
}
|
||||
|
||||
private static int a(int i, int i2, float f) {
|
||||
float f2 = 1.0f - f;
|
||||
return Color.argb((int) ((Color.alpha(i) * f2) + (Color.alpha(i2) * f)), (int) ((Color.red(i) * f2) + (Color.red(i2) * f)), (int) ((Color.green(i) * f2) + (Color.green(i2) * f)), (int) ((Color.blue(i) * f2) + (Color.blue(i2) * f)));
|
||||
}
|
||||
|
||||
private static float a(float f, float f2, float f3, TimeInterpolator timeInterpolator) {
|
||||
if (timeInterpolator != null) {
|
||||
f3 = timeInterpolator.getInterpolation(f3);
|
||||
}
|
||||
return AnimationUtils.a(f, f2, f3);
|
||||
}
|
||||
|
||||
private static boolean a(Rect rect, int i, int i2, int i3, int i4) {
|
||||
return rect.left == i && rect.top == i2 && rect.right == i3 && rect.bottom == i4;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.graphics.Matrix;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewParent;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class DescendantOffsetUtils {
|
||||
private static final ThreadLocal<Matrix> a = new ThreadLocal<>();
|
||||
private static final ThreadLocal<RectF> b = new ThreadLocal<>();
|
||||
|
||||
public static void a(ViewGroup viewGroup, View view, Rect rect) {
|
||||
rect.set(0, 0, view.getWidth(), view.getHeight());
|
||||
b(viewGroup, view, rect);
|
||||
}
|
||||
|
||||
public static void b(ViewGroup viewGroup, View view, Rect rect) {
|
||||
Matrix matrix = a.get();
|
||||
if (matrix == null) {
|
||||
matrix = new Matrix();
|
||||
a.set(matrix);
|
||||
} else {
|
||||
matrix.reset();
|
||||
}
|
||||
a(viewGroup, view, matrix);
|
||||
RectF rectF = b.get();
|
||||
if (rectF == null) {
|
||||
rectF = new RectF();
|
||||
b.set(rectF);
|
||||
}
|
||||
rectF.set(rect);
|
||||
matrix.mapRect(rectF);
|
||||
rect.set((int) (rectF.left + 0.5f), (int) (rectF.top + 0.5f), (int) (rectF.right + 0.5f), (int) (rectF.bottom + 0.5f));
|
||||
}
|
||||
|
||||
private static void a(ViewParent viewParent, View view, Matrix matrix) {
|
||||
Object parent = view.getParent();
|
||||
if ((parent instanceof View) && parent != viewParent) {
|
||||
a(viewParent, (View) parent, matrix);
|
||||
matrix.preTranslate(-r0.getScrollX(), -r0.getScrollY());
|
||||
}
|
||||
matrix.preTranslate(view.getLeft(), view.getTop());
|
||||
if (view.getMatrix().isIdentity()) {
|
||||
return;
|
||||
}
|
||||
matrix.preConcat(view.getMatrix());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.DrawableContainer;
|
||||
import android.util.Log;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class DrawableUtils {
|
||||
private static Method a;
|
||||
private static boolean b;
|
||||
|
||||
public static boolean a(DrawableContainer drawableContainer, Drawable.ConstantState constantState) {
|
||||
return b(drawableContainer, constantState);
|
||||
}
|
||||
|
||||
private static boolean b(DrawableContainer drawableContainer, Drawable.ConstantState constantState) {
|
||||
if (!b) {
|
||||
try {
|
||||
a = DrawableContainer.class.getDeclaredMethod("setConstantState", DrawableContainer.DrawableContainerState.class);
|
||||
a.setAccessible(true);
|
||||
} catch (NoSuchMethodException unused) {
|
||||
Log.e("DrawableUtils", "Could not fetch setConstantState(). Oh well.");
|
||||
}
|
||||
b = true;
|
||||
}
|
||||
Method method = a;
|
||||
if (method != null) {
|
||||
try {
|
||||
method.invoke(drawableContainer, constantState);
|
||||
return true;
|
||||
} catch (Exception unused2) {
|
||||
Log.e("DrawableUtils", "Could not invoke setConstantState(). Oh well.");
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.Gravity;
|
||||
import androidx.appcompat.widget.LinearLayoutCompat;
|
||||
import com.google.android.material.R$styleable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ForegroundLinearLayout extends LinearLayoutCompat {
|
||||
private Drawable p;
|
||||
private final Rect q;
|
||||
private final Rect r;
|
||||
private int s;
|
||||
protected boolean t;
|
||||
boolean u;
|
||||
|
||||
public ForegroundLinearLayout(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void draw(Canvas canvas) {
|
||||
super.draw(canvas);
|
||||
Drawable drawable = this.p;
|
||||
if (drawable != null) {
|
||||
if (this.u) {
|
||||
this.u = false;
|
||||
Rect rect = this.q;
|
||||
Rect rect2 = this.r;
|
||||
int right = getRight() - getLeft();
|
||||
int bottom = getBottom() - getTop();
|
||||
if (this.t) {
|
||||
rect.set(0, 0, right, bottom);
|
||||
} else {
|
||||
rect.set(getPaddingLeft(), getPaddingTop(), right - getPaddingRight(), bottom - getPaddingBottom());
|
||||
}
|
||||
Gravity.apply(this.s, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), rect, rect2);
|
||||
drawable.setBounds(rect2);
|
||||
}
|
||||
drawable.draw(canvas);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
@TargetApi(21)
|
||||
public void drawableHotspotChanged(float f, float f2) {
|
||||
super.drawableHotspotChanged(f, f2);
|
||||
Drawable drawable = this.p;
|
||||
if (drawable != null) {
|
||||
drawable.setHotspot(f, f2);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
protected void drawableStateChanged() {
|
||||
super.drawableStateChanged();
|
||||
Drawable drawable = this.p;
|
||||
if (drawable == null || !drawable.isStateful()) {
|
||||
return;
|
||||
}
|
||||
this.p.setState(getDrawableState());
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public Drawable getForeground() {
|
||||
return this.p;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public int getForegroundGravity() {
|
||||
return this.s;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public void jumpDrawablesToCurrentState() {
|
||||
super.jumpDrawablesToCurrentState();
|
||||
Drawable drawable = this.p;
|
||||
if (drawable != null) {
|
||||
drawable.jumpToCurrentState();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.LinearLayoutCompat, android.view.ViewGroup, android.view.View
|
||||
protected void onLayout(boolean z, int i, int i2, int i3, int i4) {
|
||||
super.onLayout(z, i, i2, i3, i4);
|
||||
this.u = z | this.u;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected void onSizeChanged(int i, int i2, int i3, int i4) {
|
||||
super.onSizeChanged(i, i2, i3, i4);
|
||||
this.u = true;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setForeground(Drawable drawable) {
|
||||
Drawable drawable2 = this.p;
|
||||
if (drawable2 != drawable) {
|
||||
if (drawable2 != null) {
|
||||
drawable2.setCallback(null);
|
||||
unscheduleDrawable(this.p);
|
||||
}
|
||||
this.p = drawable;
|
||||
if (drawable != null) {
|
||||
setWillNotDraw(false);
|
||||
drawable.setCallback(this);
|
||||
if (drawable.isStateful()) {
|
||||
drawable.setState(getDrawableState());
|
||||
}
|
||||
if (this.s == 119) {
|
||||
drawable.getPadding(new Rect());
|
||||
}
|
||||
} else {
|
||||
setWillNotDraw(true);
|
||||
}
|
||||
requestLayout();
|
||||
invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setForegroundGravity(int i) {
|
||||
if (this.s != i) {
|
||||
if ((8388615 & i) == 0) {
|
||||
i |= 8388611;
|
||||
}
|
||||
if ((i & 112) == 0) {
|
||||
i |= 48;
|
||||
}
|
||||
this.s = i;
|
||||
if (this.s == 119 && this.p != null) {
|
||||
this.p.getPadding(new Rect());
|
||||
}
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected boolean verifyDrawable(Drawable drawable) {
|
||||
return super.verifyDrawable(drawable) || drawable == this.p;
|
||||
}
|
||||
|
||||
public ForegroundLinearLayout(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, 0);
|
||||
}
|
||||
|
||||
public ForegroundLinearLayout(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
this.q = new Rect();
|
||||
this.r = new Rect();
|
||||
this.s = 119;
|
||||
this.t = true;
|
||||
this.u = false;
|
||||
TypedArray c = ThemeEnforcement.c(context, attributeSet, R$styleable.ForegroundLinearLayout, i, 0, new int[0]);
|
||||
this.s = c.getInt(R$styleable.ForegroundLinearLayout_android_foregroundGravity, this.s);
|
||||
Drawable drawable = c.getDrawable(R$styleable.ForegroundLinearLayout_android_foreground);
|
||||
if (drawable != null) {
|
||||
setForeground(drawable);
|
||||
}
|
||||
this.t = c.getBoolean(R$styleable.ForegroundLinearLayout_foregroundInsidePadding, true);
|
||||
c.recycle();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.StateListDrawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.TypedValue;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewStub;
|
||||
import android.widget.CheckedTextView;
|
||||
import android.widget.FrameLayout;
|
||||
import androidx.appcompat.R$attr;
|
||||
import androidx.appcompat.view.menu.MenuItemImpl;
|
||||
import androidx.appcompat.view.menu.MenuView;
|
||||
import androidx.appcompat.widget.LinearLayoutCompat;
|
||||
import androidx.appcompat.widget.TooltipCompat;
|
||||
import androidx.core.content.res.ResourcesCompat;
|
||||
import androidx.core.graphics.drawable.DrawableCompat;
|
||||
import androidx.core.view.AccessibilityDelegateCompat;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.accessibility.AccessibilityNodeInfoCompat;
|
||||
import androidx.core.widget.TextViewCompat;
|
||||
import com.google.android.material.R$dimen;
|
||||
import com.google.android.material.R$drawable;
|
||||
import com.google.android.material.R$id;
|
||||
import com.google.android.material.R$layout;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class NavigationMenuItemView extends ForegroundLinearLayout implements MenuView.ItemView {
|
||||
private static final int[] G = {R.attr.state_checked};
|
||||
private FrameLayout A;
|
||||
private MenuItemImpl B;
|
||||
private ColorStateList C;
|
||||
private boolean D;
|
||||
private Drawable E;
|
||||
private final AccessibilityDelegateCompat F;
|
||||
private final int v;
|
||||
private boolean x;
|
||||
boolean y;
|
||||
private final CheckedTextView z;
|
||||
|
||||
public NavigationMenuItemView(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
private void d() {
|
||||
if (f()) {
|
||||
this.z.setVisibility(8);
|
||||
FrameLayout frameLayout = this.A;
|
||||
if (frameLayout != null) {
|
||||
LinearLayoutCompat.LayoutParams layoutParams = (LinearLayoutCompat.LayoutParams) frameLayout.getLayoutParams();
|
||||
((ViewGroup.MarginLayoutParams) layoutParams).width = -1;
|
||||
this.A.setLayoutParams(layoutParams);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.z.setVisibility(0);
|
||||
FrameLayout frameLayout2 = this.A;
|
||||
if (frameLayout2 != null) {
|
||||
LinearLayoutCompat.LayoutParams layoutParams2 = (LinearLayoutCompat.LayoutParams) frameLayout2.getLayoutParams();
|
||||
((ViewGroup.MarginLayoutParams) layoutParams2).width = -2;
|
||||
this.A.setLayoutParams(layoutParams2);
|
||||
}
|
||||
}
|
||||
|
||||
private StateListDrawable e() {
|
||||
TypedValue typedValue = new TypedValue();
|
||||
if (!getContext().getTheme().resolveAttribute(R$attr.colorControlHighlight, typedValue, true)) {
|
||||
return null;
|
||||
}
|
||||
StateListDrawable stateListDrawable = new StateListDrawable();
|
||||
stateListDrawable.addState(G, new ColorDrawable(typedValue.data));
|
||||
stateListDrawable.addState(ViewGroup.EMPTY_STATE_SET, new ColorDrawable(0));
|
||||
return stateListDrawable;
|
||||
}
|
||||
|
||||
private boolean f() {
|
||||
return this.B.getTitle() == null && this.B.getIcon() == null && this.B.getActionView() != null;
|
||||
}
|
||||
|
||||
private void setActionView(View view) {
|
||||
if (view != null) {
|
||||
if (this.A == null) {
|
||||
this.A = (FrameLayout) ((ViewStub) findViewById(R$id.design_menu_item_action_area_stub)).inflate();
|
||||
}
|
||||
this.A.removeAllViews();
|
||||
this.A.addView(view);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.view.menu.MenuView.ItemView
|
||||
public void a(MenuItemImpl menuItemImpl, int i) {
|
||||
this.B = menuItemImpl;
|
||||
setVisibility(menuItemImpl.isVisible() ? 0 : 8);
|
||||
if (getBackground() == null) {
|
||||
ViewCompat.a(this, e());
|
||||
}
|
||||
setCheckable(menuItemImpl.isCheckable());
|
||||
setChecked(menuItemImpl.isChecked());
|
||||
setEnabled(menuItemImpl.isEnabled());
|
||||
setTitle(menuItemImpl.getTitle());
|
||||
setIcon(menuItemImpl.getIcon());
|
||||
setActionView(menuItemImpl.getActionView());
|
||||
setContentDescription(menuItemImpl.getContentDescription());
|
||||
TooltipCompat.a(this, menuItemImpl.getTooltipText());
|
||||
d();
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.view.menu.MenuView.ItemView
|
||||
public boolean a() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.view.menu.MenuView.ItemView
|
||||
public MenuItemImpl getItemData() {
|
||||
return this.B;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
protected int[] onCreateDrawableState(int i) {
|
||||
int[] onCreateDrawableState = super.onCreateDrawableState(i + 1);
|
||||
MenuItemImpl menuItemImpl = this.B;
|
||||
if (menuItemImpl != null && menuItemImpl.isCheckable() && this.B.isChecked()) {
|
||||
ViewGroup.mergeDrawableStates(onCreateDrawableState, G);
|
||||
}
|
||||
return onCreateDrawableState;
|
||||
}
|
||||
|
||||
public void setCheckable(boolean z) {
|
||||
refreshDrawableState();
|
||||
if (this.y != z) {
|
||||
this.y = z;
|
||||
this.F.a(this.z, 2048);
|
||||
}
|
||||
}
|
||||
|
||||
public void setChecked(boolean z) {
|
||||
refreshDrawableState();
|
||||
this.z.setChecked(z);
|
||||
}
|
||||
|
||||
public void setHorizontalPadding(int i) {
|
||||
setPadding(i, 0, i, 0);
|
||||
}
|
||||
|
||||
public void setIcon(Drawable drawable) {
|
||||
if (drawable != null) {
|
||||
if (this.D) {
|
||||
Drawable.ConstantState constantState = drawable.getConstantState();
|
||||
if (constantState != null) {
|
||||
drawable = constantState.newDrawable();
|
||||
}
|
||||
drawable = DrawableCompat.h(drawable).mutate();
|
||||
DrawableCompat.a(drawable, this.C);
|
||||
}
|
||||
int i = this.v;
|
||||
drawable.setBounds(0, 0, i, i);
|
||||
} else if (this.x) {
|
||||
if (this.E == null) {
|
||||
this.E = ResourcesCompat.a(getResources(), R$drawable.navigation_empty_icon, getContext().getTheme());
|
||||
Drawable drawable2 = this.E;
|
||||
if (drawable2 != null) {
|
||||
int i2 = this.v;
|
||||
drawable2.setBounds(0, 0, i2, i2);
|
||||
}
|
||||
}
|
||||
drawable = this.E;
|
||||
}
|
||||
TextViewCompat.a(this.z, drawable, null, null, null);
|
||||
}
|
||||
|
||||
public void setIconPadding(int i) {
|
||||
this.z.setCompoundDrawablePadding(i);
|
||||
}
|
||||
|
||||
void setIconTintList(ColorStateList colorStateList) {
|
||||
this.C = colorStateList;
|
||||
this.D = this.C != null;
|
||||
MenuItemImpl menuItemImpl = this.B;
|
||||
if (menuItemImpl != null) {
|
||||
setIcon(menuItemImpl.getIcon());
|
||||
}
|
||||
}
|
||||
|
||||
public void setNeedsEmptyIcon(boolean z) {
|
||||
this.x = z;
|
||||
}
|
||||
|
||||
public void setTextAppearance(int i) {
|
||||
TextViewCompat.d(this.z, i);
|
||||
}
|
||||
|
||||
public void setTextColor(ColorStateList colorStateList) {
|
||||
this.z.setTextColor(colorStateList);
|
||||
}
|
||||
|
||||
public void setTitle(CharSequence charSequence) {
|
||||
this.z.setText(charSequence);
|
||||
}
|
||||
|
||||
public NavigationMenuItemView(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, 0);
|
||||
}
|
||||
|
||||
public NavigationMenuItemView(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
this.F = new AccessibilityDelegateCompat() { // from class: com.google.android.material.internal.NavigationMenuItemView.1
|
||||
@Override // androidx.core.view.AccessibilityDelegateCompat
|
||||
public void a(View view, AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) {
|
||||
super.a(view, accessibilityNodeInfoCompat);
|
||||
accessibilityNodeInfoCompat.a(NavigationMenuItemView.this.y);
|
||||
}
|
||||
};
|
||||
setOrientation(0);
|
||||
LayoutInflater.from(context).inflate(R$layout.design_navigation_menu_item, (ViewGroup) this, true);
|
||||
this.v = context.getResources().getDimensionPixelSize(R$dimen.design_navigation_icon_size);
|
||||
this.z = (CheckedTextView) findViewById(R$id.design_menu_item_text);
|
||||
this.z.setDuplicateParentStateEnabled(true);
|
||||
ViewCompat.a(this.z, this.F);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import androidx.appcompat.view.menu.MenuBuilder;
|
||||
import androidx.appcompat.view.menu.MenuView;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class NavigationMenuView extends RecyclerView implements MenuView {
|
||||
public NavigationMenuView(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.view.menu.MenuView
|
||||
public void a(MenuBuilder menuBuilder) {
|
||||
}
|
||||
|
||||
public int getWindowAnimations() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public NavigationMenuView(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, 0);
|
||||
}
|
||||
|
||||
public NavigationMenuView(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
setLayoutManager(new LinearLayoutManager(context, 1, false));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.util.SparseArray;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ParcelableSparseArray extends SparseArray<Parcelable> implements Parcelable {
|
||||
public static final Parcelable.Creator<ParcelableSparseArray> CREATOR = new Parcelable.ClassLoaderCreator<ParcelableSparseArray>() { // from class: com.google.android.material.internal.ParcelableSparseArray.1
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public ParcelableSparseArray[] newArray(int i) {
|
||||
return new ParcelableSparseArray[i];
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // android.os.Parcelable.ClassLoaderCreator
|
||||
public ParcelableSparseArray createFromParcel(Parcel parcel, ClassLoader classLoader) {
|
||||
return new ParcelableSparseArray(parcel, classLoader);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public ParcelableSparseArray createFromParcel(Parcel parcel) {
|
||||
return new ParcelableSparseArray(parcel, null);
|
||||
}
|
||||
};
|
||||
|
||||
public ParcelableSparseArray() {
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
int size = size();
|
||||
int[] iArr = new int[size];
|
||||
Parcelable[] parcelableArr = new Parcelable[size];
|
||||
for (int i2 = 0; i2 < size; i2++) {
|
||||
iArr[i2] = keyAt(i2);
|
||||
parcelableArr[i2] = valueAt(i2);
|
||||
}
|
||||
parcel.writeInt(size);
|
||||
parcel.writeIntArray(iArr);
|
||||
parcel.writeParcelableArray(parcelableArr, i);
|
||||
}
|
||||
|
||||
public ParcelableSparseArray(Parcel parcel, ClassLoader classLoader) {
|
||||
int readInt = parcel.readInt();
|
||||
int[] iArr = new int[readInt];
|
||||
parcel.readIntArray(iArr);
|
||||
Parcelable[] readParcelableArray = parcel.readParcelableArray(classLoader);
|
||||
for (int i = 0; i < readInt; i++) {
|
||||
put(iArr[i], readParcelableArray[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.util.StateSet;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class StateListAnimator {
|
||||
private final ArrayList<Tuple> a = new ArrayList<>();
|
||||
private Tuple b = null;
|
||||
ValueAnimator c = null;
|
||||
private final Animator.AnimatorListener d = new AnimatorListenerAdapter() { // from class: com.google.android.material.internal.StateListAnimator.1
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator) {
|
||||
StateListAnimator stateListAnimator = StateListAnimator.this;
|
||||
if (stateListAnimator.c == animator) {
|
||||
stateListAnimator.c = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
static class Tuple {
|
||||
final int[] a;
|
||||
final ValueAnimator b;
|
||||
|
||||
Tuple(int[] iArr, ValueAnimator valueAnimator) {
|
||||
this.a = iArr;
|
||||
this.b = valueAnimator;
|
||||
}
|
||||
}
|
||||
|
||||
private void b() {
|
||||
ValueAnimator valueAnimator = this.c;
|
||||
if (valueAnimator != null) {
|
||||
valueAnimator.cancel();
|
||||
this.c = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void a(int[] iArr, ValueAnimator valueAnimator) {
|
||||
Tuple tuple = new Tuple(iArr, valueAnimator);
|
||||
valueAnimator.addListener(this.d);
|
||||
this.a.add(tuple);
|
||||
}
|
||||
|
||||
public void a(int[] iArr) {
|
||||
Tuple tuple;
|
||||
int size = this.a.size();
|
||||
int i = 0;
|
||||
while (true) {
|
||||
if (i >= size) {
|
||||
tuple = null;
|
||||
break;
|
||||
}
|
||||
tuple = this.a.get(i);
|
||||
if (StateSet.stateSetMatches(tuple.a, iArr)) {
|
||||
break;
|
||||
} else {
|
||||
i++;
|
||||
}
|
||||
}
|
||||
Tuple tuple2 = this.b;
|
||||
if (tuple == tuple2) {
|
||||
return;
|
||||
}
|
||||
if (tuple2 != null) {
|
||||
b();
|
||||
}
|
||||
this.b = tuple;
|
||||
if (tuple != null) {
|
||||
a(tuple);
|
||||
}
|
||||
}
|
||||
|
||||
private void a(Tuple tuple) {
|
||||
this.c = tuple.b;
|
||||
this.c.start();
|
||||
}
|
||||
|
||||
public void a() {
|
||||
ValueAnimator valueAnimator = this.c;
|
||||
if (valueAnimator != null) {
|
||||
valueAnimator.end();
|
||||
this.c = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import androidx.appcompat.widget.TintTypedArray;
|
||||
import com.google.android.material.R$attr;
|
||||
import com.google.android.material.R$styleable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class ThemeEnforcement {
|
||||
private static final int[] a = {R$attr.colorPrimary};
|
||||
private static final int[] b = {R$attr.colorSecondary};
|
||||
|
||||
private static void a(Context context, AttributeSet attributeSet, int i, int i2) {
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.ThemeEnforcement, i, i2);
|
||||
boolean z = obtainStyledAttributes.getBoolean(R$styleable.ThemeEnforcement_enforceMaterialTheme, false);
|
||||
obtainStyledAttributes.recycle();
|
||||
if (z) {
|
||||
b(context);
|
||||
}
|
||||
a(context);
|
||||
}
|
||||
|
||||
private static boolean b(Context context, AttributeSet attributeSet, int[] iArr, int i, int i2, int... iArr2) {
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, iArr, i, i2);
|
||||
for (int i3 : iArr2) {
|
||||
if (obtainStyledAttributes.getResourceId(i3, -1) == -1) {
|
||||
obtainStyledAttributes.recycle();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
obtainStyledAttributes.recycle();
|
||||
return true;
|
||||
}
|
||||
|
||||
public static TypedArray c(Context context, AttributeSet attributeSet, int[] iArr, int i, int i2, int... iArr2) {
|
||||
a(context, attributeSet, i, i2);
|
||||
a(context, attributeSet, iArr, i, i2, iArr2);
|
||||
return context.obtainStyledAttributes(attributeSet, iArr, i, i2);
|
||||
}
|
||||
|
||||
public static TintTypedArray d(Context context, AttributeSet attributeSet, int[] iArr, int i, int i2, int... iArr2) {
|
||||
a(context, attributeSet, i, i2);
|
||||
a(context, attributeSet, iArr, i, i2, iArr2);
|
||||
return TintTypedArray.a(context, attributeSet, iArr, i, i2);
|
||||
}
|
||||
|
||||
public static void b(Context context) {
|
||||
a(context, b, "Theme.MaterialComponents");
|
||||
}
|
||||
|
||||
private static void a(Context context, AttributeSet attributeSet, int[] iArr, int i, int i2, int... iArr2) {
|
||||
boolean z;
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.ThemeEnforcement, i, i2);
|
||||
if (!obtainStyledAttributes.getBoolean(R$styleable.ThemeEnforcement_enforceTextAppearance, false)) {
|
||||
obtainStyledAttributes.recycle();
|
||||
return;
|
||||
}
|
||||
if (iArr2 != null && iArr2.length != 0) {
|
||||
z = b(context, attributeSet, iArr, i, i2, iArr2);
|
||||
} else {
|
||||
z = obtainStyledAttributes.getResourceId(R$styleable.ThemeEnforcement_android_textAppearance, -1) != -1;
|
||||
}
|
||||
obtainStyledAttributes.recycle();
|
||||
if (!z) {
|
||||
throw new IllegalArgumentException("This component requires that you specify a valid TextAppearance attribute. Update your app theme to inherit from Theme.MaterialComponents (or a descendant).");
|
||||
}
|
||||
}
|
||||
|
||||
public static void a(Context context) {
|
||||
a(context, a, "Theme.AppCompat");
|
||||
}
|
||||
|
||||
private static boolean a(Context context, int[] iArr) {
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(iArr);
|
||||
boolean hasValue = obtainStyledAttributes.hasValue(0);
|
||||
obtainStyledAttributes.recycle();
|
||||
return hasValue;
|
||||
}
|
||||
|
||||
private static void a(Context context, int[] iArr, String str) {
|
||||
if (a(context, iArr)) {
|
||||
return;
|
||||
}
|
||||
throw new IllegalArgumentException("The style on this component requires your app theme to be " + str + " (or a descendant).");
|
||||
}
|
||||
}
|
||||
34
sources/com/google/android/material/internal/ViewUtils.java
Normal file
34
sources/com/google/android/material/internal/ViewUtils.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.graphics.PorterDuff;
|
||||
import android.view.View;
|
||||
import androidx.core.view.ViewCompat;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ViewUtils {
|
||||
public static PorterDuff.Mode a(int i, PorterDuff.Mode mode) {
|
||||
if (i == 3) {
|
||||
return PorterDuff.Mode.SRC_OVER;
|
||||
}
|
||||
if (i == 5) {
|
||||
return PorterDuff.Mode.SRC_IN;
|
||||
}
|
||||
if (i == 9) {
|
||||
return PorterDuff.Mode.SRC_ATOP;
|
||||
}
|
||||
switch (i) {
|
||||
case 14:
|
||||
return PorterDuff.Mode.MULTIPLY;
|
||||
case 15:
|
||||
return PorterDuff.Mode.SCREEN;
|
||||
case 16:
|
||||
return PorterDuff.Mode.ADD;
|
||||
default:
|
||||
return mode;
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean a(View view) {
|
||||
return ViewCompat.k(view) == 1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.widget.ImageButton;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class VisibilityAwareImageButton extends ImageButton {
|
||||
private int a;
|
||||
|
||||
public final void a(int i, boolean z) {
|
||||
super.setVisibility(i);
|
||||
if (z) {
|
||||
this.a = i;
|
||||
}
|
||||
}
|
||||
|
||||
public final int getUserSetVisibility() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView, android.view.View
|
||||
public void setVisibility(int i) {
|
||||
a(i, true);
|
||||
}
|
||||
}
|
||||
20
sources/com/google/android/material/math/MathUtils.java
Normal file
20
sources/com/google/android/material/math/MathUtils.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package com.google.android.material.math;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class MathUtils {
|
||||
public static float a(float f, float f2, float f3) {
|
||||
return ((1.0f - f3) * f) + (f3 * f2);
|
||||
}
|
||||
|
||||
public static float a(float f, float f2, float f3, float f4) {
|
||||
return (float) Math.hypot(f3 - f, f4 - f2);
|
||||
}
|
||||
|
||||
private static float b(float f, float f2, float f3, float f4) {
|
||||
return (f <= f2 || f <= f3 || f <= f4) ? (f2 <= f3 || f2 <= f4) ? f3 > f4 ? f3 : f4 : f2 : f;
|
||||
}
|
||||
|
||||
public static float a(float f, float f2, float f3, float f4, float f5, float f6) {
|
||||
return b(a(f, f2, f3, f4), a(f, f2, f5, f4), a(f, f2, f5, f6), a(f, f2, f3, f6));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.google.android.material.navigation;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import androidx.customview.view.AbsSavedState;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class NavigationView$SavedState extends AbsSavedState {
|
||||
public static final Parcelable.Creator<NavigationView$SavedState> CREATOR = new Parcelable.ClassLoaderCreator<NavigationView$SavedState>() { // from class: com.google.android.material.navigation.NavigationView$SavedState.1
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public NavigationView$SavedState[] newArray(int i) {
|
||||
return new NavigationView$SavedState[i];
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // android.os.Parcelable.ClassLoaderCreator
|
||||
public NavigationView$SavedState createFromParcel(Parcel parcel, ClassLoader classLoader) {
|
||||
return new NavigationView$SavedState(parcel, classLoader);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public NavigationView$SavedState createFromParcel(Parcel parcel) {
|
||||
return new NavigationView$SavedState(parcel, null);
|
||||
}
|
||||
};
|
||||
public Bundle menuState;
|
||||
|
||||
public NavigationView$SavedState(Parcel parcel, ClassLoader classLoader) {
|
||||
super(parcel, classLoader);
|
||||
this.menuState = parcel.readBundle(classLoader);
|
||||
}
|
||||
|
||||
@Override // androidx.customview.view.AbsSavedState, android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
super.writeToParcel(parcel, i);
|
||||
parcel.writeBundle(this.menuState);
|
||||
}
|
||||
|
||||
public NavigationView$SavedState(Parcelable parcelable) {
|
||||
super(parcelable);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.material.resources;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import androidx.appcompat.content.res.AppCompatResources;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class MaterialResources {
|
||||
public static ColorStateList a(Context context, TypedArray typedArray, int i) {
|
||||
int resourceId;
|
||||
ColorStateList b;
|
||||
return (!typedArray.hasValue(i) || (resourceId = typedArray.getResourceId(i, 0)) == 0 || (b = AppCompatResources.b(context, resourceId)) == null) ? typedArray.getColorStateList(i) : b;
|
||||
}
|
||||
|
||||
public static Drawable b(Context context, TypedArray typedArray, int i) {
|
||||
int resourceId;
|
||||
Drawable c;
|
||||
return (!typedArray.hasValue(i) || (resourceId = typedArray.getResourceId(i, 0)) == 0 || (c = AppCompatResources.c(context, resourceId)) == null) ? typedArray.getDrawable(i) : c;
|
||||
}
|
||||
}
|
||||
61
sources/com/google/android/material/ripple/RippleUtils.java
Normal file
61
sources/com/google/android/material/ripple/RippleUtils.java
Normal file
@@ -0,0 +1,61 @@
|
||||
package com.google.android.material.ripple;
|
||||
|
||||
import android.R;
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.Color;
|
||||
import android.os.Build;
|
||||
import android.util.StateSet;
|
||||
import androidx.core.graphics.ColorUtils;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class RippleUtils {
|
||||
public static final boolean a;
|
||||
private static final int[] b;
|
||||
private static final int[] c;
|
||||
private static final int[] d;
|
||||
private static final int[] e;
|
||||
private static final int[] f;
|
||||
private static final int[] g;
|
||||
private static final int[] h;
|
||||
private static final int[] i;
|
||||
private static final int[] j;
|
||||
|
||||
static {
|
||||
a = Build.VERSION.SDK_INT >= 21;
|
||||
b = new int[]{R.attr.state_pressed};
|
||||
c = new int[]{R.attr.state_hovered, R.attr.state_focused};
|
||||
d = new int[]{R.attr.state_focused};
|
||||
e = new int[]{R.attr.state_hovered};
|
||||
f = new int[]{R.attr.state_selected, R.attr.state_pressed};
|
||||
g = new int[]{R.attr.state_selected, R.attr.state_hovered, R.attr.state_focused};
|
||||
h = new int[]{R.attr.state_selected, R.attr.state_focused};
|
||||
i = new int[]{R.attr.state_selected, R.attr.state_hovered};
|
||||
j = new int[]{R.attr.state_selected};
|
||||
}
|
||||
|
||||
public static ColorStateList a(ColorStateList colorStateList) {
|
||||
if (a) {
|
||||
return new ColorStateList(new int[][]{j, StateSet.NOTHING}, new int[]{a(colorStateList, f), a(colorStateList, b)});
|
||||
}
|
||||
int[] iArr = f;
|
||||
int[] iArr2 = g;
|
||||
int[] iArr3 = h;
|
||||
int[] iArr4 = i;
|
||||
int[] iArr5 = b;
|
||||
int[] iArr6 = c;
|
||||
int[] iArr7 = d;
|
||||
int[] iArr8 = e;
|
||||
return new ColorStateList(new int[][]{iArr, iArr2, iArr3, iArr4, j, iArr5, iArr6, iArr7, iArr8, StateSet.NOTHING}, new int[]{a(colorStateList, iArr), a(colorStateList, iArr2), a(colorStateList, iArr3), a(colorStateList, iArr4), 0, a(colorStateList, iArr5), a(colorStateList, iArr6), a(colorStateList, iArr7), a(colorStateList, iArr8), 0});
|
||||
}
|
||||
|
||||
private static int a(ColorStateList colorStateList, int[] iArr) {
|
||||
int colorForState = colorStateList != null ? colorStateList.getColorForState(iArr, colorStateList.getDefaultColor()) : 0;
|
||||
return a ? a(colorForState) : colorForState;
|
||||
}
|
||||
|
||||
@TargetApi(21)
|
||||
private static int a(int i2) {
|
||||
return ColorUtils.c(i2, Math.min(Color.alpha(i2) * 2, 255));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.google.android.material.shadow;
|
||||
|
||||
import android.graphics.Rect;
|
||||
import androidx.appcompat.graphics.drawable.DrawableWrapper;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ShadowDrawableWrapper extends DrawableWrapper {
|
||||
static final double b = Math.cos(Math.toRadians(45.0d));
|
||||
|
||||
public static float a(float f, float f2, boolean z) {
|
||||
return z ? (float) (f + ((1.0d - b) * f2)) : f;
|
||||
}
|
||||
|
||||
public static float b(float f, float f2, boolean z) {
|
||||
return z ? (float) ((f * 1.5f) + ((1.0d - b) * f2)) : f * 1.5f;
|
||||
}
|
||||
|
||||
public final void a(float f) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void a(float f, float f2) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public float b() {
|
||||
throw null;
|
||||
}
|
||||
|
||||
public void b(float f) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.graphics.drawable.DrawableWrapper, android.graphics.drawable.Drawable
|
||||
public boolean getPadding(Rect rect) {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.google.android.material.shadow;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public interface ShadowViewDelegate {
|
||||
void a(int i, int i2, int i3, int i4);
|
||||
|
||||
void a(Drawable drawable);
|
||||
|
||||
boolean a();
|
||||
|
||||
float b();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.google.android.material.shape;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class EdgeTreatment {
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.google.android.material.shape;
|
||||
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import androidx.core.graphics.drawable.TintAwareDrawable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class MaterialShapeDrawable extends Drawable implements TintAwareDrawable {
|
||||
public ColorStateList a() {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import com.google.android.material.behavior.SwipeDismissBehavior;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class BaseTransientBottomBar$Behavior extends SwipeDismissBehavior<View> {
|
||||
private final BaseTransientBottomBar$BehaviorDelegate k = new BaseTransientBottomBar$BehaviorDelegate(this);
|
||||
|
||||
@Override // com.google.android.material.behavior.SwipeDismissBehavior
|
||||
public boolean a(View view) {
|
||||
return this.k.a(view);
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.behavior.SwipeDismissBehavior, androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, View view, MotionEvent motionEvent) {
|
||||
this.k.a(coordinatorLayout, view, motionEvent);
|
||||
return super.a(coordinatorLayout, (CoordinatorLayout) view, motionEvent);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import com.google.android.material.behavior.SwipeDismissBehavior;
|
||||
import com.google.android.material.snackbar.SnackbarManager;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class BaseTransientBottomBar$BehaviorDelegate {
|
||||
private SnackbarManager.Callback a;
|
||||
|
||||
public BaseTransientBottomBar$BehaviorDelegate(SwipeDismissBehavior<?> swipeDismissBehavior) {
|
||||
swipeDismissBehavior.b(0.1f);
|
||||
swipeDismissBehavior.a(0.6f);
|
||||
swipeDismissBehavior.a(0);
|
||||
}
|
||||
|
||||
public boolean a(View view) {
|
||||
return view instanceof BaseTransientBottomBar$SnackbarBaseLayout;
|
||||
}
|
||||
|
||||
public void a(CoordinatorLayout coordinatorLayout, View view, MotionEvent motionEvent) {
|
||||
int actionMasked = motionEvent.getActionMasked();
|
||||
if (actionMasked == 0) {
|
||||
if (coordinatorLayout.a(view, (int) motionEvent.getX(), (int) motionEvent.getY())) {
|
||||
SnackbarManager.a().a(this.a);
|
||||
}
|
||||
} else if (actionMasked == 1 || actionMasked == 3) {
|
||||
SnackbarManager.a().b(this.a);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public interface BaseTransientBottomBar$OnAttachStateChangeListener {
|
||||
void onViewAttachedToWindow(View view);
|
||||
|
||||
void onViewDetachedFromWindow(View view);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public interface BaseTransientBottomBar$OnLayoutChangeListener {
|
||||
void a(View view, int i, int i2, int i3, int i4);
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.accessibility.AccessibilityManager;
|
||||
import android.widget.FrameLayout;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.accessibility.AccessibilityManagerCompat;
|
||||
import com.google.android.material.R$styleable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class BaseTransientBottomBar$SnackbarBaseLayout extends FrameLayout {
|
||||
private final AccessibilityManager a;
|
||||
private final AccessibilityManagerCompat.TouchExplorationStateChangeListener b;
|
||||
private BaseTransientBottomBar$OnLayoutChangeListener c;
|
||||
private BaseTransientBottomBar$OnAttachStateChangeListener d;
|
||||
|
||||
protected BaseTransientBottomBar$SnackbarBaseLayout(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public void setClickableOrFocusableBasedOnAccessibility(boolean z) {
|
||||
setClickable(!z);
|
||||
setFocusable(z);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
protected void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
BaseTransientBottomBar$OnAttachStateChangeListener baseTransientBottomBar$OnAttachStateChangeListener = this.d;
|
||||
if (baseTransientBottomBar$OnAttachStateChangeListener != null) {
|
||||
baseTransientBottomBar$OnAttachStateChangeListener.onViewAttachedToWindow(this);
|
||||
}
|
||||
ViewCompat.B(this);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
protected void onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow();
|
||||
BaseTransientBottomBar$OnAttachStateChangeListener baseTransientBottomBar$OnAttachStateChangeListener = this.d;
|
||||
if (baseTransientBottomBar$OnAttachStateChangeListener != null) {
|
||||
baseTransientBottomBar$OnAttachStateChangeListener.onViewDetachedFromWindow(this);
|
||||
}
|
||||
AccessibilityManagerCompat.b(this.a, this.b);
|
||||
}
|
||||
|
||||
@Override // android.widget.FrameLayout, android.view.ViewGroup, android.view.View
|
||||
protected void onLayout(boolean z, int i, int i2, int i3, int i4) {
|
||||
super.onLayout(z, i, i2, i3, i4);
|
||||
BaseTransientBottomBar$OnLayoutChangeListener baseTransientBottomBar$OnLayoutChangeListener = this.c;
|
||||
if (baseTransientBottomBar$OnLayoutChangeListener != null) {
|
||||
baseTransientBottomBar$OnLayoutChangeListener.a(this, i, i2, i3, i4);
|
||||
}
|
||||
}
|
||||
|
||||
void setOnAttachStateChangeListener(BaseTransientBottomBar$OnAttachStateChangeListener baseTransientBottomBar$OnAttachStateChangeListener) {
|
||||
this.d = baseTransientBottomBar$OnAttachStateChangeListener;
|
||||
}
|
||||
|
||||
void setOnLayoutChangeListener(BaseTransientBottomBar$OnLayoutChangeListener baseTransientBottomBar$OnLayoutChangeListener) {
|
||||
this.c = baseTransientBottomBar$OnLayoutChangeListener;
|
||||
}
|
||||
|
||||
protected BaseTransientBottomBar$SnackbarBaseLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.SnackbarLayout);
|
||||
if (obtainStyledAttributes.hasValue(R$styleable.SnackbarLayout_elevation)) {
|
||||
ViewCompat.b(this, obtainStyledAttributes.getDimensionPixelSize(R$styleable.SnackbarLayout_elevation, 0));
|
||||
}
|
||||
obtainStyledAttributes.recycle();
|
||||
this.a = (AccessibilityManager) context.getSystemService("accessibility");
|
||||
this.b = new AccessibilityManagerCompat.TouchExplorationStateChangeListener() { // from class: com.google.android.material.snackbar.BaseTransientBottomBar$SnackbarBaseLayout.1
|
||||
@Override // androidx.core.view.accessibility.AccessibilityManagerCompat.TouchExplorationStateChangeListener
|
||||
public void onTouchExplorationStateChanged(boolean z) {
|
||||
BaseTransientBottomBar$SnackbarBaseLayout.this.setClickableOrFocusableBasedOnAccessibility(z);
|
||||
}
|
||||
};
|
||||
AccessibilityManagerCompat.a(this.a, this.b);
|
||||
setClickableOrFocusableBasedOnAccessibility(this.a.isTouchExplorationEnabled());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public interface ContentViewCallback {
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class Snackbar$SnackbarLayout extends BaseTransientBottomBar$SnackbarBaseLayout {
|
||||
public Snackbar$SnackbarLayout(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@Override // android.widget.FrameLayout, android.view.View
|
||||
protected void onMeasure(int i, int i2) {
|
||||
super.onMeasure(i, i2);
|
||||
int childCount = getChildCount();
|
||||
int measuredWidth = (getMeasuredWidth() - getPaddingLeft()) - getPaddingRight();
|
||||
for (int i3 = 0; i3 < childCount; i3++) {
|
||||
View childAt = getChildAt(i3);
|
||||
if (childAt.getLayoutParams().width == -1) {
|
||||
childAt.measure(View.MeasureSpec.makeMeasureSpec(measuredWidth, 1073741824), View.MeasureSpec.makeMeasureSpec(childAt.getMeasuredHeight(), 1073741824));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Snackbar$SnackbarLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import com.google.android.material.R$id;
|
||||
import com.google.android.material.R$styleable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class SnackbarContentLayout extends LinearLayout implements ContentViewCallback {
|
||||
private TextView a;
|
||||
private Button b;
|
||||
private int c;
|
||||
private int d;
|
||||
|
||||
public SnackbarContentLayout(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
private boolean a(int i, int i2, int i3) {
|
||||
boolean z;
|
||||
if (i != getOrientation()) {
|
||||
setOrientation(i);
|
||||
z = true;
|
||||
} else {
|
||||
z = false;
|
||||
}
|
||||
if (this.a.getPaddingTop() == i2 && this.a.getPaddingBottom() == i3) {
|
||||
return z;
|
||||
}
|
||||
a(this.a, i2, i3);
|
||||
return true;
|
||||
}
|
||||
|
||||
public Button getActionView() {
|
||||
return this.b;
|
||||
}
|
||||
|
||||
public TextView getMessageView() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected void onFinishInflate() {
|
||||
super.onFinishInflate();
|
||||
this.a = (TextView) findViewById(R$id.snackbar_text);
|
||||
this.b = (Button) findViewById(R$id.snackbar_action);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:15:0x0053, code lost:
|
||||
|
||||
if (a(1, r0, r0 - r1) != false) goto L26;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x0061, code lost:
|
||||
|
||||
r4 = false;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:25:0x005e, code lost:
|
||||
|
||||
if (a(0, r0, r0) != false) goto L26;
|
||||
*/
|
||||
@Override // android.widget.LinearLayout, android.view.View
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
protected void onMeasure(int r8, int r9) {
|
||||
/*
|
||||
r7 = this;
|
||||
super.onMeasure(r8, r9)
|
||||
int r0 = r7.c
|
||||
if (r0 <= 0) goto L18
|
||||
int r0 = r7.getMeasuredWidth()
|
||||
int r1 = r7.c
|
||||
if (r0 <= r1) goto L18
|
||||
r8 = 1073741824(0x40000000, float:2.0)
|
||||
int r8 = android.view.View.MeasureSpec.makeMeasureSpec(r1, r8)
|
||||
super.onMeasure(r8, r9)
|
||||
L18:
|
||||
android.content.res.Resources r0 = r7.getResources()
|
||||
int r1 = com.google.android.material.R$dimen.design_snackbar_padding_vertical_2lines
|
||||
int r0 = r0.getDimensionPixelSize(r1)
|
||||
android.content.res.Resources r1 = r7.getResources()
|
||||
int r2 = com.google.android.material.R$dimen.design_snackbar_padding_vertical
|
||||
int r1 = r1.getDimensionPixelSize(r2)
|
||||
android.widget.TextView r2 = r7.a
|
||||
android.text.Layout r2 = r2.getLayout()
|
||||
int r2 = r2.getLineCount()
|
||||
r3 = 0
|
||||
r4 = 1
|
||||
if (r2 <= r4) goto L3c
|
||||
r2 = 1
|
||||
goto L3d
|
||||
L3c:
|
||||
r2 = 0
|
||||
L3d:
|
||||
if (r2 == 0) goto L56
|
||||
int r5 = r7.d
|
||||
if (r5 <= 0) goto L56
|
||||
android.widget.Button r5 = r7.b
|
||||
int r5 = r5.getMeasuredWidth()
|
||||
int r6 = r7.d
|
||||
if (r5 <= r6) goto L56
|
||||
int r1 = r0 - r1
|
||||
boolean r0 = r7.a(r4, r0, r1)
|
||||
if (r0 == 0) goto L61
|
||||
goto L62
|
||||
L56:
|
||||
if (r2 == 0) goto L59
|
||||
goto L5a
|
||||
L59:
|
||||
r0 = r1
|
||||
L5a:
|
||||
boolean r0 = r7.a(r3, r0, r0)
|
||||
if (r0 == 0) goto L61
|
||||
goto L62
|
||||
L61:
|
||||
r4 = 0
|
||||
L62:
|
||||
if (r4 == 0) goto L67
|
||||
super.onMeasure(r8, r9)
|
||||
L67:
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.snackbar.SnackbarContentLayout.onMeasure(int, int):void");
|
||||
}
|
||||
|
||||
public SnackbarContentLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R$styleable.SnackbarLayout);
|
||||
this.c = obtainStyledAttributes.getDimensionPixelSize(R$styleable.SnackbarLayout_android_maxWidth, -1);
|
||||
this.d = obtainStyledAttributes.getDimensionPixelSize(R$styleable.SnackbarLayout_maxActionInlineWidth, -1);
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
|
||||
private static void a(View view, int i, int i2) {
|
||||
if (ViewCompat.z(view)) {
|
||||
ViewCompat.a(view, ViewCompat.o(view), i, ViewCompat.n(view), i2);
|
||||
} else {
|
||||
view.setPadding(view.getPaddingLeft(), i, view.getPaddingRight(), i2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.os.Message;
|
||||
import com.google.android.gms.common.ConnectionResult;
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class SnackbarManager {
|
||||
private static SnackbarManager e;
|
||||
private final Object a = new Object();
|
||||
private final Handler b = new Handler(Looper.getMainLooper(), new Handler.Callback() { // from class: com.google.android.material.snackbar.SnackbarManager.1
|
||||
@Override // android.os.Handler.Callback
|
||||
public boolean handleMessage(Message message) {
|
||||
if (message.what != 0) {
|
||||
return false;
|
||||
}
|
||||
SnackbarManager.this.a((SnackbarRecord) message.obj);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
private SnackbarRecord c;
|
||||
private SnackbarRecord d;
|
||||
|
||||
interface Callback {
|
||||
void a(int i);
|
||||
}
|
||||
|
||||
private static class SnackbarRecord {
|
||||
final WeakReference<Callback> a;
|
||||
int b;
|
||||
boolean c;
|
||||
|
||||
boolean a(Callback callback) {
|
||||
return callback != null && this.a.get() == callback;
|
||||
}
|
||||
}
|
||||
|
||||
private SnackbarManager() {
|
||||
}
|
||||
|
||||
static SnackbarManager a() {
|
||||
if (e == null) {
|
||||
e = new SnackbarManager();
|
||||
}
|
||||
return e;
|
||||
}
|
||||
|
||||
private boolean c(Callback callback) {
|
||||
SnackbarRecord snackbarRecord = this.c;
|
||||
return snackbarRecord != null && snackbarRecord.a(callback);
|
||||
}
|
||||
|
||||
public void b(Callback callback) {
|
||||
synchronized (this.a) {
|
||||
if (c(callback) && this.c.c) {
|
||||
this.c.c = false;
|
||||
b(this.c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void a(Callback callback) {
|
||||
synchronized (this.a) {
|
||||
if (c(callback) && !this.c.c) {
|
||||
this.c.c = true;
|
||||
this.b.removeCallbacksAndMessages(this.c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void b(SnackbarRecord snackbarRecord) {
|
||||
int i = snackbarRecord.b;
|
||||
if (i == -2) {
|
||||
return;
|
||||
}
|
||||
if (i <= 0) {
|
||||
i = i == -1 ? ConnectionResult.DRIVE_EXTERNAL_STORAGE_REQUIRED : 2750;
|
||||
}
|
||||
this.b.removeCallbacksAndMessages(snackbarRecord);
|
||||
Handler handler = this.b;
|
||||
handler.sendMessageDelayed(Message.obtain(handler, 0, snackbarRecord), i);
|
||||
}
|
||||
|
||||
private boolean a(SnackbarRecord snackbarRecord, int i) {
|
||||
Callback callback = snackbarRecord.a.get();
|
||||
if (callback == null) {
|
||||
return false;
|
||||
}
|
||||
this.b.removeCallbacksAndMessages(snackbarRecord);
|
||||
callback.a(i);
|
||||
return true;
|
||||
}
|
||||
|
||||
void a(SnackbarRecord snackbarRecord) {
|
||||
synchronized (this.a) {
|
||||
if (this.c == snackbarRecord || this.d == snackbarRecord) {
|
||||
a(snackbarRecord, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.google.android.material.stateful;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import androidx.collection.SimpleArrayMap;
|
||||
import androidx.customview.view.AbsSavedState;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ExtendableSavedState extends AbsSavedState {
|
||||
public static final Parcelable.Creator<ExtendableSavedState> CREATOR = new Parcelable.ClassLoaderCreator<ExtendableSavedState>() { // from class: com.google.android.material.stateful.ExtendableSavedState.1
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public ExtendableSavedState[] newArray(int i) {
|
||||
return new ExtendableSavedState[i];
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // android.os.Parcelable.ClassLoaderCreator
|
||||
public ExtendableSavedState createFromParcel(Parcel parcel, ClassLoader classLoader) {
|
||||
return new ExtendableSavedState(parcel, classLoader);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public ExtendableSavedState createFromParcel(Parcel parcel) {
|
||||
return new ExtendableSavedState(parcel, null);
|
||||
}
|
||||
};
|
||||
public final SimpleArrayMap<String, Bundle> extendableStates;
|
||||
|
||||
public String toString() {
|
||||
return "ExtendableSavedState{" + Integer.toHexString(System.identityHashCode(this)) + " states=" + this.extendableStates + "}";
|
||||
}
|
||||
|
||||
@Override // androidx.customview.view.AbsSavedState, android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
super.writeToParcel(parcel, i);
|
||||
int size = this.extendableStates.size();
|
||||
parcel.writeInt(size);
|
||||
String[] strArr = new String[size];
|
||||
Bundle[] bundleArr = new Bundle[size];
|
||||
for (int i2 = 0; i2 < size; i2++) {
|
||||
strArr[i2] = this.extendableStates.b(i2);
|
||||
bundleArr[i2] = this.extendableStates.d(i2);
|
||||
}
|
||||
parcel.writeStringArray(strArr);
|
||||
parcel.writeTypedArray(bundleArr, 0);
|
||||
}
|
||||
|
||||
public ExtendableSavedState(Parcelable parcelable) {
|
||||
super(parcelable);
|
||||
this.extendableStates = new SimpleArrayMap<>();
|
||||
}
|
||||
|
||||
private ExtendableSavedState(Parcel parcel, ClassLoader classLoader) {
|
||||
super(parcel, classLoader);
|
||||
int readInt = parcel.readInt();
|
||||
String[] strArr = new String[readInt];
|
||||
parcel.readStringArray(strArr);
|
||||
Bundle[] bundleArr = new Bundle[readInt];
|
||||
parcel.readTypedArray(bundleArr, Bundle.CREATOR);
|
||||
this.extendableStates = new SimpleArrayMap<>(readInt);
|
||||
for (int i = 0; i < readInt; i++) {
|
||||
this.extendableStates.put(strArr[i], bundleArr[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
11
sources/com/google/android/material/tabs/TabItem.java
Normal file
11
sources/com/google/android/material/tabs/TabItem.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package com.google.android.material.tabs;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class TabItem extends View {
|
||||
public final CharSequence a;
|
||||
public final Drawable b;
|
||||
public final int c;
|
||||
}
|
||||
1717
sources/com/google/android/material/tabs/TabLayout.java
Normal file
1717
sources/com/google/android/material/tabs/TabLayout.java
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,86 @@
|
||||
package com.google.android.material.textfield;
|
||||
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.PorterDuffXfermode;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.GradientDrawable;
|
||||
import android.os.Build;
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class CutoutDrawable extends GradientDrawable {
|
||||
private final Paint a = new Paint(1);
|
||||
private final RectF b;
|
||||
private int c;
|
||||
|
||||
CutoutDrawable() {
|
||||
c();
|
||||
this.b = new RectF();
|
||||
}
|
||||
|
||||
private void c() {
|
||||
this.a.setStyle(Paint.Style.FILL_AND_STROKE);
|
||||
this.a.setColor(-1);
|
||||
this.a.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OUT));
|
||||
}
|
||||
|
||||
boolean a() {
|
||||
return !this.b.isEmpty();
|
||||
}
|
||||
|
||||
void b() {
|
||||
a(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
@Override // android.graphics.drawable.GradientDrawable, android.graphics.drawable.Drawable
|
||||
public void draw(Canvas canvas) {
|
||||
b(canvas);
|
||||
super.draw(canvas);
|
||||
canvas.drawRect(this.b, this.a);
|
||||
a(canvas);
|
||||
}
|
||||
|
||||
private void b(Canvas canvas) {
|
||||
Drawable.Callback callback = getCallback();
|
||||
if (a(callback)) {
|
||||
((View) callback).setLayerType(2, null);
|
||||
} else {
|
||||
c(canvas);
|
||||
}
|
||||
}
|
||||
|
||||
void a(float f, float f2, float f3, float f4) {
|
||||
RectF rectF = this.b;
|
||||
if (f == rectF.left && f2 == rectF.top && f3 == rectF.right && f4 == rectF.bottom) {
|
||||
return;
|
||||
}
|
||||
this.b.set(f, f2, f3, f4);
|
||||
invalidateSelf();
|
||||
}
|
||||
|
||||
private void c(Canvas canvas) {
|
||||
if (Build.VERSION.SDK_INT >= 21) {
|
||||
this.c = canvas.saveLayer(0.0f, 0.0f, canvas.getWidth(), canvas.getHeight(), null);
|
||||
} else {
|
||||
this.c = canvas.saveLayer(0.0f, 0.0f, canvas.getWidth(), canvas.getHeight(), null, 31);
|
||||
}
|
||||
}
|
||||
|
||||
void a(RectF rectF) {
|
||||
a(rectF.left, rectF.top, rectF.right, rectF.bottom);
|
||||
}
|
||||
|
||||
private void a(Canvas canvas) {
|
||||
if (a(getCallback())) {
|
||||
return;
|
||||
}
|
||||
canvas.restoreToCount(this.c);
|
||||
}
|
||||
|
||||
private boolean a(Drawable.Callback callback) {
|
||||
return callback instanceof View;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,407 @@
|
||||
package com.google.android.material.textfield;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.AnimatorSet;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.Typeface;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Property;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.appcompat.widget.AppCompatTextView;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.widget.TextViewCompat;
|
||||
import androidx.legacy.widget.Space;
|
||||
import com.google.android.material.R$dimen;
|
||||
import com.google.android.material.R$id;
|
||||
import com.google.android.material.animation.AnimationUtils;
|
||||
import com.google.android.material.animation.AnimatorSetCompat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class IndicatorViewController {
|
||||
private final Context a;
|
||||
private final TextInputLayout b;
|
||||
private LinearLayout c;
|
||||
private int d;
|
||||
private FrameLayout e;
|
||||
private int f;
|
||||
private Animator g;
|
||||
private final float h;
|
||||
private int i;
|
||||
private int j;
|
||||
private CharSequence k;
|
||||
private boolean l;
|
||||
private TextView m;
|
||||
private int n;
|
||||
private CharSequence o;
|
||||
private boolean p;
|
||||
private TextView q;
|
||||
private int r;
|
||||
private Typeface s;
|
||||
|
||||
public IndicatorViewController(TextInputLayout textInputLayout) {
|
||||
this.a = textInputLayout.getContext();
|
||||
this.b = textInputLayout;
|
||||
this.h = this.a.getResources().getDimensionPixelSize(R$dimen.design_textinput_caption_translate_y);
|
||||
}
|
||||
|
||||
private TextView d(int i) {
|
||||
if (i == 1) {
|
||||
return this.m;
|
||||
}
|
||||
if (i != 2) {
|
||||
return null;
|
||||
}
|
||||
return this.q;
|
||||
}
|
||||
|
||||
private boolean e(int i) {
|
||||
return (i != 1 || this.m == null || TextUtils.isEmpty(this.k)) ? false : true;
|
||||
}
|
||||
|
||||
private boolean m() {
|
||||
return (this.c == null || this.b.getEditText() == null) ? false : true;
|
||||
}
|
||||
|
||||
boolean a(int i) {
|
||||
return i == 0 || i == 1;
|
||||
}
|
||||
|
||||
void b(CharSequence charSequence) {
|
||||
b();
|
||||
this.o = charSequence;
|
||||
this.q.setText(charSequence);
|
||||
if (this.i != 2) {
|
||||
this.j = 2;
|
||||
}
|
||||
a(this.i, this.j, a(this.q, charSequence));
|
||||
}
|
||||
|
||||
boolean c() {
|
||||
return e(this.j);
|
||||
}
|
||||
|
||||
ColorStateList f() {
|
||||
TextView textView = this.m;
|
||||
if (textView != null) {
|
||||
return textView.getTextColors();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
CharSequence g() {
|
||||
return this.o;
|
||||
}
|
||||
|
||||
int h() {
|
||||
TextView textView = this.q;
|
||||
if (textView != null) {
|
||||
return textView.getCurrentTextColor();
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
void i() {
|
||||
this.k = null;
|
||||
b();
|
||||
if (this.i == 1) {
|
||||
if (!this.p || TextUtils.isEmpty(this.o)) {
|
||||
this.j = 0;
|
||||
} else {
|
||||
this.j = 2;
|
||||
}
|
||||
}
|
||||
a(this.i, this.j, a(this.m, (CharSequence) null));
|
||||
}
|
||||
|
||||
void j() {
|
||||
b();
|
||||
if (this.i == 2) {
|
||||
this.j = 0;
|
||||
}
|
||||
a(this.i, this.j, a(this.q, (CharSequence) null));
|
||||
}
|
||||
|
||||
boolean k() {
|
||||
return this.l;
|
||||
}
|
||||
|
||||
boolean l() {
|
||||
return this.p;
|
||||
}
|
||||
|
||||
void c(int i) {
|
||||
this.r = i;
|
||||
TextView textView = this.q;
|
||||
if (textView != null) {
|
||||
TextViewCompat.d(textView, i);
|
||||
}
|
||||
}
|
||||
|
||||
CharSequence d() {
|
||||
return this.k;
|
||||
}
|
||||
|
||||
int e() {
|
||||
TextView textView = this.m;
|
||||
if (textView != null) {
|
||||
return textView.getCurrentTextColor();
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
void a(CharSequence charSequence) {
|
||||
b();
|
||||
this.k = charSequence;
|
||||
this.m.setText(charSequence);
|
||||
if (this.i != 1) {
|
||||
this.j = 1;
|
||||
}
|
||||
a(this.i, this.j, a(this.m, charSequence));
|
||||
}
|
||||
|
||||
void b() {
|
||||
Animator animator = this.g;
|
||||
if (animator != null) {
|
||||
animator.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
void b(TextView textView, int i) {
|
||||
FrameLayout frameLayout;
|
||||
if (this.c == null) {
|
||||
return;
|
||||
}
|
||||
if (a(i) && (frameLayout = this.e) != null) {
|
||||
this.f--;
|
||||
a(frameLayout, this.f);
|
||||
this.e.removeView(textView);
|
||||
} else {
|
||||
this.c.removeView(textView);
|
||||
}
|
||||
this.d--;
|
||||
a(this.c, this.d);
|
||||
}
|
||||
|
||||
private boolean a(TextView textView, CharSequence charSequence) {
|
||||
return ViewCompat.x(this.b) && this.b.isEnabled() && !(this.j == this.i && textView != null && TextUtils.equals(textView.getText(), charSequence));
|
||||
}
|
||||
|
||||
private void a(final int i, final int i2, boolean z) {
|
||||
if (z) {
|
||||
AnimatorSet animatorSet = new AnimatorSet();
|
||||
this.g = animatorSet;
|
||||
ArrayList arrayList = new ArrayList();
|
||||
a(arrayList, this.p, this.q, 2, i, i2);
|
||||
a(arrayList, this.l, this.m, 1, i, i2);
|
||||
AnimatorSetCompat.a(animatorSet, arrayList);
|
||||
final TextView d = d(i);
|
||||
final TextView d2 = d(i2);
|
||||
animatorSet.addListener(new AnimatorListenerAdapter() { // from class: com.google.android.material.textfield.IndicatorViewController.1
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator) {
|
||||
IndicatorViewController.this.i = i2;
|
||||
IndicatorViewController.this.g = null;
|
||||
TextView textView = d;
|
||||
if (textView != null) {
|
||||
textView.setVisibility(4);
|
||||
if (i != 1 || IndicatorViewController.this.m == null) {
|
||||
return;
|
||||
}
|
||||
IndicatorViewController.this.m.setText((CharSequence) null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationStart(Animator animator) {
|
||||
TextView textView = d2;
|
||||
if (textView != null) {
|
||||
textView.setVisibility(0);
|
||||
}
|
||||
}
|
||||
});
|
||||
animatorSet.start();
|
||||
} else {
|
||||
a(i, i2);
|
||||
}
|
||||
this.b.c();
|
||||
this.b.b(z);
|
||||
this.b.d();
|
||||
}
|
||||
|
||||
void b(boolean z) {
|
||||
if (this.p == z) {
|
||||
return;
|
||||
}
|
||||
b();
|
||||
if (z) {
|
||||
this.q = new AppCompatTextView(this.a);
|
||||
this.q.setId(R$id.textinput_helper_text);
|
||||
Typeface typeface = this.s;
|
||||
if (typeface != null) {
|
||||
this.q.setTypeface(typeface);
|
||||
}
|
||||
this.q.setVisibility(4);
|
||||
ViewCompat.e((View) this.q, 1);
|
||||
c(this.r);
|
||||
a(this.q, 1);
|
||||
} else {
|
||||
j();
|
||||
b(this.q, 1);
|
||||
this.q = null;
|
||||
this.b.c();
|
||||
this.b.d();
|
||||
}
|
||||
this.p = z;
|
||||
}
|
||||
|
||||
private void a(int i, int i2) {
|
||||
TextView d;
|
||||
TextView d2;
|
||||
if (i == i2) {
|
||||
return;
|
||||
}
|
||||
if (i2 != 0 && (d2 = d(i2)) != null) {
|
||||
d2.setVisibility(0);
|
||||
d2.setAlpha(1.0f);
|
||||
}
|
||||
if (i != 0 && (d = d(i)) != null) {
|
||||
d.setVisibility(4);
|
||||
if (i == 1) {
|
||||
d.setText((CharSequence) null);
|
||||
}
|
||||
}
|
||||
this.i = i2;
|
||||
}
|
||||
|
||||
void b(int i) {
|
||||
this.n = i;
|
||||
TextView textView = this.m;
|
||||
if (textView != null) {
|
||||
this.b.a(textView, i);
|
||||
}
|
||||
}
|
||||
|
||||
private void a(List<Animator> list, boolean z, TextView textView, int i, int i2, int i3) {
|
||||
if (textView == null || !z) {
|
||||
return;
|
||||
}
|
||||
if (i == i3 || i == i2) {
|
||||
list.add(a(textView, i3 == i));
|
||||
if (i3 == i) {
|
||||
list.add(a(textView));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void b(ColorStateList colorStateList) {
|
||||
TextView textView = this.q;
|
||||
if (textView != null) {
|
||||
textView.setTextColor(colorStateList);
|
||||
}
|
||||
}
|
||||
|
||||
private ObjectAnimator a(TextView textView, boolean z) {
|
||||
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(textView, (Property<TextView, Float>) View.ALPHA, z ? 1.0f : 0.0f);
|
||||
ofFloat.setDuration(167L);
|
||||
ofFloat.setInterpolator(AnimationUtils.a);
|
||||
return ofFloat;
|
||||
}
|
||||
|
||||
private ObjectAnimator a(TextView textView) {
|
||||
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(textView, (Property<TextView, Float>) View.TRANSLATION_Y, -this.h, 0.0f);
|
||||
ofFloat.setDuration(217L);
|
||||
ofFloat.setInterpolator(AnimationUtils.d);
|
||||
return ofFloat;
|
||||
}
|
||||
|
||||
void a() {
|
||||
if (m()) {
|
||||
ViewCompat.a(this.c, ViewCompat.o(this.b.getEditText()), 0, ViewCompat.n(this.b.getEditText()), 0);
|
||||
}
|
||||
}
|
||||
|
||||
void a(TextView textView, int i) {
|
||||
if (this.c == null && this.e == null) {
|
||||
this.c = new LinearLayout(this.a);
|
||||
this.c.setOrientation(0);
|
||||
this.b.addView(this.c, -1, -2);
|
||||
this.e = new FrameLayout(this.a);
|
||||
this.c.addView(this.e, -1, new FrameLayout.LayoutParams(-2, -2));
|
||||
this.c.addView(new Space(this.a), new LinearLayout.LayoutParams(0, 0, 1.0f));
|
||||
if (this.b.getEditText() != null) {
|
||||
a();
|
||||
}
|
||||
}
|
||||
if (a(i)) {
|
||||
this.e.setVisibility(0);
|
||||
this.e.addView(textView);
|
||||
this.f++;
|
||||
} else {
|
||||
this.c.addView(textView, i);
|
||||
}
|
||||
this.c.setVisibility(0);
|
||||
this.d++;
|
||||
}
|
||||
|
||||
private void a(ViewGroup viewGroup, int i) {
|
||||
if (i == 0) {
|
||||
viewGroup.setVisibility(8);
|
||||
}
|
||||
}
|
||||
|
||||
void a(boolean z) {
|
||||
if (this.l == z) {
|
||||
return;
|
||||
}
|
||||
b();
|
||||
if (z) {
|
||||
this.m = new AppCompatTextView(this.a);
|
||||
this.m.setId(R$id.textinput_error);
|
||||
Typeface typeface = this.s;
|
||||
if (typeface != null) {
|
||||
this.m.setTypeface(typeface);
|
||||
}
|
||||
b(this.n);
|
||||
this.m.setVisibility(4);
|
||||
ViewCompat.e((View) this.m, 1);
|
||||
a(this.m, 0);
|
||||
} else {
|
||||
i();
|
||||
b(this.m, 0);
|
||||
this.m = null;
|
||||
this.b.c();
|
||||
this.b.d();
|
||||
}
|
||||
this.l = z;
|
||||
}
|
||||
|
||||
void a(Typeface typeface) {
|
||||
if (typeface != this.s) {
|
||||
this.s = typeface;
|
||||
a(this.m, typeface);
|
||||
a(this.q, typeface);
|
||||
}
|
||||
}
|
||||
|
||||
private void a(TextView textView, Typeface typeface) {
|
||||
if (textView != null) {
|
||||
textView.setTypeface(typeface);
|
||||
}
|
||||
}
|
||||
|
||||
void a(ColorStateList colorStateList) {
|
||||
TextView textView = this.m;
|
||||
if (textView != null) {
|
||||
textView.setTextColor(colorStateList);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.google.android.material.textfield;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewParent;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
import androidx.appcompat.widget.AppCompatEditText;
|
||||
import com.google.android.material.R$attr;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class TextInputEditText extends AppCompatEditText {
|
||||
public TextInputEditText(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
private CharSequence getHintFromLayout() {
|
||||
TextInputLayout textInputLayout = getTextInputLayout();
|
||||
if (textInputLayout != null) {
|
||||
return textInputLayout.getHint();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private TextInputLayout getTextInputLayout() {
|
||||
for (ViewParent parent = getParent(); parent instanceof View; parent = parent.getParent()) {
|
||||
if (parent instanceof TextInputLayout) {
|
||||
return (TextInputLayout) parent;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public CharSequence getHint() {
|
||||
TextInputLayout textInputLayout = getTextInputLayout();
|
||||
return (textInputLayout == null || !textInputLayout.b()) ? super.getHint() : textInputLayout.getHint();
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatEditText, android.widget.TextView, android.view.View
|
||||
public InputConnection onCreateInputConnection(EditorInfo editorInfo) {
|
||||
InputConnection onCreateInputConnection = super.onCreateInputConnection(editorInfo);
|
||||
if (onCreateInputConnection != null && editorInfo.hintText == null) {
|
||||
editorInfo.hintText = getHintFromLayout();
|
||||
}
|
||||
return onCreateInputConnection;
|
||||
}
|
||||
|
||||
public TextInputEditText(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, R$attr.editTextStyle);
|
||||
}
|
||||
|
||||
public TextInputEditText(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
}
|
||||
}
|
||||
1376
sources/com/google/android/material/textfield/TextInputLayout.java
Normal file
1376
sources/com/google/android/material/textfield/TextInputLayout.java
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,17 @@
|
||||
package com.google.android.material.theme;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import androidx.annotation.Keep;
|
||||
import androidx.appcompat.app.AppCompatViewInflater;
|
||||
import androidx.appcompat.widget.AppCompatButton;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
|
||||
@Keep
|
||||
/* loaded from: classes.dex */
|
||||
public class MaterialComponentsViewInflater extends AppCompatViewInflater {
|
||||
@Override // androidx.appcompat.app.AppCompatViewInflater
|
||||
protected AppCompatButton createButton(Context context, AttributeSet attributeSet) {
|
||||
return new MaterialButton(context, attributeSet);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.google.android.material.transformation;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewTreeObserver;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import com.google.android.material.expandable.ExpandableWidget;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class ExpandableBehavior extends CoordinatorLayout.Behavior<View> {
|
||||
private int a;
|
||||
|
||||
public ExpandableBehavior() {
|
||||
this.a = 0;
|
||||
}
|
||||
|
||||
protected abstract boolean a(View view, View view2, boolean z, boolean z2);
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean b(CoordinatorLayout coordinatorLayout, View view, View view2) {
|
||||
ExpandableWidget expandableWidget = (ExpandableWidget) view2;
|
||||
if (!a(expandableWidget.isExpanded())) {
|
||||
return false;
|
||||
}
|
||||
this.a = expandableWidget.isExpanded() ? 1 : 2;
|
||||
return a((View) expandableWidget, view, expandableWidget.isExpanded(), true);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
protected ExpandableWidget e(CoordinatorLayout coordinatorLayout, View view) {
|
||||
List<View> b = coordinatorLayout.b(view);
|
||||
int size = b.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
View view2 = b.get(i);
|
||||
if (a(coordinatorLayout, (CoordinatorLayout) view, view2)) {
|
||||
return (ExpandableWidget) view2;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, final View view, int i) {
|
||||
final ExpandableWidget e;
|
||||
if (ViewCompat.x(view) || (e = e(coordinatorLayout, view)) == null || !a(e.isExpanded())) {
|
||||
return false;
|
||||
}
|
||||
this.a = e.isExpanded() ? 1 : 2;
|
||||
final int i2 = this.a;
|
||||
view.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() { // from class: com.google.android.material.transformation.ExpandableBehavior.1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // android.view.ViewTreeObserver.OnPreDrawListener
|
||||
public boolean onPreDraw() {
|
||||
view.getViewTreeObserver().removeOnPreDrawListener(this);
|
||||
if (ExpandableBehavior.this.a == i2) {
|
||||
ExpandableBehavior expandableBehavior = ExpandableBehavior.this;
|
||||
ExpandableWidget expandableWidget = e;
|
||||
expandableBehavior.a((View) expandableWidget, view, expandableWidget.isExpanded(), false);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
public ExpandableBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.a = 0;
|
||||
}
|
||||
|
||||
private boolean a(boolean z) {
|
||||
if (!z) {
|
||||
return this.a == 1;
|
||||
}
|
||||
int i = this.a;
|
||||
return i == 0 || i == 2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.google.android.material.transformation;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.AnimatorSet;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class ExpandableTransformationBehavior extends ExpandableBehavior {
|
||||
private AnimatorSet b;
|
||||
|
||||
public ExpandableTransformationBehavior() {
|
||||
}
|
||||
|
||||
protected abstract AnimatorSet b(View view, View view2, boolean z, boolean z2);
|
||||
|
||||
public ExpandableTransformationBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.transformation.ExpandableBehavior
|
||||
protected boolean a(View view, View view2, boolean z, boolean z2) {
|
||||
boolean z3 = this.b != null;
|
||||
if (z3) {
|
||||
this.b.cancel();
|
||||
}
|
||||
this.b = b(view, view2, z, z3);
|
||||
this.b.addListener(new AnimatorListenerAdapter() { // from class: com.google.android.material.transformation.ExpandableTransformationBehavior.1
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator) {
|
||||
ExpandableTransformationBehavior.this.b = null;
|
||||
}
|
||||
});
|
||||
this.b.start();
|
||||
if (!z2) {
|
||||
this.b.end();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,457 @@
|
||||
package com.google.android.material.transformation;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.AnimatorSet;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Build;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Property;
|
||||
import android.view.View;
|
||||
import android.view.ViewAnimationUtils;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import com.google.android.material.R$id;
|
||||
import com.google.android.material.animation.AnimationUtils;
|
||||
import com.google.android.material.animation.AnimatorSetCompat;
|
||||
import com.google.android.material.animation.ArgbEvaluatorCompat;
|
||||
import com.google.android.material.animation.ChildrenAlphaProperty;
|
||||
import com.google.android.material.animation.DrawableAlphaProperty;
|
||||
import com.google.android.material.animation.MotionSpec;
|
||||
import com.google.android.material.animation.MotionTiming;
|
||||
import com.google.android.material.animation.Positioning;
|
||||
import com.google.android.material.circularreveal.CircularRevealCompat;
|
||||
import com.google.android.material.circularreveal.CircularRevealHelper;
|
||||
import com.google.android.material.circularreveal.CircularRevealWidget;
|
||||
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
||||
import com.google.android.material.math.MathUtils;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class FabTransformationBehavior extends ExpandableTransformationBehavior {
|
||||
private final Rect c;
|
||||
private final RectF d;
|
||||
private final RectF e;
|
||||
private final int[] f;
|
||||
|
||||
protected static class FabTransformationSpec {
|
||||
public MotionSpec a;
|
||||
public Positioning b;
|
||||
|
||||
protected FabTransformationSpec() {
|
||||
}
|
||||
}
|
||||
|
||||
public FabTransformationBehavior() {
|
||||
this.c = new Rect();
|
||||
this.d = new RectF();
|
||||
this.e = new RectF();
|
||||
this.f = new int[2];
|
||||
}
|
||||
|
||||
@TargetApi(21)
|
||||
private void c(View view, View view2, boolean z, boolean z2, FabTransformationSpec fabTransformationSpec, List<Animator> list, List<Animator.AnimatorListener> list2) {
|
||||
ObjectAnimator ofFloat;
|
||||
float g = ViewCompat.g(view2) - ViewCompat.g(view);
|
||||
if (z) {
|
||||
if (!z2) {
|
||||
view2.setTranslationZ(-g);
|
||||
}
|
||||
ofFloat = ObjectAnimator.ofFloat(view2, (Property<View, Float>) View.TRANSLATION_Z, 0.0f);
|
||||
} else {
|
||||
ofFloat = ObjectAnimator.ofFloat(view2, (Property<View, Float>) View.TRANSLATION_Z, -g);
|
||||
}
|
||||
fabTransformationSpec.a.a("elevation").a((Animator) ofFloat);
|
||||
list.add(ofFloat);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
private void d(View view, final View view2, boolean z, boolean z2, FabTransformationSpec fabTransformationSpec, List<Animator> list, List<Animator.AnimatorListener> list2) {
|
||||
ObjectAnimator ofInt;
|
||||
if ((view2 instanceof CircularRevealWidget) && (view instanceof ImageView)) {
|
||||
final CircularRevealWidget circularRevealWidget = (CircularRevealWidget) view2;
|
||||
final Drawable drawable = ((ImageView) view).getDrawable();
|
||||
if (drawable == null) {
|
||||
return;
|
||||
}
|
||||
drawable.mutate();
|
||||
if (z) {
|
||||
if (!z2) {
|
||||
drawable.setAlpha(255);
|
||||
}
|
||||
ofInt = ObjectAnimator.ofInt(drawable, DrawableAlphaProperty.b, 0);
|
||||
} else {
|
||||
ofInt = ObjectAnimator.ofInt(drawable, DrawableAlphaProperty.b, 255);
|
||||
}
|
||||
ofInt.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(this) { // from class: com.google.android.material.transformation.FabTransformationBehavior.2
|
||||
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
||||
public void onAnimationUpdate(ValueAnimator valueAnimator) {
|
||||
view2.invalidate();
|
||||
}
|
||||
});
|
||||
fabTransformationSpec.a.a("iconFade").a((Animator) ofInt);
|
||||
list.add(ofInt);
|
||||
list2.add(new AnimatorListenerAdapter(this) { // from class: com.google.android.material.transformation.FabTransformationBehavior.3
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator) {
|
||||
circularRevealWidget.setCircularRevealOverlayDrawable(null);
|
||||
}
|
||||
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationStart(Animator animator) {
|
||||
circularRevealWidget.setCircularRevealOverlayDrawable(drawable);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract FabTransformationSpec a(Context context, boolean z);
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, View view, View view2) {
|
||||
if (view.getVisibility() == 8) {
|
||||
throw new IllegalStateException("This behavior cannot be attached to a GONE view. Set the view to INVISIBLE instead.");
|
||||
}
|
||||
if (!(view2 instanceof FloatingActionButton)) {
|
||||
return false;
|
||||
}
|
||||
int expandedComponentIdHint = ((FloatingActionButton) view2).getExpandedComponentIdHint();
|
||||
return expandedComponentIdHint == 0 || expandedComponentIdHint == view.getId();
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.transformation.ExpandableTransformationBehavior
|
||||
protected AnimatorSet b(final View view, final View view2, final boolean z, boolean z2) {
|
||||
FabTransformationSpec a = a(view2.getContext(), z);
|
||||
ArrayList arrayList = new ArrayList();
|
||||
ArrayList arrayList2 = new ArrayList();
|
||||
if (Build.VERSION.SDK_INT >= 21) {
|
||||
c(view, view2, z, z2, a, arrayList, arrayList2);
|
||||
}
|
||||
RectF rectF = this.d;
|
||||
a(view, view2, z, z2, a, arrayList, arrayList2, rectF);
|
||||
float width = rectF.width();
|
||||
float height = rectF.height();
|
||||
d(view, view2, z, z2, a, arrayList, arrayList2);
|
||||
a(view, view2, z, z2, a, width, height, arrayList, arrayList2);
|
||||
b(view, view2, z, z2, a, arrayList, arrayList2);
|
||||
a(view, view2, z, z2, a, arrayList, arrayList2);
|
||||
AnimatorSet animatorSet = new AnimatorSet();
|
||||
AnimatorSetCompat.a(animatorSet, arrayList);
|
||||
animatorSet.addListener(new AnimatorListenerAdapter(this) { // from class: com.google.android.material.transformation.FabTransformationBehavior.1
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator) {
|
||||
if (z) {
|
||||
return;
|
||||
}
|
||||
view2.setVisibility(4);
|
||||
view.setAlpha(1.0f);
|
||||
view.setVisibility(0);
|
||||
}
|
||||
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationStart(Animator animator) {
|
||||
if (z) {
|
||||
view2.setVisibility(0);
|
||||
view.setAlpha(0.0f);
|
||||
view.setVisibility(4);
|
||||
}
|
||||
}
|
||||
});
|
||||
int size = arrayList2.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
animatorSet.addListener(arrayList2.get(i));
|
||||
}
|
||||
return animatorSet;
|
||||
}
|
||||
|
||||
public FabTransformationBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.c = new Rect();
|
||||
this.d = new RectF();
|
||||
this.e = new RectF();
|
||||
this.f = new int[2];
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public void a(CoordinatorLayout.LayoutParams layoutParams) {
|
||||
if (layoutParams.h == 0) {
|
||||
layoutParams.h = 80;
|
||||
}
|
||||
}
|
||||
|
||||
private float c(View view, View view2, Positioning positioning) {
|
||||
float centerX;
|
||||
float centerX2;
|
||||
float f;
|
||||
RectF rectF = this.d;
|
||||
RectF rectF2 = this.e;
|
||||
a(view, rectF);
|
||||
a(view2, rectF2);
|
||||
int i = positioning.a & 7;
|
||||
if (i == 1) {
|
||||
centerX = rectF2.centerX();
|
||||
centerX2 = rectF.centerX();
|
||||
} else if (i == 3) {
|
||||
centerX = rectF2.left;
|
||||
centerX2 = rectF.left;
|
||||
} else if (i == 5) {
|
||||
centerX = rectF2.right;
|
||||
centerX2 = rectF.right;
|
||||
} else {
|
||||
f = 0.0f;
|
||||
return f + positioning.b;
|
||||
}
|
||||
f = centerX - centerX2;
|
||||
return f + positioning.b;
|
||||
}
|
||||
|
||||
private void a(View view, View view2, boolean z, boolean z2, FabTransformationSpec fabTransformationSpec, List<Animator> list, List<Animator.AnimatorListener> list2, RectF rectF) {
|
||||
MotionTiming a;
|
||||
MotionTiming a2;
|
||||
ObjectAnimator ofFloat;
|
||||
ObjectAnimator ofFloat2;
|
||||
float c = c(view, view2, fabTransformationSpec.b);
|
||||
float d = d(view, view2, fabTransformationSpec.b);
|
||||
if (c == 0.0f || d == 0.0f) {
|
||||
a = fabTransformationSpec.a.a("translationXLinear");
|
||||
a2 = fabTransformationSpec.a.a("translationYLinear");
|
||||
} else if ((z && d < 0.0f) || (!z && d > 0.0f)) {
|
||||
a = fabTransformationSpec.a.a("translationXCurveUpwards");
|
||||
a2 = fabTransformationSpec.a.a("translationYCurveUpwards");
|
||||
} else {
|
||||
a = fabTransformationSpec.a.a("translationXCurveDownwards");
|
||||
a2 = fabTransformationSpec.a.a("translationYCurveDownwards");
|
||||
}
|
||||
MotionTiming motionTiming = a;
|
||||
MotionTiming motionTiming2 = a2;
|
||||
if (z) {
|
||||
if (!z2) {
|
||||
view2.setTranslationX(-c);
|
||||
view2.setTranslationY(-d);
|
||||
}
|
||||
ofFloat = ObjectAnimator.ofFloat(view2, (Property<View, Float>) View.TRANSLATION_X, 0.0f);
|
||||
ofFloat2 = ObjectAnimator.ofFloat(view2, (Property<View, Float>) View.TRANSLATION_Y, 0.0f);
|
||||
a(view2, fabTransformationSpec, motionTiming, motionTiming2, -c, -d, 0.0f, 0.0f, rectF);
|
||||
} else {
|
||||
ofFloat = ObjectAnimator.ofFloat(view2, (Property<View, Float>) View.TRANSLATION_X, -c);
|
||||
ofFloat2 = ObjectAnimator.ofFloat(view2, (Property<View, Float>) View.TRANSLATION_Y, -d);
|
||||
}
|
||||
motionTiming.a((Animator) ofFloat);
|
||||
motionTiming2.a((Animator) ofFloat2);
|
||||
list.add(ofFloat);
|
||||
list.add(ofFloat2);
|
||||
}
|
||||
|
||||
private float d(View view, View view2, Positioning positioning) {
|
||||
float centerY;
|
||||
float centerY2;
|
||||
float f;
|
||||
RectF rectF = this.d;
|
||||
RectF rectF2 = this.e;
|
||||
a(view, rectF);
|
||||
a(view2, rectF2);
|
||||
int i = positioning.a & 112;
|
||||
if (i == 16) {
|
||||
centerY = rectF2.centerY();
|
||||
centerY2 = rectF.centerY();
|
||||
} else if (i == 48) {
|
||||
centerY = rectF2.top;
|
||||
centerY2 = rectF.top;
|
||||
} else if (i == 80) {
|
||||
centerY = rectF2.bottom;
|
||||
centerY2 = rectF.bottom;
|
||||
} else {
|
||||
f = 0.0f;
|
||||
return f + positioning.c;
|
||||
}
|
||||
f = centerY - centerY2;
|
||||
return f + positioning.c;
|
||||
}
|
||||
|
||||
private ViewGroup c(View view) {
|
||||
if (view instanceof ViewGroup) {
|
||||
return (ViewGroup) view;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
private void b(View view, View view2, boolean z, boolean z2, FabTransformationSpec fabTransformationSpec, List<Animator> list, List<Animator.AnimatorListener> list2) {
|
||||
ObjectAnimator ofInt;
|
||||
if (view2 instanceof CircularRevealWidget) {
|
||||
CircularRevealWidget circularRevealWidget = (CircularRevealWidget) view2;
|
||||
int b = b(view);
|
||||
int i = 16777215 & b;
|
||||
if (z) {
|
||||
if (!z2) {
|
||||
circularRevealWidget.setCircularRevealScrimColor(b);
|
||||
}
|
||||
ofInt = ObjectAnimator.ofInt(circularRevealWidget, CircularRevealWidget.CircularRevealScrimColorProperty.a, i);
|
||||
} else {
|
||||
ofInt = ObjectAnimator.ofInt(circularRevealWidget, CircularRevealWidget.CircularRevealScrimColorProperty.a, b);
|
||||
}
|
||||
ofInt.setEvaluator(ArgbEvaluatorCompat.a());
|
||||
fabTransformationSpec.a.a("color").a((Animator) ofInt);
|
||||
list.add(ofInt);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
private void a(View view, View view2, boolean z, boolean z2, FabTransformationSpec fabTransformationSpec, float f, float f2, List<Animator> list, List<Animator.AnimatorListener> list2) {
|
||||
Animator animator;
|
||||
if (view2 instanceof CircularRevealWidget) {
|
||||
final CircularRevealWidget circularRevealWidget = (CircularRevealWidget) view2;
|
||||
float a = a(view, view2, fabTransformationSpec.b);
|
||||
float b = b(view, view2, fabTransformationSpec.b);
|
||||
((FloatingActionButton) view).a(this.c);
|
||||
float width = this.c.width() / 2.0f;
|
||||
MotionTiming a2 = fabTransformationSpec.a.a("expansion");
|
||||
if (z) {
|
||||
if (!z2) {
|
||||
circularRevealWidget.setRevealInfo(new CircularRevealWidget.RevealInfo(a, b, width));
|
||||
}
|
||||
if (z2) {
|
||||
width = circularRevealWidget.getRevealInfo().c;
|
||||
}
|
||||
animator = CircularRevealCompat.a(circularRevealWidget, a, b, MathUtils.a(a, b, 0.0f, 0.0f, f, f2));
|
||||
animator.addListener(new AnimatorListenerAdapter(this) { // from class: com.google.android.material.transformation.FabTransformationBehavior.4
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator2) {
|
||||
CircularRevealWidget.RevealInfo revealInfo = circularRevealWidget.getRevealInfo();
|
||||
revealInfo.c = Float.MAX_VALUE;
|
||||
circularRevealWidget.setRevealInfo(revealInfo);
|
||||
}
|
||||
});
|
||||
a(view2, a2.a(), (int) a, (int) b, width, list);
|
||||
} else {
|
||||
float f3 = circularRevealWidget.getRevealInfo().c;
|
||||
Animator a3 = CircularRevealCompat.a(circularRevealWidget, a, b, width);
|
||||
int i = (int) a;
|
||||
int i2 = (int) b;
|
||||
a(view2, a2.a(), i, i2, f3, list);
|
||||
a(view2, a2.a(), a2.b(), fabTransformationSpec.a.a(), i, i2, width, list);
|
||||
animator = a3;
|
||||
}
|
||||
a2.a(animator);
|
||||
list.add(animator);
|
||||
list2.add(CircularRevealCompat.a(circularRevealWidget));
|
||||
}
|
||||
}
|
||||
|
||||
private float b(View view, View view2, Positioning positioning) {
|
||||
RectF rectF = this.d;
|
||||
RectF rectF2 = this.e;
|
||||
a(view, rectF);
|
||||
a(view2, rectF2);
|
||||
rectF2.offset(0.0f, -d(view, view2, positioning));
|
||||
return rectF.centerY() - rectF2.top;
|
||||
}
|
||||
|
||||
private int b(View view) {
|
||||
ColorStateList c = ViewCompat.c(view);
|
||||
if (c != null) {
|
||||
return c.getColorForState(view.getDrawableState(), c.getDefaultColor());
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private void a(View view, View view2, boolean z, boolean z2, FabTransformationSpec fabTransformationSpec, List<Animator> list, List<Animator.AnimatorListener> list2) {
|
||||
ViewGroup a;
|
||||
ObjectAnimator ofFloat;
|
||||
if (view2 instanceof ViewGroup) {
|
||||
if (((view2 instanceof CircularRevealWidget) && CircularRevealHelper.a == 0) || (a = a(view2)) == null) {
|
||||
return;
|
||||
}
|
||||
if (z) {
|
||||
if (!z2) {
|
||||
ChildrenAlphaProperty.a.set(a, Float.valueOf(0.0f));
|
||||
}
|
||||
ofFloat = ObjectAnimator.ofFloat(a, ChildrenAlphaProperty.a, 1.0f);
|
||||
} else {
|
||||
ofFloat = ObjectAnimator.ofFloat(a, ChildrenAlphaProperty.a, 0.0f);
|
||||
}
|
||||
fabTransformationSpec.a.a("contentFade").a((Animator) ofFloat);
|
||||
list.add(ofFloat);
|
||||
}
|
||||
}
|
||||
|
||||
private void a(View view, RectF rectF) {
|
||||
rectF.set(0.0f, 0.0f, view.getWidth(), view.getHeight());
|
||||
view.getLocationInWindow(this.f);
|
||||
rectF.offsetTo(r0[0], r0[1]);
|
||||
rectF.offset((int) (-view.getTranslationX()), (int) (-view.getTranslationY()));
|
||||
}
|
||||
|
||||
private float a(View view, View view2, Positioning positioning) {
|
||||
RectF rectF = this.d;
|
||||
RectF rectF2 = this.e;
|
||||
a(view, rectF);
|
||||
a(view2, rectF2);
|
||||
rectF2.offset(-c(view, view2, positioning), 0.0f);
|
||||
return rectF.centerX() - rectF2.left;
|
||||
}
|
||||
|
||||
private void a(View view, FabTransformationSpec fabTransformationSpec, MotionTiming motionTiming, MotionTiming motionTiming2, float f, float f2, float f3, float f4, RectF rectF) {
|
||||
float a = a(fabTransformationSpec, motionTiming, f, f3);
|
||||
float a2 = a(fabTransformationSpec, motionTiming2, f2, f4);
|
||||
Rect rect = this.c;
|
||||
view.getWindowVisibleDisplayFrame(rect);
|
||||
RectF rectF2 = this.d;
|
||||
rectF2.set(rect);
|
||||
RectF rectF3 = this.e;
|
||||
a(view, rectF3);
|
||||
rectF3.offset(a, a2);
|
||||
rectF3.intersect(rectF2);
|
||||
rectF.set(rectF3);
|
||||
}
|
||||
|
||||
private float a(FabTransformationSpec fabTransformationSpec, MotionTiming motionTiming, float f, float f2) {
|
||||
long a = motionTiming.a();
|
||||
long b = motionTiming.b();
|
||||
MotionTiming a2 = fabTransformationSpec.a.a("expansion");
|
||||
return AnimationUtils.a(f, f2, motionTiming.c().getInterpolation((((a2.a() + a2.b()) + 17) - a) / b));
|
||||
}
|
||||
|
||||
private ViewGroup a(View view) {
|
||||
View findViewById = view.findViewById(R$id.mtrl_child_content_container);
|
||||
if (findViewById != null) {
|
||||
return c(findViewById);
|
||||
}
|
||||
if (!(view instanceof TransformationChildLayout) && !(view instanceof TransformationChildCard)) {
|
||||
return c(view);
|
||||
}
|
||||
return c(((ViewGroup) view).getChildAt(0));
|
||||
}
|
||||
|
||||
private void a(View view, long j, int i, int i2, float f, List<Animator> list) {
|
||||
if (Build.VERSION.SDK_INT < 21 || j <= 0) {
|
||||
return;
|
||||
}
|
||||
Animator createCircularReveal = ViewAnimationUtils.createCircularReveal(view, i, i2, f, f);
|
||||
createCircularReveal.setStartDelay(0L);
|
||||
createCircularReveal.setDuration(j);
|
||||
list.add(createCircularReveal);
|
||||
}
|
||||
|
||||
private void a(View view, long j, long j2, long j3, int i, int i2, float f, List<Animator> list) {
|
||||
if (Build.VERSION.SDK_INT >= 21) {
|
||||
long j4 = j + j2;
|
||||
if (j4 < j3) {
|
||||
Animator createCircularReveal = ViewAnimationUtils.createCircularReveal(view, i, i2, f, f);
|
||||
createCircularReveal.setStartDelay(j4);
|
||||
createCircularReveal.setDuration(j3 - j4);
|
||||
list.add(createCircularReveal);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.google.android.material.transformation;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.AnimatorSet;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Property;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import com.google.android.material.animation.AnimatorSetCompat;
|
||||
import com.google.android.material.animation.MotionTiming;
|
||||
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class FabTransformationScrimBehavior extends ExpandableTransformationBehavior {
|
||||
private final MotionTiming c;
|
||||
private final MotionTiming d;
|
||||
|
||||
public FabTransformationScrimBehavior() {
|
||||
this.c = new MotionTiming(75L, 150L);
|
||||
this.d = new MotionTiming(0L, 150L);
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean a(CoordinatorLayout coordinatorLayout, View view, View view2) {
|
||||
return view2 instanceof FloatingActionButton;
|
||||
}
|
||||
|
||||
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
|
||||
public boolean b(CoordinatorLayout coordinatorLayout, View view, MotionEvent motionEvent) {
|
||||
return super.b(coordinatorLayout, (CoordinatorLayout) view, motionEvent);
|
||||
}
|
||||
|
||||
private void a(View view, boolean z, boolean z2, List<Animator> list, List<Animator.AnimatorListener> list2) {
|
||||
ObjectAnimator ofFloat;
|
||||
MotionTiming motionTiming = z ? this.c : this.d;
|
||||
if (z) {
|
||||
if (!z2) {
|
||||
view.setAlpha(0.0f);
|
||||
}
|
||||
ofFloat = ObjectAnimator.ofFloat(view, (Property<View, Float>) View.ALPHA, 1.0f);
|
||||
} else {
|
||||
ofFloat = ObjectAnimator.ofFloat(view, (Property<View, Float>) View.ALPHA, 0.0f);
|
||||
}
|
||||
motionTiming.a((Animator) ofFloat);
|
||||
list.add(ofFloat);
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.transformation.ExpandableTransformationBehavior
|
||||
protected AnimatorSet b(View view, final View view2, final boolean z, boolean z2) {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
a(view2, z, z2, arrayList, new ArrayList());
|
||||
AnimatorSet animatorSet = new AnimatorSet();
|
||||
AnimatorSetCompat.a(animatorSet, arrayList);
|
||||
animatorSet.addListener(new AnimatorListenerAdapter(this) { // from class: com.google.android.material.transformation.FabTransformationScrimBehavior.1
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationEnd(Animator animator) {
|
||||
if (z) {
|
||||
return;
|
||||
}
|
||||
view2.setVisibility(4);
|
||||
}
|
||||
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public void onAnimationStart(Animator animator) {
|
||||
if (z) {
|
||||
view2.setVisibility(0);
|
||||
}
|
||||
}
|
||||
});
|
||||
return animatorSet;
|
||||
}
|
||||
|
||||
public FabTransformationScrimBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.c = new MotionTiming(75L, 150L);
|
||||
this.d = new MotionTiming(0L, 150L);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.google.android.material.transformation;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Build;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewParent;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import com.google.android.material.R$animator;
|
||||
import com.google.android.material.animation.MotionSpec;
|
||||
import com.google.android.material.animation.Positioning;
|
||||
import com.google.android.material.transformation.FabTransformationBehavior;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class FabTransformationSheetBehavior extends FabTransformationBehavior {
|
||||
private Map<View, Integer> g;
|
||||
|
||||
public FabTransformationSheetBehavior() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.transformation.FabTransformationBehavior
|
||||
protected FabTransformationBehavior.FabTransformationSpec a(Context context, boolean z) {
|
||||
int i = z ? R$animator.mtrl_fab_transformation_sheet_expand_spec : R$animator.mtrl_fab_transformation_sheet_collapse_spec;
|
||||
FabTransformationBehavior.FabTransformationSpec fabTransformationSpec = new FabTransformationBehavior.FabTransformationSpec();
|
||||
fabTransformationSpec.a = MotionSpec.a(context, i);
|
||||
fabTransformationSpec.b = new Positioning(17, 0.0f, 0.0f);
|
||||
return fabTransformationSpec;
|
||||
}
|
||||
|
||||
public FabTransformationSheetBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.transformation.ExpandableTransformationBehavior, com.google.android.material.transformation.ExpandableBehavior
|
||||
protected boolean a(View view, View view2, boolean z, boolean z2) {
|
||||
a(view2, z);
|
||||
return super.a(view, view2, z, z2);
|
||||
}
|
||||
|
||||
private void a(View view, boolean z) {
|
||||
ViewParent parent = view.getParent();
|
||||
if (parent instanceof CoordinatorLayout) {
|
||||
CoordinatorLayout coordinatorLayout = (CoordinatorLayout) parent;
|
||||
int childCount = coordinatorLayout.getChildCount();
|
||||
if (Build.VERSION.SDK_INT >= 16 && z) {
|
||||
this.g = new HashMap(childCount);
|
||||
}
|
||||
for (int i = 0; i < childCount; i++) {
|
||||
View childAt = coordinatorLayout.getChildAt(i);
|
||||
boolean z2 = (childAt.getLayoutParams() instanceof CoordinatorLayout.LayoutParams) && (((CoordinatorLayout.LayoutParams) childAt.getLayoutParams()).d() instanceof FabTransformationScrimBehavior);
|
||||
if (childAt != view && !z2) {
|
||||
if (!z) {
|
||||
Map<View, Integer> map = this.g;
|
||||
if (map != null && map.containsKey(childAt)) {
|
||||
ViewCompat.f(childAt, this.g.get(childAt).intValue());
|
||||
}
|
||||
} else {
|
||||
if (Build.VERSION.SDK_INT >= 16) {
|
||||
this.g.put(childAt, Integer.valueOf(childAt.getImportantForAccessibility()));
|
||||
}
|
||||
ViewCompat.f(childAt, 4);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (z) {
|
||||
return;
|
||||
}
|
||||
this.g = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.google.android.material.transformation;
|
||||
|
||||
import com.google.android.material.circularreveal.cardview.CircularRevealCardView;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class TransformationChildCard extends CircularRevealCardView {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.google.android.material.transformation;
|
||||
|
||||
import com.google.android.material.circularreveal.CircularRevealFrameLayout;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class TransformationChildLayout extends CircularRevealFrameLayout {
|
||||
}
|
||||
Reference in New Issue
Block a user