1915 Commits

Author SHA1 Message Date
hunterstich
f0a80c4e41 [TabLayout] Automated g4 rollback of changelist 336764852.
*** Reason for rollback ***

Roll forward with fix

*** Original change description ***

Automated g4 rollback of changelist 336704515

PiperOrigin-RevId: 337092676
2020-10-15 13:25:34 -07:00
haodong
0a75c746ff [ProgressIndicator] Added CircularProgressIndicator and CircularProgressIndicatorSpec.
PiperOrigin-RevId: 337009157
2020-10-15 13:24:45 -07:00
connieshi
9487c33b8a Automated g4 rollback of changelist 336347365
PiperOrigin-RevId: 336978123
2020-10-15 13:23:56 -07:00
Material Design Team
ffcf70adde [DatePicker] Changes to allow the MaterialCalendar to exist inside a scrollable view.
PiperOrigin-RevId: 336952059
2020-10-15 13:23:12 -07:00
haodong
95677464fd [ProgressIndicator] Updated ProgressIndicatorSpec to use BaseProgressIndicatorSpec.
PiperOrigin-RevId: 336944763
2020-10-15 13:22:15 -07:00
connieshi
6951bd5179 [Chip] Support elevation overlay.
Resolves https://github.com/material-components/material-components-android/issues/1749

PiperOrigin-RevId: 336930100
2020-10-15 13:21:17 -07:00
cketcham
aad88a0b38 [Slider] Stop checking for scroll if not in a scrolling container
This allows the thumb to be repositioned more quickly if the thumb is moved a little rather than waiting for the touch to move past the slop.

PiperOrigin-RevId: 336929171
2020-10-15 13:19:50 -07:00
hunterstich
f743057941 Automated g4 rollback of changelist 336704515
PiperOrigin-RevId: 336764852
2020-10-15 13:16:16 -07:00
hunterstich
f8f3d9086e [TabLayout] Added initial indicator interpolation extensibility.
Added a linear and elastic interpolator to handle specing the indicator at any point between two tabs.

PiperOrigin-RevId: 336704515
2020-10-15 13:14:22 -07:00
hunterstich
1fc5e8c51c [Slider] Added animation to scale in/out label above thumbs.
PiperOrigin-RevId: 336635571
2020-10-15 13:13:28 -07:00
haodong
4a56bca6c8 Automated g4 rollback of changelist 336312110
PiperOrigin-RevId: 336562092
2020-10-15 13:12:42 -07:00
haodong
33494486c8 Automated g4 rollback of changelist 336313426
PiperOrigin-RevId: 336388324
2020-10-15 13:11:59 -07:00
haodong
42840c0e24 Automated g4 rollback of changelist 336314674
PiperOrigin-RevId: 336388120
2020-10-15 13:10:39 -07:00
haodong
9199b49bca Automated g4 rollback of changelist 336315813
PiperOrigin-RevId: 336387821
2020-10-15 13:07:44 -07:00
haodong
8c3e3bf955 Automated g4 rollback of changelist 336326618
PiperOrigin-RevId: 336379824
2020-10-15 13:01:51 -07:00
Material Design Team
0f717f8cce Automated g4 rollback of changelist 336306885
PiperOrigin-RevId: 336347365
2020-10-15 13:01:02 -07:00
haodong
64561681dd [ProgressIndicator] Update GM testing and catalog.
PiperOrigin-RevId: 336326618
2020-10-15 12:59:40 -07:00
haodong
322d073036 [ProgressIndicator] Moved the logic from ProgressIndicator to BaseProgressIndicator and made CircularProgressIndicator functional.
PiperOrigin-RevId: 336315813
2020-10-15 12:55:30 -07:00
haodong
9215166f7e [ProgressIndicator] Use CircularProgressIndicatorSpec in CIRCULAR type.
PiperOrigin-RevId: 336314674
2020-10-15 12:49:05 -07:00
haodong
5cfcc2e317 [ProgressIndicator] Added CircularProgressIndicator and CircularProgressIndicatorSpec.
PiperOrigin-RevId: 336313426
2020-10-15 12:41:02 -07:00
haodong
80aefb3ac7 [ProgressIndicator] Updated ProgressIndicatorSpec to use BaseProgressIndicatorSpec.
PiperOrigin-RevId: 336312110
2020-10-15 12:40:13 -07:00
haodong
e73d383b17 [ProgressIndicator] Added BaseProgressIndicator and BaseProgressIndicatorSpec.
PiperOrigin-RevId: 336311648
2020-10-15 12:39:06 -07:00
haodong
df6334fb0e [ProgressIndicator] Detach spec object from the drawable classes.
PiperOrigin-RevId: 336311315
2020-10-15 12:37:12 -07:00
haodong
1acb23bb0c [ProgressIndicator] Let indeterminate animator delegate classes use spec directly.
This is another step towards detaching the spec from drawable classes.

