1623 Commits

Author SHA1 Message Date
marianomartin
4e62f960ec [TabLayout] Add a setId method that can be used for espresso
PiperOrigin-RevId: 323570079
2020-07-29 09:14:46 -04:00
haodong
eaa0a7f510 [ProgressIndicator] Improved the readability of initializeDrawables() function.
PiperOrigin-RevId: 323568162
2020-07-29 09:14:09 -04:00
dniz
b82d41fe55 [MaterialDatePicker] Fixed orientation of next/previous month button icons for RTL languages
Resolves https://github.com/material-components/material-components-android/issues/1485
Resolves https://github.com/material-components/material-components-android/pull/1518

Co-authored-by: Mattia <darksoulcyber@hotmail.it>
PiperOrigin-RevId: 323566996
2020-07-28 10:29:58 -04:00
marianomartin
f837cb76ab [MaterialButton] Support setting vertical insets programatically
Resolves https://github.com/material-components/material-components-android/issues/526

PiperOrigin-RevId: 323450357
2020-07-28 10:28:38 -04:00
Mattia
9914516276 [ViewOverlays] Removed re-throw of exception on ViewOverlayApi14
Resolves https://github.com/material-components/material-components-android/issues/1486
Resolves https://github.com/material-components/material-components-android/pull/1516

GIT_ORIGIN_REV_ID=c2eb7ecd99c9a7f56028510d4591cc4a60ff48ab
PiperOrigin-RevId: 323416732
2020-07-28 10:27:19 -04:00
Mattia
6daf233982 [ChipGroup] Generate a valid ID for Chip view on any API level
Resolves https://github.com/material-components/material-components-android/issues/1493
Resolves https://github.com/material-components/material-components-android/pull/1515

GIT_ORIGIN_REV_ID=6b39b596c6d79b09ffb76c791cdda35403081578
PiperOrigin-RevId: 323385654
2020-07-27 13:23:17 -04:00
dniz
96674d59ab [BottomSheet] Fixed NullPointerException when calling updatePeekHeight with null viewRef
PiperOrigin-RevId: 323107185
2020-07-27 13:21:54 -04:00
dniz
9fa9f1e8ea [BottomSheet] Updated gesture inset bottom to be saved in separate field to fix compounding peek height issue
Follow up for https://github.com/material-components/material-components-android/issues/1472

PiperOrigin-RevId: 323079427
2020-07-27 13:21:20 -04:00
marianomartin
162205b9df [TimePicker] Fixed exception when shrinkResources is enabled
Resolves https://github.com/material-components/material-components-android/issues/1508

PiperOrigin-RevId: 323018869
2020-07-27 13:20:06 -04:00
leticiars
be8fc51596 [ExposedDropdownMenu][a11y] Fixed dropdown list not focusing for editable dropdown menus.
Focusing on the layout will let user type, while the arrow icon is what will trigger showing/hiding the dropdown list (which gains focus automatically).

PiperOrigin-RevId: 322846934
2020-07-27 13:19:21 -04:00
dniz
5bd64f42d3 [DatePicker] Updated text input mode to respect custom theme res id
Resolves https://github.com/material-components/material-components-android/issues/966

PiperOrigin-RevId: 322809365
2020-07-27 13:17:42 -04:00
marianomartin
b92261f847 [TimePicker] Fix lint issue with edit texts
PiperOrigin-RevId: 322804881
2020-07-23 12:48:18 -04:00
haodong
ea9cce8c29 [ProgressIndicator] Fixed incorrect visibility change when the component's parent is not visible.
PiperOrigin-RevId: 322771684
2020-07-23 11:42:07 -04:00
dniz
88ca5c9eeb [Motion] Removed extra transition background fade duration from MaterialContainerTransformSharedElementCallback in favor of nulling out sharedElementReenterTransition to prevent extra transition from happening
Related to https://github.com/material-components/material-components-android/issues/1433
Related to https://github.com/material-components/material-components-android/issues/1344

