2035 Commits

Author SHA1 Message Date
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
marianomartin
74350dead6 [TimePicker] Fixed numbers glitching on first show of time picker
PiperOrigin-RevId: 350417836
2021-01-07 12:05:30 -05:00
marianomartin
76cf0eb07e [TimePicker] Fixed text input mode to correctly restore state
PiperOrigin-RevId: 350349289
2021-01-06 15:34:51 -05:00
cketcham
c15139a5c3 [BottomSheet] Automatically enable insets for ThemeOverlay style
Because the BottomSheet could be shown under the navigation bar if it's transparent or translucent, it's best to ensure insets are added. If no insets are added, views can end up behind the navigation bar which prevents any interaction.

PiperOrigin-RevId: 348470697
2021-01-06 13:28:56 -05:00
dniz
4af9eabe8a [TimePicker] Renamed ThemeOverlay.MaterialComponents.MaterialTimePicker to ThemeOverlay.MaterialComponents.TimePicker to be more consistent with other time picker styles
PiperOrigin-RevId: 347692913
2020-12-15 17:49:51 -05:00
haodong
9ccad21510 [ProgressIndicator] Fixed incorrect visibility when used in the recycler view.
Resolves https://github.com/material-components/material-components-android/issues/1902
Resolves https://github.com/material-components/material-components-android/issues/1914

PiperOrigin-RevId: 347417506
2020-12-14 15:12:08 -05:00
marianomartin
cbef0d3c1b [TimePicker] Change text input view to a view stub
PiperOrigin-RevId: 347387465
2020-12-14 15:10:26 -05:00
cketcham
c574e9ea23 [BottomSheet] Add flag to opt in to edge to edge behavior rather than only relying on the navigationBarColor
PiperOrigin-RevId: 347387288
2020-12-14 15:08:19 -05:00
cketcham
b1812b9a6b Internal Change
PiperOrigin-RevId: 347042445
2020-12-11 14:47:53 -05:00
cketcham
3037cf046c Automated g4 rollback of changelist 343006492
PiperOrigin-RevId: 347038837
2020-12-11 14:45:45 -05:00
leticiars
40e33a772c [TextInputLayout][a11y] Fixed placeholder text not being properly announced.
PiperOrigin-RevId: 346578367
2020-12-09 15:00:22 -05:00
Amr
dd0e697aca [TextInputLayout] Fix IndexOutOfBoundsException when trying to change end icon
Resolves https://github.com/material-components/material-components-android/pull/1788
Resolves https://github.com/material-components/material-components-android/issues/1724
Resolves https://github.com/material-components/material-components-android/issues/1748

PiperOrigin-RevId: 345541684
2020-12-04 09:47:38 -05:00
haodong
e5375fcb69 [ProgressIndicator] Renamed indeterminateAnimationType enums "seamless" and "spacing".
PiperOrigin-RevId: 345467359
2020-12-03 14:46:51 -05:00
Valentin Slawicek
ebd3223147 [Snackbar] Fixes remaining NPEs from #917
Resolves https://github.com/material-components/material-components-android/pull/1887

GIT_ORIGIN_REV_ID=331d064eb02cb4ff1a2b84f274b8d2c98848e9d4
PiperOrigin-RevId: 345283901
2020-12-03 14:45:59 -05:00
dniz
036cff7c33 [CollapsingToolbarLayout] Updated CollapsingToolbarLayout to support framework android.widget.Toolbar (<Toolbar)
PiperOrigin-RevId: 345236307
2020-12-02 15:04:30 -05:00
marianomartin
074ed18255 [TimePicker] Remove hint setting
PiperOrigin-RevId: 345071902
2020-12-02 10:07:59 -05:00
marianomartin
9f791574ec [TimePicker] Use MaterialColors to correctly read CSLs with theme attributes
PiperOrigin-RevId: 345068246
2020-12-02 10:00:18 -05:00