1719 Commits

Author SHA1 Message Date
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
cketcham
ccc629f064 Only read letter spacing for TextAppearance on API levels where it exists
PiperOrigin-RevId: 330771283
2020-09-10 11:12:47 -04:00
cketcham
bf86d82e61 [DatePicker] Allow for styling dialog close icon color for full screen dialog
PiperOrigin-RevId: 330739711
2020-09-10 11:11:43 -04:00
Gabriele Mariotti
85739c7e05 [MaterialDatePicker] Added a datevalidator for multiple range
Resolves https://github.com/material-components/material-components-android/pull/1622

GIT_ORIGIN_REV_ID=a125081ffc609b969f841cd7a830f35d17861ee9
Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 330725106
2020-09-09 11:25:13 -04:00
haodong
8bba732aaa Automated g4 rollback of changelist 328982034
PiperOrigin-RevId: 329810012
2020-09-09 11:23:29 -04:00
haodong
f330ee8eb5 [ProgressIndicator] Fixed update listener for determinate drawable.
PiperOrigin-RevId: 329806314
2020-09-09 11:22:40 -04:00
Gabriele Mariotti
076ff69343 [TextInputLayout] Added hintText, helperText, placeholderText to restoreInstanceState
Resolves https://github.com/material-components/material-components-android/pull/1629
Resolves https://github.com/material-components/material-components-android/issues/1384

GIT_ORIGIN_REV_ID=3c3ac47f054e7c1f8ae7b7459337f094bfdbe56a
PiperOrigin-RevId: 329741165
2020-09-09 11:21:42 -04:00
marianomartin
e944d1b2a6 [BottomSheet] Fixed issue where peekHeight is more than the height of the contents
PiperOrigin-RevId: 329722448
2020-09-02 13:29:54 -04:00
Material Design Team
d30f4d2d27 [BottomSheet] Changed DialogFragment import to package qualifier in javadoc.
PiperOrigin-RevId: 329011683
2020-08-28 18:09:02 -04:00
haodong
395c2cda63 [ProgressIndicator] Removed custom drawing support to minimize API exposure.
PiperOrigin-RevId: 329001093
2020-08-28 18:07:25 -04:00
cketcham
d4a019359c Update TextAppearance and CollapsingTextHelper to respect letterSpacing set with TextAppearance styles
PiperOrigin-RevId: 328985766
2020-08-28 18:06:30 -04:00
haodong
d615d2ac37 [SwitchMaterial] Added processing status.
PiperOrigin-RevId: 328982034
2020-08-28 18:05:07 -04:00
connieshi
e8e901ecd4 [BottomNavigation] When setting the CollectionItemInfo on a BottomNavigationItemView, figure out its position amongst the visible menu items instead of using its item position.
PiperOrigin-RevId: 328923164
2020-08-28 10:12:15 -04:00
cketcham
6cb28b927b [DatePicker] Update month and year navigation to use the correct color
PiperOrigin-RevId: 328774367
2020-08-28 10:10:06 -04:00
Gabriele Mariotti
487e321497 [Slider] Added options to set thumbStrokeColor and thumbStrokeWidth
Resolves https://github.com/material-components/material-components-android/pull/1653
Resolves https://github.com/material-components/material-components-android/issues/1652

GIT_ORIGIN_REV_ID=ba5cab25a210a34e9d6396101ad045c8cfc8cb92
PiperOrigin-RevId: 328542122
2020-08-26 17:40:22 -04:00
marianomartin
0aed26b8b7 [TimePicker] Changed positive listener to be an OnClickListener
PiperOrigin-RevId: 328539995
2020-08-26 17:39:31 -04:00