PiperOrigin-RevId: 322614608
2020-07-22 14:25:30 -04:00
marianomartin
84cec15fbd [TimePicker] Fixed Talback support
PiperOrigin-RevId: 322589365
2020-07-22 14:24:23 -04:00
haodong
aca5307d42 [ProgressIndicator] Changed class visibility of CircularDrawingDelegate.
PiperOrigin-RevId: 322583285
2020-07-22 14:23:25 -04:00
haodong
4005294a75 [ProgressIndicator] Added the function in ProgressIndicatorSpec to load from style.
PiperOrigin-RevId: 322580332
2020-07-22 14:20:51 -04:00
haodong
c4f44d2fbb [ProgressIndicator] Revived the argument (restart) in setVisible of drawables.
- Changed setVisible(visible, animated) to setVisible(visible, restart, animated).
- Adjusted the visibility control based on the new setVisible().

PiperOrigin-RevId: 322223572
2020-07-21 04:22:24 -07:00
marianomartin
b8f4b221f4 [Slider] Added min separation support
PiperOrigin-RevId: 322212299
2020-07-21 04:17:46 -07:00
haodong
f7bad9a512 [ProgressIndicator] Changed drawables to detect system animator duration scale by themselves.
PiperOrigin-RevId: 322193517
2020-07-21 04:16:06 -07:00
haodong
28039601fd [ProgressIndicator] Removed explicitly disabling animators.
PiperOrigin-RevId: 322170475
2020-07-21 04:14:03 -07:00
haodong
764f063d41 [ProgressIndicator] Changed logic to guarantee the indeterminate arc fully collapsed before showing determinate arc.
PiperOrigin-RevId: 321613769
2020-07-20 12:56:38 -07:00
dniz
889fca55a2 [Motion] Added extra transition background fade duration to MaterialContainerTransformSharedElementCallback to prevent extra Activity transition from happening
Resolves https://github.com/material-components/material-components-android/issues/1433
Mentioned in https://github.com/material-components/material-components-android/issues/1344

PiperOrigin-RevId: 321550602
2020-07-16 07:27:36 -07:00
haodong
92aca746ca [ProgressIndicator] Updated system animation duration scale more frequently.
PiperOrigin-RevId: 321407050
2020-07-16 07:26:35 -07:00
haodong
28177cb551 [ProgressIndicator] Updated the drawable setters.
- Removed NonNull annotation.
- Updated the descriptions.

PiperOrigin-RevId: 321407014
2020-07-16 07:25:45 -07:00
marianomartin
cc031962d4 [Slider] Fixed exception when restoring instance state
Resolves https://github.com/material-components/material-components-android/issues/1284

PiperOrigin-RevId: 321392036
2020-07-15 13:57:02 -04:00
haodong
c74a374cc6 [ProgressIndicator] Automated g4 rollback of changelist 321297596.
*** Reason for rollback ***

Incompatible API change.

*** Original change description ***

[ProgressIndicator] Updated drawable setters.
- Added new setters with non-framework drawable types.
- Replaced IllegalArgumentException with UnsupportedOperationException.

PiperOrigin-RevId: 321365984
2020-07-15 09:54:16 -07:00
haodong
3625fbadec [ProgressIndicator] Updated drawable setters.
- Added new setters with non-framework drawable types.
- Replaced IllegalArgumentException with UnsupportedOperationException.

PiperOrigin-RevId: 321297596
2020-07-15 09:51:37 -07:00
Frantisek Nagy
8210b3ac01 [CollapsingToolbarLayout] Fix CollapsingToolbar multiline position
GIT_ORIGIN_REV_ID=7dbd8905bf58eb5811c4661ee77512d4d9c59c19

Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 321294325
2020-07-15 09:49:15 -07:00
leticiars
d868be243c [DatePicker] Set min width on the confirm OK button.
May fix https://github.com/material-components/material-components-android/issues/1346

PiperOrigin-RevId: 321169998
2020-07-15 09:48:22 -07:00
marianomartin
702c201508 [TimePicker] Renamed classes to match MaterialDatePicker
PiperOrigin-RevId: 320993387
2020-07-15 09:45:57 -07:00
haodong
380c21ab53 [ProgressIndicator] Separated the padding when calculating drawable's intrinsic size.
PiperOrigin-RevId: 320990538
2020-07-15 09:43:41 -07:00
marianomartin
049ad022a6 Delete components build.gradle files
PiperOrigin-RevId: 320944144
2020-07-15 09:38:31 -07:00
hunterstich
b93042df2c [BottomSheet] Updated a11y focus to move to bottom sheet when expanded and siblings are hidden from a11y services.
PiperOrigin-RevId: 320631879
2020-07-10 11:53:10 -07:00
haodong
43fe75f4bc [ProgressIndicator] Invalidated indicator colors properly in animator delegate.
Resolves https://github.com/material-components/material-components-android/issues/1469

