2051 Commits

Author SHA1 Message Date
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
cketcham
28c3254d2a [BottomSheet] Allow opting out of edge to edge on the top
PiperOrigin-RevId: 359525223
2021-03-03 12:40:48 -05:00
cketcham
33f5aefb35 [BottomSheet] Only add OnApplyWindowInsetsListener if edgeToEdgeEnabled is true
PiperOrigin-RevId: 359407836
2021-03-03 12:40:08 -05:00
dniz
cbf528e3a6 [MaterialToolbar] Added support for centering title and subtitle
Resolves https://github.com/material-components/material-components-android/issues/2011

PiperOrigin-RevId: 359360955
2021-03-03 12:37:29 -05:00
haodong
d6ddf00dbf [ProgressIndicator] Internal cleanup.
PiperOrigin-RevId: 358217922
2021-02-18 14:35:40 -08:00
raajkumars
585e0ff0ff [Navigation Rail] Fixed spacing issue between destination icon and label.
PiperOrigin-RevId: 357997380
2021-02-18 14:34:17 -08:00
hunterstich
edd2eb57e5 [Motion] Updated motion theming attr names.
PiperOrigin-RevId: 356983952
2021-02-17 06:47:56 -08:00
cketcham
2933600552 [BottomSheet] Prevent adding half expanded accessibility action if fitToContents is true
PiperOrigin-RevId: 356805609
2021-02-17 06:45:07 -08:00
raajkumars
1c872e8eb1 [Navigation Rail] Fixed issue that caused navigation rail to show label for active destination in compact mode.
PiperOrigin-RevId: 356724787
2021-02-17 06:42:20 -08:00
raajkumars
42a19ab725 [Navigation Rail] Fixed issue that caused destination views to be smaller than the rail width.
PiperOrigin-RevId: 356584209
2021-02-17 06:41:19 -08:00
dniz
25bf03ea2a [Docs] Remove broken @link from MaterialButton Javadoc
PiperOrigin-RevId: 356506184
2021-02-17 06:40:30 -08:00
connieshi
da2d8264d1 [Tabs][BottomNav] Do not show tooltip on long press for L and M devices to avoid freezing devices on repeated long press.
PiperOrigin-RevId: 355428951
2021-02-04 20:54:30 -05:00
raajkumars
e13610e589 [Navigation Rail] Added Navigation Rail component to the library.
PiperOrigin-RevId: 355235369
2021-02-04 20:49:41 -05:00
haodong
0d0c90b9ef Updated string translations.
PiperOrigin-RevId: 354978993
2021-02-01 11:03:44 -08:00
haodong
1fb57bcaa2 [ProgressIndicator] Updated "indicatorSize" in CircularProgressIndicatorSpec to be never less than twice of "trackThickness".
Resolves https://github.com/material-components/material-components-android/issues/2005

PiperOrigin-RevId: 353887395
2021-01-26 14:08:04 -08:00
leticiars
6015a4e901 [TextInputLayout] Adjusted background of collapsed hint to not overlap with edit text's background.
Resolves https://github.com/material-components/material-components-android/pull/1660
Resolves https://github.com/material-components/material-components-android/issues/1319

PiperOrigin-RevId: 353645196
2021-01-25 09:25:00 -08:00
dniz
2a639a311e [AppBarLayout] Fix spec link in Javadoc
PiperOrigin-RevId: 353032509
2021-01-21 12:55:18 -08:00
marianomartin
11169ce616 [TimePicker] Fixed issues when re using dialog instance
Resolves https://github.com/material-components/material-components-android/issues/1995