PiperOrigin-RevId: 336311000
2020-10-15 12:35:10 -07:00
haodong
e77fe1ea9a [ProgressIndicator] Let drawing delegate classes use spec directly.
This is one step towards detaching the spec from drawable classes.

PiperOrigin-RevId: 336309131
2020-10-15 12:34:15 -07:00
haodong
1c135f040c [ProgressIndicator] Added new attributes and styles for LinearProgressIndicator and CircularProgressIndicator.
PiperOrigin-RevId: 336308622
2020-10-15 12:32:41 -07:00
connieshi
5e35d14c18 [Badge] Update badge to support being anchored to any view in pre 18.
In <API18, BadgeDrawable will dynamically 1) wrap the anchor in a FrameLayout and 2) replace the anchor with the FrameLayout in the anchor' view hierarchy. BadgeDrawable will set itself as foreground on the FrameLayout.

If the user does not want BadgeDrawable to manipulate its view hierarchy, the user can pass in an instance of FrameLayout `customBadgeParent` in #attachBadgeDrawable instead.

Labeled BadgeUtils as experimental and removed the RestrictedTo(Scope.Library) annotation.

Updated TopAppBar main demo to show a badge on a toolbar menu item.

PiperOrigin-RevId: 336306885
2020-10-15 12:31:14 -07:00
Gabriele Mariotti
98c090dd3f [MaterialTimePicker] Changed dimens according to spec
Resolves https://github.com/material-components/material-components-android/pull/1743

GIT_ORIGIN_REV_ID=1cfa9c620286b6d35838f470f9bf20d8687f9296
PiperOrigin-RevId: 336135983
2020-10-15 12:30:26 -07:00
Brandon Lerner
416b8cb94a [Slider] Invalidate after new ColorStateList and return early if same
Resolves https://github.com/material-components/material-components-android/pull/1786

GIT_ORIGIN_REV_ID=1459f706028f25b13d8dbae850ea66b4b8294153
PiperOrigin-RevId: 336111124
2020-10-15 12:23:54 -07:00
dniz
e5bed8653c [MaterialToolbar] Renamed navigationIconColor attribute to navigationIconTint
PiperOrigin-RevId: 336079531
2020-10-08 16:35:04 +00:00
afohrman
9a5192ae5e [BottomNavigationView] Updated BottomNavigationView to draw compat shadows and elevation overlays in pre-21 and remove top divider for non-legacy backgrounds.
Previously, `BottomNavigationView` was using `MaterialShapeDrawable` but an elevation value that was set would not actually take effect. It turns out that this is because `BottomNavigationView` did not properly call the appropriate elevation methods. This commit fixes the handling of elevation. It also removes the top divider in pre-21 cases where there is a `MaterialShapeDrawable` background - otherwise the top divider is kept for compatibility with existing legacy versions.

PiperOrigin-RevId: 335867951
2020-10-08 16:13:02 +00:00
rlatapy-luna
8ab270eba5 [TextInputLayout] Fixed clear text icon hide on double click
Resolves https://github.com/material-components/material-components-android/pull/1778

GIT_ORIGIN_REV_ID=add326dcc2cf85ad8c1f5354c0b6c4c6e1e31d45
PiperOrigin-RevId: 335700378
2020-10-08 15:59:57 +00:00
Thomas Vos
38697f5496 [ProgressIndicator] Fix typos in ProgressIndicator.java
Resolves https://github.com/material-components/material-components-android/pull/1772