PiperOrigin-RevId: 320622246
2020-07-10 11:51:36 -07:00
marianomartin
34f621d22c [Slider] Move static inner classes outside base slider class
Resolves https://github.com/material-components/material-components-android/issues/1342

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

PiperOrigin-RevId: 320607441
2020-07-10 11:48:43 -07:00
dniz
7b620035a7 [Bottom Sheet] Updated peek height gesture inset behavior to only add extra inset if necessary
Previously on Q the peek height would have the bottom gesture inset size added to it regardless of whether edge to edge mode or gesture navigation were enabled. Now the extra inset will only be added if it is needed due to a system gesture conflict, in order to give the user some space to drag the sheet.

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

PiperOrigin-RevId: 320606747
2020-07-10 11:47:27 -07:00
haodong
fabd36fc75 [ProgressIndicator] Unregistered animator complete callback on detach from window to prevent memory leak.
Resolves https://github.com/material-components/material-components-android/issues/1440

PiperOrigin-RevId: 320435677
2020-07-10 11:43:49 -07:00
haodong
4ff30311e3 [ProgressIndicator] Replaced ProgressIndicator references in drawable&delegate classes to prevent memory leak and prepare for the stand-along drawable feature.
PiperOrigin-RevId: 320391113
2020-07-10 11:35:27 -07:00
marianomartin
ffdb90fd3d [TimePicker] Improved theming
PiperOrigin-RevId: 320382415
2020-07-10 11:32:53 -07:00
haodong
cf98f94309 [ProgressIndicator] Forward fixed "ripple" bug from the fix for indeterminate animation not respecting to system animator scale.
PiperOrigin-RevId: 320204213
2020-07-08 15:01:27 -04:00
marianomartin
e5f7951b01 [Chip] Support setting text size without changing TextAppearance
PiperOrigin-RevId: 320083914
2020-07-08 15:00:37 -04:00
marianomartin
272ce50950 [TimePicker] Renamed radius attr to avoid conflicts
PiperOrigin-RevId: 319985243
2020-07-08 14:59:44 -04:00
marianomartin
4eea03dff5 [RangeSlider] Fixed number of values changing in RangeSlider
https://github.com/material-components/material-components-android/issues/1460
https://github.com/material-components/material-components-android/issues/1393

PiperOrigin-RevId: 319980426
2020-07-07 11:01:15 -04:00
dniz
6b63c117fd [Motion] Changed MaterialContainerTransform to skip transition instead of crash when no view bounds
Resolves https://github.com/material-components/material-components-android/issues/1377

PiperOrigin-RevId: 319977600
2020-07-07 11:00:27 -04:00
marianomartin
42aa5015a2 [TimePicker] Added a theme attribute
PiperOrigin-RevId: 319977105
2020-07-07 10:59:37 -04:00
leticiars
7b5aea2ca3 [TextInputLayout] Fixed padding for prefix/suffix and label in RTL being wrong.
PiperOrigin-RevId: 319873647
2020-07-07 10:57:16 -04:00
marianomartin
26fc10cfc9 [MaterialShapeDrawable] Fixed exception with int division
Resolves https://github.com/material-components/material-components-android/issues/937

PiperOrigin-RevId: 319778531
2020-07-06 11:10:33 -04:00
marianomartin
a6935dc73d [TimePicker] Added haptic feedback
PiperOrigin-RevId: 319287390
2020-07-06 11:09:40 -04:00
hunterstich
3c9096d451 [Motion] Fix zero-length motion path container transform bug.
getPosTan, which calculates the translation of the conatienr bounds, no-ops if the startView doesn't move to a new position (when the startView and endView are top aligned and centered horizontally on one another). This was causing motionPathPositions, the int array holding the x and y of the animated bounds to never be initialized, defaulting to 0, and throwing off the bounds calculation.
This CL updates the int array with actual default x and y values so when getPosTan no-ops, the motionPathPosition array contains the correct values.

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

PiperOrigin-RevId: 319247326
2020-07-06 11:08:36 -04:00