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
connieshi
157d9cefd4
[Internal] Add utils class for Toolbars. Restrict it to library.
...
PiperOrigin-RevId: 334174563
2020-09-28 11:51:43 -07:00
dniz
8f455c0b90
[DatePicker] Fixed issue where default selection date would visually stay selected when choosing different date
...
PiperOrigin-RevId: 334167845
2020-09-28 11:49:51 -07:00
Gabriele Mariotti
7c6dc5f70b
[Slider] Fixed trackSidePadding when thumbRadius >= 16dp
...
Resolves https://github.com/material-components/material-components-android/pull/1584
GIT_ORIGIN_REV_ID=f75d389074e7b45fc346f3629d4deaa07222b483
Co-authored-by: pekingme <pekingme@gmail.com>
PiperOrigin-RevId: 333581466
2020-09-25 09:17:03 -07:00
dniz
a6d788f28e
[CollapsingToolbarLayout] Added collapsingToolbarLayoutStyle default theme attribute
...
PiperOrigin-RevId: 333515330
2020-09-24 09:02:13 -07:00
marianomartin
4fa13416ec
[TimePicker] Added content description to button to switch input modes
...
PiperOrigin-RevId: 333398589
2020-09-24 09:00:07 -07:00
Gabriele Mariotti
8bcc8ee371
[TextInputLayout] Fixed wrong position of the counter when helper or error text are removed
...
Resolves https://github.com/material-components/material-components-android/pull/1726
GIT_ORIGIN_REV_ID=c8edb8beee34d0a479d763bbfbbe6936dc8b6d85
Co-authored-by: pekingme <pekingme@gmail.com>
PiperOrigin-RevId: 333351975
2020-09-24 08:59:14 -07:00
dniz
89a1bf883f
[Snackbar] Added ability to have Snackbar position respond to anchor view layout changes
...
Disabled by default to avoid changes in behavior and breakages in tests
PiperOrigin-RevId: 333299318
2020-09-23 12:10:02 -07:00
Gabriele Mariotti
391d1f8ac5
[Snackbar] Changed dimens according to spec
...
Resolves https://github.com/material-components/material-components-android/pull/1711
Resolves https://github.com/material-components/material-components-android/issues/1721
GIT_ORIGIN_REV_ID=c039075b65833724b59ecdfde1ba70ed8ae5b8eb
Co-authored-by: pekingme <pekingme@gmail.com>
PiperOrigin-RevId: 333292492
2020-09-23 12:08:37 -07:00
dniz
5507687b19
[DatePicker] Updated default selection-based openAt logic to consider valid calendar constraints
...
Fixes crash where default selection is outside of calendar constraints bounds. With this commit, in that case we now show the default selection date in the header, but the user can still only choose a new date within the constraints.
Follow-up to:
- https://github.com/material-components/material-components-android/pull/1651
- https://github.com/material-components/material-components-android/issues/1199
PiperOrigin-RevId: 332455279
2020-09-18 14:02:24 -07:00
Gabriele Mariotti
ea763862b4
[MaterialDatePicker] Fixed the filled range with RTL layout
...
Resolves https://github.com/material-components/material-components-android/pull/1731
GIT_ORIGIN_REV_ID=6be1c14b2f4a93d180ffe1f760cec5f277f03613
PiperOrigin-RevId: 332245028
2020-09-17 11:10:37 -07:00
marianomartin
5541f027d2
[DatePicker] Delay showing validation error by 1 second
...
PiperOrigin-RevId: 332116212
2020-09-17 11:08:20 -07:00
marianomartin
91c972c7f3
[MaterialTimePicker] Added setters for the title string
...
PiperOrigin-RevId: 332028135
2020-09-16 11:47:20 -07:00
dniz
d5eeea6247
[MaterialToolbar] Added navigationIconColor attribute
...
PiperOrigin-RevId: 332019070
2020-09-16 11:45:41 -07:00
dniz
4a0f60c62d
[AppBarLayout] Added isLifted() getter
...
PiperOrigin-RevId: 331606863
2020-09-15 09:27:58 -07:00
marianomartin
c0be2c0cb1
[MaterialTimePicker] Documented hour and minutes ranges
...
PiperOrigin-RevId: 331209662
2020-09-15 09:20:55 -07:00
leticiars
22973ff103
[TextFields] Added expandedHintEnabled attribute (true by default). If set to false it allows for the hint to always be in its collapsed state.
...
If false it also allows for the placeholder text and prefix/suffix to be displayed when the text field is empty.
Resolves https://github.com/material-components/material-components-android/issues/1459
Resolves https://github.com/material-components/material-components-android/issues/1644
Resolves https://github.com/material-components/material-components-android/pull/1645
Resolves https://github.com/material-components/material-components-android/pull/1163
PiperOrigin-RevId: 331181181
2020-09-11 14:52:40 -04:00
hunterstich
7d3cb73ca7
[ExtendedFloatingActionButton] Improved text label expand/collapse animation
...
PiperOrigin-RevId: 331166249
2020-09-11 14:51:59 -04:00
hunterstich
8ec11a1460
[BottomNavigationView] Updated menu item selection animation to match spec
...
Bottom nav item labels now slide up when fading in instead of scaling.
PiperOrigin-RevId: 331163684
2020-09-11 14:51:00 -04:00
cketcham
c65a26281b
[DatePicker] Updates the color of the month labels in fullscreen mode
...
PiperOrigin-RevId: 331017575
2020-09-11 14:26:09 -04:00
Gabriele Mariotti
b48b445fb8
[TextInputLayout] Fixed wrong hint position when an error is shown and field is empty and unfocused
...
Resolves https://github.com/material-components/material-components-android/pull/1661
GIT_ORIGIN_REV_ID=8eccce1bee2f331b1441540985435cefe4e40b67
PiperOrigin-RevId: 330956944
2020-09-11 14:24:34 -04:00
Gabriele Mariotti
193ce2dc48
[DatePicker] Changed openAt to default based on selection, if not provided
...
Resolves https://github.com/material-components/material-components-android/pull/1651
GIT_ORIGIN_REV_ID=09bf7a4ddb3cba2e55efaab45f09765e7910544b
PiperOrigin-RevId: 330938479
2020-09-10 11:15:59 -04:00
hunterstich
06322aadb9
[Motion] Updated MaterialFadeThrough to respect client-set alpha values on target views.
...
Resolves https://github.com/material-components/material-components-android/issues/1701
PiperOrigin-RevId: 330932760
2020-09-10 11:15:14 -04:00
Gabriele Mariotti
df0401bd29
[MaterialCardView] Added options to set custom checkedIcon size and margin
...
Resolves https://github.com/material-components/material-components-android/pull/1613
GIT_ORIGIN_REV_ID=ace8cb8b2e55806760e4d28214bd72afb46a6592
PiperOrigin-RevId: 330932167
2020-09-10 11:14:31 -04:00
Material Design Team
fc1208f4a4
[TextInputLayout] Allow hint text set in TextInputLayout to be passed on to the Autofill service
...
Resolves https://github.com/material-components/material-components-android/issues/1412
PiperOrigin-RevId: 330780010
2020-09-10 11:13:38 -04:00