2658 Commits

Author SHA1 Message Date
afohrman
8dcdd26834 [Translations][Date Picker] Update string translation for datepicker.
PiperOrigin-RevId: 476115968
2022-09-22 17:40:54 +00:00
pekingme
ac6f13c0be [Theme] Added a theme attribute for outline-variant color.
PiperOrigin-RevId: 475881564
2022-09-22 17:40:01 +00:00
pubiqq
88c448ed19 [NavigationView] Fix subheaderInsetEnd setter
Resolves https://github.com/material-components/material-components-android/pull/2979
Resolves https://github.com/material-components/material-components-android/issues/2975
Resolves https://github.com/material-components/material-components-android/issues/2976

GIT_ORIGIN_REV_ID=47659c14a2bc72f5c383e3b59dd9d45b60f6af95
PiperOrigin-RevId: 475868928
2022-09-22 17:36:02 +00:00
conradchen
4a1e6bc42a [Slider] Integrate component tokens
PiperOrigin-RevId: 475405055
2022-09-22 17:34:52 +00:00
pekingme
1ef53e2b37 [Tokens] Upgraded to v0.126 for 1p and 3p.
PiperOrigin-RevId: 475355503
2022-09-20 12:59:30 -04:00
Anyer Castillo
a2ce1dd102 [BottomNavigation] Fix hardcoded number of children
Resolves https://github.com/material-components/material-components-android/pull/2923

GIT_ORIGIN_REV_ID=54a68268367a3f0efda6928e10b5f9c299502121
Co-authored-by: imhappi
PiperOrigin-RevId: 475346937
2022-09-20 12:58:29 -04:00
pfthomas
7bc5689789 [MaterialDatePicker] Add method to specify a content description to decorated views
PiperOrigin-RevId: 474622363
2022-09-16 13:56:02 -04:00
pekingme
ab063b7b7f [ProgressIndicator] Integrates tokens into M3 styles.
PiperOrigin-RevId: 474592726
2022-09-15 14:20:29 -04:00
Material Design Team
e804957628 [TextInputLayout] Fix code formatting.
PiperOrigin-RevId: 474180631
2022-09-15 14:18:55 -04:00
leticiars
e7697c235b [TextInputLayout] Integrated tokens for text fields and the exposed dropdown menu.
PiperOrigin-RevId: 474105090
2022-09-15 14:15:10 -04:00
conradchen
6631abbdb5 [BottomSheet] Only remove round corners in M3 styles when it's fullscreen
PiperOrigin-RevId: 473065385
2022-09-12 12:26:02 -04:00
rightnao
3c0c9e75f5 [TabLayout] Setting a custom view on the tab should replace the current custom view
PiperOrigin-RevId: 473057129
2022-09-12 12:25:10 -04:00
rightnao
6643695c3e [DatePicker] Make new public getter methods for start/end/openAt values with long return types for CalendarConstraints
Resolves https://github.com/material-components/material-components-android/issues/2907

PiperOrigin-RevId: 473053039
2022-09-12 12:24:13 -04:00
pekingme
02327c3325 [Tokens] Updated to correctly convert shape tokens with asymmetric shape value.
PiperOrigin-RevId: 473036665
2022-09-08 14:25:16 -04:00
pubiqq
bcb551b8a0 [Slider] Fix compat halo visibility
Resolves https://github.com/material-components/material-components-android/pull/2951

GIT_ORIGIN_REV_ID=f3cd8ddc7a7b1fee6fac9378515ce3668fcc6b70
PiperOrigin-RevId: 472846843
2022-09-08 14:23:16 -04:00
leticiars
fbd75ec5b0 [TextInputLayout] Updated cursor color on error for APIs >= 29.
Resolves https://github.com/material-components/material-components-android/issues/2719