PiperOrigin-RevId: 352610118
2021-01-19 15:17:01 -08:00
marianomartin
bf0d11b4e7 [TimePicker] Changed clock face size to be dynamic
PiperOrigin-RevId: 352024053
2021-01-15 17:02:42 -05:00
afohrman
655caeddba [Motion] Added theming to MaterialFadeThrough transition.
PiperOrigin-RevId: 351843861
2021-01-15 17:01:51 -05:00
afohrman
478b4124d2 [Motion] Added theming to MaterialSharedAxis transition.
PiperOrigin-RevId: 351841194
2021-01-15 16:59:34 -05:00
haodong
7a9e3f6d89 [ProgressIndicator] Fixed NPE while setting progress in the indeterminate mode after inflation.
PiperOrigin-RevId: 351656379
2021-01-14 09:51:52 -05:00
haodong
5910955990 [ProgressIndicator] Fixed the visibility bug in RecyclerView.
PiperOrigin-RevId: 351655786
2021-01-14 09:49:54 -05:00
hunterstich
db42490dde [DatePicker] Fixed incorrect date being selected on scrollable months.
Resolves https://github.com/material-components/material-components-android/issues/1973

PiperOrigin-RevId: 351396382
2021-01-12 18:37:48 -05:00
afohrman
15a2307e91 [Motion] Refactored applyThemeValues() and related methods.
PiperOrigin-RevId: 351220994
2021-01-11 21:19:11 -05:00
afohrman
8e79c7ea1c [Motion] Added theming to MaterialFade transition.
PiperOrigin-RevId: 351180119
2021-01-11 21:15:56 -05:00
Valentin Slawicek
d15d435093 Automated g4 rollback of changelist 350755495
PiperOrigin-RevId: 351144304
2021-01-11 21:10:54 -05:00
haodong
196116ffa4 [ProgressIndicator] Fixed not hidden when committed hiding is interrupted by window hiding (i.e., home button pressed).
Resolves https://github.com/material-components/material-components-android/issues/1937

PiperOrigin-RevId: 350789077
2021-01-08 14:15:01 -05:00
haodong
712f5f3c99 [ProgressIndicator] Fixed determinate drawable not fully shown when switched from indeterminate mode for the second time in SDK 19/21/23.
PiperOrigin-RevId: 350786230
2021-01-08 14:12:49 -05:00
Mao
8f77050a25 [BottomSheetBehavior] Remove duplicate state from BottomSheetBehavior#getState doc.
Resolves https://github.com/material-components/material-components-android/pull/1927

GIT_ORIGIN_REV_ID=50d11909b926457822ab310f1d4316aa0e3a0908
PiperOrigin-RevId: 350785062
2021-01-08 14:08:39 -05:00
haodong
86b70d7bf7 [ProgressIndicator] Fixed indeterminate animation not playing after inflation/being visible in SDK 21.
PiperOrigin-RevId: 350783980
2021-01-08 13:51:57 -05:00
Mika
00e33202a5 [DatePicker] Fix NullPointerException on MonthAdapter.updateSelectedState(MonthAda…
Resolves https://github.com/material-components/material-components-android/pull/1944
Resolves https://github.com/material-components/material-components-android/issues/1943

GIT_ORIGIN_REV_ID=d02d6307ea08ea505ea6535ce909e7d1b268847b
PiperOrigin-RevId: 350783859
2021-01-08 13:50:58 -05:00
haodong
fdb420f540 [ProgressIndicator] Updated linear indeterminate animation.
PiperOrigin-RevId: 350781463
2021-01-08 13:48:00 -05:00
haodong
2163e3d2cb [ProgressIndicator] Updated circular indeterminate animation.
Resolves https://github.com/material-components/material-components-android/issues/1852

PiperOrigin-RevId: 350781191
2021-01-08 13:35:44 -05:00
Valentin Slawicek
a3b8be845a [Snackbar] Fix last remaining NPE from #917
Resolves https://github.com/material-components/material-components-android/pull/1938

GIT_ORIGIN_REV_ID=2b71fd49e19c577ef2caf17ca5a92c3f069b1fe0
PiperOrigin-RevId: 350755495
2021-01-08 10:28:18 -05:00
marianomartin
3e79942871 [DatePicker] Localized numbers in month
Resolves https://github.com/material-components/material-components-android/issues/1948

PiperOrigin-RevId: 350567674
2021-01-07 12:10:44 -05:00
marianomartin
bec2de92ac [DatePicker] Fixed day of week adapter localization for APIs before O
Resolves https://github.com/material-components/material-components-android/issues/1948

PiperOrigin-RevId: 350474335
2021-01-07 12:06:34 -05:00