2087 Commits

Author SHA1 Message Date
leticiars
73bf653ef2 Automated g4 rollback of changelist 372177002
PiperOrigin-RevId: 372384266
2021-05-07 12:16:55 -04:00
conradchen
5d092b75a6 [Color] Internal change
PiperOrigin-RevId: 372355438
2021-05-07 12:14:33 -04:00
leticiars
66b0c98a27 [TextInputLayout] Fixed cutout padding so text field outline doesn't overlap collapsed hint.
Resolves https://github.com/material-components/material-components-android/issues/2127

PiperOrigin-RevId: 372177002
2021-05-05 15:41:30 -04:00
dniz
f0ce498108 [CollapsingToolbarLayout] Added title line spacing and hyphenation frequency setters
PiperOrigin-RevId: 371920600
2021-05-05 09:40:38 -04:00
raajkumars
c5c7a74cef [MaterialButton] Updated Material Button style to set the preferred maximum width to 320dp.
PiperOrigin-RevId: 371151853
2021-04-29 14:53:13 -04:00
raajkumars
95da70589c [Catalog][Dialog] Removed full width button style and related dialog themes. Updated catalog dialog demo to showcase how to create dialogs with full width buttons.
PiperOrigin-RevId: 371146951
2021-04-29 14:52:19 -04:00
dniz
2c557b6833 [Elevation] Added elevation overlay accent color option
PiperOrigin-RevId: 371106569
2021-04-29 14:51:28 -04:00
haodong
0ed7c7675e [BottomAppBar] Adding the attr to set the color of navigation icon.
PiperOrigin-RevId: 370999656
2021-04-29 14:49:59 -04:00
hunterstich
586d5543e2 [AppBarLayout] Added compress scroll effect.
PiperOrigin-RevId: 370090494
2021-04-23 14:49:12 -04:00
dniz
0ad429db2a [TextAppearance] Updated TextAppearance to load font synchronously if its cached. Also updates lib to depend on 1.5.0-rc01 for the ResourcesCompat#getCachedFont method.
Used by CollapsingToolbarLayout, TextInputLayout, Chip, Badge, and Tooltip

PiperOrigin-RevId: 370071817
2021-04-23 14:40:21 -04:00
dniz
d2c7b719ce [Color] Added dimen resource for opacity of disabled background colors
PiperOrigin-RevId: 369736358
2021-04-22 14:55:55 -04:00
conradchen
b38a09f93e Automated g4 rollback of changelist 369683837
PiperOrigin-RevId: 369704013
2021-04-22 14:53:14 -04:00
Material Design Team
3891ca6c57 Automated g4 rollback of changelist 369658517
PiperOrigin-RevId: 369683837
2021-04-21 14:46:06 -04:00
conradchen
f617557ff9 [Color] Fix elevation overlay on time pickers
PiperOrigin-RevId: 369658517
2021-04-21 14:44:36 -04:00
nickrout
95a769c373 [Documentation] Improving navigation rail documentation.
PiperOrigin-RevId: 369436073
2021-04-20 15:18:22 -04:00
raajkumars
cd9e6204d8 [Dialog] Added support for full width buttons in dialogs.
PiperOrigin-RevId: 368853063
2021-04-16 18:21:25 -04:00
hunterstich
b4cca5b8a4 [FAB] Update FAB to use motion theming for show/hide animation.
PiperOrigin-RevId: 368831990
2021-04-16 18:03:35 -04:00
hunterstich
943c4f0eed [BottomNavigationView] Updated to explicitly read and set minimum height.
PiperOrigin-RevId: 368831987
2021-04-16 18:02:00 -04:00
hunterstich
166d9f6471 [NavigationBar] Updated indicator and label to use motion theming.
PiperOrigin-RevId: 368684603
2021-04-16 17:54:00 -04:00
dniz
be85a92a73 [CollapsingToolbarLayout] Added getLineCount() method
PiperOrigin-RevId: 368630070
2021-04-16 17:48:59 -04:00
leticiars
ce928fcb65 [Bottomsheets][Large Screens] Adding a max width for bottom sheets to optimize for large screens.
PiperOrigin-RevId: 368533002
2021-04-16 17:47:14 -04:00
raajkumars
82333cf59d Internal change
PiperOrigin-RevId: 368487188
2021-04-16 17:46:18 -04:00
Material Design Team
7fc9df5399 Automated g4 rollback of changelist 368429312
PiperOrigin-RevId: 368474895
2021-04-16 12:44:38 -04:00
dniz
2b2c69f773 [CollapsingToolbarLayout] Added getLineCount() method
PiperOrigin-RevId: 368429312
2021-04-16 12:43:47 -04:00
hunterstich
7eea2b25bc [Navigation bar] Add active indicator.
PiperOrigin-RevId: 368261456
2021-04-16 12:42:14 -04:00
raajkumars
7939c171df [MaterialButton] Updated Material Button style to set the preferred maximum width to 320dp.
PiperOrigin-RevId: 368242141
2021-04-13 14:25:05 -04:00
dniz
f0ac362968 [CollapsingToolbarLayout] Added support for multiline RTL when using fade title mode
PiperOrigin-RevId: 368237684
2021-04-13 14:24:14 -04:00
dniz
3ad232d829 [CollapsingToolbarLayout] Updated default multiline hyphenation frequency to StaticLayout.HYPHENATION_FREQUENCY_NORMAL
PiperOrigin-RevId: 368221065
2021-04-13 14:20:48 -04:00
Material Design Team
891d009058 Automated g4 rollback of changelist 367493781
PiperOrigin-RevId: 367522778
2021-04-08 21:29:13 -04:00
raajkumars
d61903470b [MaterialButton] Updated Material Button style to set the preferred maximum width to 320dp.
PiperOrigin-RevId: 367493781
2021-04-08 20:45:57 -04:00
Material Design Team
a200a5ef17 [NavigationRail] Moves OnNavigationItem listeners to the NavigationBarView class
to be easier used by developers and other libraries