GIT_ORIGIN_REV_ID=1ac091ca239b7e3c09fed4fe165257fb54671dd8
PiperOrigin-RevId: 335674338
2020-10-08 15:52:53 +00:00
dniz
0ba1ecf78b [TimePicker] Updated some strings translations for i18n
PiperOrigin-RevId: 335419194
2020-10-08 15:49:25 +00:00
leticiars
c8197e3a26 [Text fields] Updated text fields measurements to match spec.
- updated top and bottom padding (updating the heights) except of dense outlined
- updated start and end paddings of layout and helper/error/counter view area
- updated label position of filled
- added padding between prefix/suffix and text input

PiperOrigin-RevId: 334955916
2020-10-08 15:43:54 +00:00
dniz
cf3c091c7a [Dialog] Added string translations for i18n / l10n
PiperOrigin-RevId: 334817470
2020-10-01 11:33:23 -04:00
dniz
23018e1fbf [Badge] Added string translations for i18n / l10n
PiperOrigin-RevId: 334815412
2020-10-01 11:31:44 -04:00
dniz
0845dfe0d1 [Chip] Added string translations for i18n / l10n
PiperOrigin-RevId: 334815304
2020-10-01 11:31:02 -04:00
dniz
467bb88650 [TextField] Added string translations for i18n / l10n
PiperOrigin-RevId: 334813426
2020-10-01 11:30:12 -04:00
dniz
9d1d9773cd [BottomSheet] Added string translations for i18n / l10n
PiperOrigin-RevId: 334800004
2020-10-01 11:29:12 -04:00
dniz
c1a290edb9 [TimePicker] Added string translations for i18n / l10n
PiperOrigin-RevId: 334795547
2020-10-01 11:28:21 -04:00
dniz
d82742695c [DatePicker] Update header title strings to match spec
PiperOrigin-RevId: 334794175
2020-10-01 11:27:11 -04:00
marianomartin
9f3feeacad [TimePicker] Changed title to use right text appearance attr
PiperOrigin-RevId: 334688009
2020-10-01 11:26:22 -04:00
Gabriele Mariotti
a4b008e742 [MaterialTimePicker] Fixed ClassCastException with a Bridge Theme
Resolves https://github.com/material-components/material-components-android/pull/1736

GIT_ORIGIN_REV_ID=c94c507b222fc8b1d97fb2018f65acbcbc9ce90b
PiperOrigin-RevId: 334674979
2020-09-30 17:19:29 -04:00
dniz
98c7cd15ee [DatePicker] Fixed formatting of year month date pattern for year selection dropdown
PiperOrigin-RevId: 334616659
2020-09-30 17:00:29 -04:00
Mattia Pagini
14c70f0b11 [ExtendedFloatingActionButton] Fix padding and spacing
Resolves https://github.com/material-components/material-components-android/pull/1655

GIT_ORIGIN_REV_ID=739773c36195062d498c741f4030a289e0b5d946
PiperOrigin-RevId: 334532552
2020-09-30 16:59:03 -04:00
dniz
af375eb31a [DatePicker] Added string translations for i18n / l10n
Resolves https://github.com/material-components/material-components-android/issues/761
Resolves https://github.com/material-components/material-components-android/issues/868
Resolves https://github.com/material-components/material-components-android/issues/1216
Resolves https://github.com/material-components/material-components-android/issues/1353
Resolves https://github.com/material-components/material-components-android/issues/1764

PiperOrigin-RevId: 334440771
2020-09-29 16:39:24 -04:00
dniz
2f9c2b0491 [Cleanup] Fix formatting of copyrights in xml
PiperOrigin-RevId: 334423264
2020-09-29 16:34:51 -04:00
marianomartin
bad81310d3 [TimePicker] Added the ability to switch to text input mode when double tapping the selected number
PiperOrigin-RevId: 334385102
2020-09-29 09:18:23 -07:00
haodong
bd731f486a [ExtendedFloatingActionButton] Added support to configure different size when collapsed.
PiperOrigin-RevId: 334209576
2020-09-29 09:17:35 -07:00