PiperOrigin-RevId: 472535969
2022-09-08 13:41:59 -04:00
rightnao
3975a2e908 [MaterialCardView] Update motion specs for Z-shadow
PiperOrigin-RevId: 472535721
2022-09-08 13:40:46 -04:00
rightnao
a4f6a1e02a [TimePicker] Update motion specs
PiperOrigin-RevId: 472531602
2022-09-08 13:38:52 -04:00
rightnao
7c56473a58 [Translations] Update string translations
PiperOrigin-RevId: 472531245
2022-09-08 13:25:10 -04:00
rightnao
c98480c019 [TextInputLayout] Update motion attributes for textfield animations
PiperOrigin-RevId: 472525831
2022-09-08 13:24:09 -04:00
Material Design Team
347cb9e711 [M3][Colors] Add additional condition to check dynamic color supported devices
PiperOrigin-RevId: 472412113
2022-09-08 13:22:56 -04:00
pubiqq
d68c0f8dc5 [TabLayout] Do not impose margins in custom tab views
Resolves https://github.com/material-components/material-components-android/pull/2910

GIT_ORIGIN_REV_ID=d9ba645464601814cccff5c30118807e8f3f4ef6
PiperOrigin-RevId: 471814138
2022-09-02 13:01:35 -07:00
pubiqq
a137c28b77 [Slider] Do not capture inflation parameters for reuse
Resolves https://github.com/material-components/material-components-android/pull/2931

GIT_ORIGIN_REV_ID=6fd66149c9f67df309f29770e39d7a95eac2deea
PiperOrigin-RevId: 471813225
2022-09-02 13:01:02 -07:00
OxygenCobalt
158a413629 [BottomSheetBehavior] Add internal method to disable hiding gestures
Resolves https://github.com/material-components/material-components-android/pull/2880

GIT_ORIGIN_REV_ID=0dac0b3ca0daeeafca7b71d8cdef6709be17c2a4
PiperOrigin-RevId: 471809209
2022-09-02 13:00:30 -07:00
leticiars
a85204eb75 [TextInputLayout] Updated expanded label color to take error color when on error.
Partially fixes https://github.com/material-components/material-components-android/issues/2719

PiperOrigin-RevId: 471799584
2022-09-02 12:54:09 -07:00
rightnao
7d129eae21 [MaterialCardView] Add fade animation for checked icon drawable
PiperOrigin-RevId: 471663189
2022-09-01 17:23:43 -07:00
rightnao
9df6c9d072 [AppBarLayout] Fix issue with a physical keyboard scroll not collapsing toolbar
PiperOrigin-RevId: 471608866
2022-09-01 17:22:43 -07:00
pubiqq
158d9f012a [ShapeAppearance] Change relative corner size behavior for "vertical" shapes
Resolves https://github.com/material-components/material-components-android/pull/2929

GIT_ORIGIN_REV_ID=38438252c1d43d1ccbeb333bdfc7a76b469033f4
PiperOrigin-RevId: 471564817
2022-09-01 10:25:55 -07:00
rightnao
14415a1308 [AppBarLayout] Make a new setter for scroll effect and make SCROLL_EFFECT_COMPRESS public
resolves https://github.com/material-components/material-components-android/issues/2894

PiperOrigin-RevId: 471289613
2022-08-31 15:55:37 -07:00
Material Design Team
9dd1195ad7 [ButtonGroup] Reduce log tag string length
PiperOrigin-RevId: 470989485
2022-08-30 11:29:46 -04:00
leticiars
08c40d85e5 [TextInputLayout] Added method to set corner family programmatically and a setShapeAppearanceModel method for greater customizability of the box background shape.
Resolves https://github.com/material-components/material-components-android/issues/1957

PiperOrigin-RevId: 470826160
2022-08-30 11:28:55 -04:00
leticiars
b8e1b57804 [Checkbox] Fixed NPE crash due to layer drawable's constant state issue in APIs < 23.
PiperOrigin-RevId: 470825166
2022-08-30 11:28:16 -04:00
rightnao
21b74f90b2 [BottomAppBar][BottomNavigationView] Update motion specs for show/hide bar
PiperOrigin-RevId: 470801900
2022-08-30 11:27:36 -04:00
rightnao
3d3edce956 [Snackbar] Update motion specs
PiperOrigin-RevId: 470790457
2022-08-30 11:21:45 -04:00
pubiqq
0dbea2df1a [MaterialTimePicker] Fix text appearance on the clock display
Resolves https://github.com/material-components/material-components-android/pull/2921