An example of where the current implementation fails is in Jetpack Navigation component where we rely on setOnNavigationItemSelectedListener and the similar methods in NavigationBarView (setOnItemSelectedListener) are protected.

PiperOrigin-RevId: 367467206
2021-04-08 20:43:35 -04:00
marianomartin
8e9b680893 [BottomAppBar] change cornersize to float to avoid truncation errors
PiperOrigin-RevId: 367430538
2021-04-08 20:42:46 -04:00
dniz
5a35bf7d38 [CollapsingToolbarLayout] Fixed multiline animation for fade title collapse mode
PiperOrigin-RevId: 367285477
2021-04-08 20:41:37 -04:00
conradchen
357bbf3054 [Color] Rename popup menu background drawable
PiperOrigin-RevId: 366305009
2021-04-01 16:51:27 -04:00
Material Design Team
030e5bd65b [BottomSheet] read the edgeToEdgeEnabled value earlier in the lifecycle
The DialogFragment will set the content view during the INITIALIZED state of the Lifecycle.  This happens prior to onCreate and currently results in the edgeToEdgeEnabled value always being false at the time the OnApplyWindowInsertListener is conditionally set.

PiperOrigin-RevId: 366294759
2021-04-01 16:46:49 -04:00
hunterstich
217bdef9f0 [Motion] Add motion package and utils to resolve motion theme attrs.
PiperOrigin-RevId: 366065469
2021-04-01 10:51:35 -04:00
leticiars
f97560d8a8 [TextInputLayout][Large Screens] Adding setMinWidth and setMaxWidth methods on the TextInputLayout so it works as expected.
PiperOrigin-RevId: 366041873
2021-03-31 11:57:04 -04:00
Adrien Vitti
740a3d247b [TextInputLayout] Fixed clear icon being displayed when the text field is not focused.
Resolves https://github.com/material-components/material-components-android/pull/2025
Resolves https://github.com/material-components/material-components-android/issues/2024

GIT_ORIGIN_REV_ID=19a520a8d44cbb62e307fd4dde251cd7ca97da42
PiperOrigin-RevId: 366032778
2021-03-31 10:54:43 -04:00
dniz
fed90a9e57 [Nav Rail / Bottom Nav / Nav Bar] API Fixes
Resolves https://github.com/material-components/material-components-android/issues/2131

PiperOrigin-RevId: 365873683
2021-03-31 10:27:45 -04:00
dniz
9c75ad07f7 [CollapsingToolbarLayout] Added support for fade out/in title collapse mode
PiperOrigin-RevId: 365629647
2021-03-30 14:48:19 -04:00
marianomartin
ffb2ad14ff [MaterialButtonToggleGroup] Fixed issues with uncheck and check methods
This unifies the check handling logic so that calling check/uncheck is not treated differently than checking the buttons through touch input

Resolves https://github.com/material-components/material-components-android/issues/2133

PiperOrigin-RevId: 365077462
2021-03-25 14:50:26 -04:00
connieshi
948738e618 [Badge][Toolbar] Fix badge offset bug when attached and detached from a menu item on a toolbar.
Added switch to toggle show/hide edit menu item and added button to increment badge number.

Moved logic to add badgedrawable to onCreateOptionsMenu so that a new badgedrawable is NOT added every time onPrepareOptionsMenu is called (e.g. opening the overflow menu)

Resolves https://github.com/material-components/material-components-android/issues/2129

PiperOrigin-RevId: 365033209
2021-03-25 11:28:18 -04:00
marianomartin
ef8ad4dff4 [BottomAppBar] Support fab with rounded corners in cradle
PiperOrigin-RevId: 364483537
2021-03-24 10:29:38 -04:00
leticiars
81273acb26 [TextInputLayout][LargeScreens] Adding default, max and min widths for text fields to optimize for large screens.
PiperOrigin-RevId: 363660219
2021-03-18 12:54:05 -04:00
Anoop
64164677a9 [Material TimePicker] Added setTheme api in builder to support passing theme via builder
Resolves https://github.com/material-components/material-components-android/pull/2098

GIT_ORIGIN_REV_ID=688015d7a73fa28478e34da40363ac9c5730d677
PiperOrigin-RevId: 363648438
2021-03-18 12:51:22 -04:00
dniz
06993c8812 [MathUtils] Fixed javadoc formatting issue for lerp function
PiperOrigin-RevId: 363418031
2021-03-18 09:51:35 -04:00
hunterstich
5d65278c82 [Motion] Updated FadeThroughProvider to allow customization of the fade through threshold.
PiperOrigin-RevId: 362065364
2021-03-15 15:12:41 -04:00
cketcham
6f220b11a7 [BottomSheet] Sets default for BottomSheetBehavior paddingTopSystemWindowInsets to true
This adds space where the status bar is for any bottomsheet that would have otherwise been fullscreen.

PiperOrigin-RevId: 361933708
2021-03-10 10:03:14 -05:00
dniz
1f6ebe9e7b [CollapsingToolbarLayout] Fixed Toolbar link errors in javadoc due to androidx vs framework Toolbar support
PiperOrigin-RevId: 360443545
2021-03-03 14:24:34 -05:00
Material Design Team
dca33e3952 [ProgressIndicator] Move canvas to the middle of the bounds, rather than by half the width/height.
PiperOrigin-RevId: 359827025
2021-03-03 14:23:54 -05:00