GIT_ORIGIN_REV_ID=4b00dddc1a6eac897de71cefa7f45a88113353cf
Co-authored-by: paulfthomas
PiperOrigin-RevId: 470753559
2022-08-29 10:46:43 -07:00
conradchen
6e6c53a4f4 [BottomSheet] Add shouldRemoveExpandedCorners attribute
PiperOrigin-RevId: 470023917
2022-08-25 15:11:36 -07:00
rightnao
6b53f62aa2 [TextInputLayout] Update motion specs for hint animation
PiperOrigin-RevId: 469753395
2022-08-24 14:41:36 -07:00
rightnao
c5fadac827 Automated g4 rollback of changelist 469291824
PiperOrigin-RevId: 469334903
2022-08-24 14:40:40 -07:00
rightnao
95ab9794cb [DatePicker] Expose CalendarConstraints start and end getter methods
resolves https://github.com/material-components/material-components-android/issues/2907

PiperOrigin-RevId: 469332050
2022-08-24 14:40:13 -07:00
rightnao
fdd8dae982 [BottomAppBar][BottomNavigationView] Update motion specs for show/hide bar
PiperOrigin-RevId: 469291824
2022-08-24 14:38:54 -07:00
rightnao
c7a3d5e874 [Slider] Update motion attributes
PiperOrigin-RevId: 469285824
2022-08-24 14:37:08 -07:00
kingwang666
39b4c76c72 [SwipeDismissBehavior] Fixed drag view alpha not changing when swipeDirection is END_TO_START
Resolves https://github.com/material-components/material-components-android/pull/2890

GIT_ORIGIN_REV_ID=de72c31a6520ae1f9fa4e781a6fbe9609dc148b9
PiperOrigin-RevId: 469186475
2022-08-22 15:24:45 -04:00
pubiqq
6f547d4fd3 [Divider] Fixed logic of determining whether to draw divider in MaterialDividerItemDecoration.
Resolves https://github.com/material-components/material-components-android/pull/2818
Resolves https://github.com/material-components/material-components-android/issues/2817
Resolves https://github.com/material-components/material-components-android/issues/2771

GIT_ORIGIN_REV_ID=25b8815490fb3c362337613d5af710bc0c7533fb
PiperOrigin-RevId: 469171223
2022-08-22 15:24:04 -04:00
rightnao
d1c5a52cf4 [TabLayout] Update motion attributes for tab layout
PiperOrigin-RevId: 468736364
2022-08-22 15:23:26 -04:00
Material Design Team
44cc9b745c Add @CanIgnoreReturnValue to some APIs that return this.
PiperOrigin-RevId: 468721442
2022-08-22 15:22:27 -04:00
pubiqq
41eb6d0ff4 [ShapeAppearance] Fix rotation angle calculation
Resolves https://github.com/material-components/material-components-android/pull/2915

GIT_ORIGIN_REV_ID=4d738687c2023f2e9ec527c84ff0ec5ae9dba08e
PiperOrigin-RevId: 468608301
2022-08-19 11:01:53 -04:00
pubiqq
60bc025aa9 [TimePicker] Use a single layout for time input
Resolves https://github.com/material-components/material-components-android/pull/2908

GIT_ORIGIN_REV_ID=8feed25d0f0bb4d83a04304250772e9fbed0ae6a
PiperOrigin-RevId: 468529532
2022-08-19 11:00:32 -04:00
OxygenCobalt
2958d8d51b [BottomSheetBehavior] Add method to calculate slide offset
Resolves https://github.com/material-components/material-components-android/issues/2871
Resolves https://github.com/material-components/material-components-android/pull/2872

GIT_ORIGIN_REV_ID=de874ff649af0a6ad92340b3aad4e033bd84e933
PiperOrigin-RevId: 468521740
2022-08-19 10:57:18 -04:00
leticiars
581f7343c6 [Snackbar] Made snackbar javadoc more clear of how its dismissing works.
PiperOrigin-RevId: 468494275
2022-08-19 10:56:35 -04:00
rightnao
9db041cc52 [ExtendedFloatingActionButton] Update extend/shrink motion spec
PiperOrigin-RevId: 468201647
2022-08-17 14:58:55 -04:00