1850 Commits

Author SHA1 Message Date
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
Gabriele Mariotti
6d75b92c0a [Chip] Fixed wrong behavior when checked chip with id = NO_ID is added to ChipGroup
Resolves https://github.com/material-components/material-components-android/pull/1648

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

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

GIT_ORIGIN_REV_ID=155b8ca0218835beb02b4e3a745a1026c835a835
PiperOrigin-RevId: 328373122
2020-08-26 09:47:33 -04:00
haodong
f0b8c159b9 [ProgressIndicator] Added the setter for component's visibility after hide animation.
Resolves https://github.com/material-components/material-components-android/issues/1632

PiperOrigin-RevId: 327874780
2020-08-24 18:02:15 -04:00
cketcham
7e37eaa252 [Slider] Adds a warning message if the stepSize or any values are set to float values with a decimal to suggest using integers.
PiperOrigin-RevId: 327685433
2020-08-20 16:49:45 -04:00
momt99
ee93fc15c4 [TextInputLayout] Added id for errorIconView
Resolves https://github.com/material-components/material-components-android/pull/1624
Resolves https://github.com/material-components/material-components-android/issues/1623

GIT_ORIGIN_REV_ID=acf854dc995d734383ed25689b8efd7606f75537
PiperOrigin-RevId: 327673226
2020-08-20 16:48:23 -04:00
marianomartin
a543032c99 [TimePicker] Support formatting the numbers depending on the configuration locale
PiperOrigin-RevId: 327666353
2020-08-20 16:47:25 -04:00
marianomartin
bcf54ab323 [ShapeableImageView] delay initialization of shadows drawable
PiperOrigin-RevId: 327643252
2020-08-20 16:45:54 -04:00
Tad Fisher
a6a750b4ae [NavigationView] Fix obtaining Activity in setupInsetScrimsListener
Resolves https://github.com/material-components/material-components-android/pull/1628
Resolves https://github.com/material-components/material-components-android/issues/1627

GIT_ORIGIN_REV_ID=4042d13c8326144184e46795b217b9172b6552ad
PiperOrigin-RevId: 327446397
2020-08-19 17:44:12 -04:00
haodong
7200cd52b6 [ProgressIndicator] Fixed the style used on indeterminate drawable in the standalone demo.
PiperOrigin-RevId: 327435884
2020-08-19 17:41:57 -04:00
cketcham
5004d5a521 [Slider] Fix the validation of the slider step size and values.
Resolves https://github.com/material-components/material-components-android/issues/1587

PiperOrigin-RevId: 327419448
2020-08-19 17:40:53 -04:00
haodong
90f041d5e7 [ProgressIndicator] Updated style names.
PiperOrigin-RevId: 326696208
2020-08-14 15:24:16 -04:00
hunterstich
8be3efc199 [BottomAppBar] Updated FAB Alignement and menu replacement to fix different length menu res translation x bug
PiperOrigin-RevId: 326652655
2020-08-14 15:08:25 -04:00
Material Design Team
431e092649 [DatePicker] Made some MaterialCalendar related methods/classes public, but still restricted.
PiperOrigin-RevId: 326494150
2020-08-13 16:53:54 -04:00
connieshi
1b0cfaeace [MaterialCardView] Fixed NPE if android:onClick is defined in the layout
Resolves https://github.com/material-components/material-components-android/issues/1054
Resolves https://github.com/material-components/material-components-android/pull/1614

GIT_ORIGIN_REV_ID=b19044de3093f19313e362d378f5cc3b810c5727
PiperOrigin-RevId: 326486876
2020-08-13 16:51:44 -04:00
leticiars
bc4c6e47ae [TextFields] Adjusted label position and edit text padding of filled text field for large font support. Also removed margin of icons when font is large.
PiperOrigin-RevId: 326486771
2020-08-13 16:50:06 -04:00
Gabriele Mariotti
fcea6e8ab2 [TextInputLayout] Added method to set hint with a String resource
Resolves https://github.com/material-components/material-components-android/issues/959
Resolves https://github.com/material-components/material-components-android/pull/1598

GIT_ORIGIN_REV_ID=c156ad372ca4055f70a7021db89d91b915db8b4c
PiperOrigin-RevId: 326249688
2020-08-12 14:19:57 -04:00
connieshi
db4275fbd3 [a11y][Bottomsheet] Add custom action to drag bottomsheet half expanded.
PiperOrigin-RevId: 326237250
2020-08-12 14:17:36 -04:00
haodong
78aa3eac95 [ProgressIndicator] More cleanup of renaming indicatorWidth to indicatorSize.
PiperOrigin-RevId: 326064408
2020-08-11 14:47:40 -04:00
Material Design Team
fb23efff45 [DatePicker] Allow RangedDateSelectors with multiples ranges in different months to be shown correctly.
PiperOrigin-RevId: 326054201
2020-08-11 14:46:48 -04:00
haodong
4d866b060a [ProgressIndicator] Corrected the behavior and comment of the setProgress to align with the framework ProgressBar API.
PiperOrigin-RevId: 326040256
2020-08-11 14:42:59 -04:00
dniz
0df77248d5 [BottomSheet] Changed bottom gesture inset handling to ensure a minimum peek height with a buffer built in, instead of always adding the inset to the peek height (when gesture nav is enabled)
PiperOrigin-RevId: 325866040
2020-08-11 14:41:15 -04:00
Material Design Team
b12c5c5b00 [DatePicker] Speed up calendar performance by only updating certain views when a day is clicked, instead of recreating and redrawing all of them.
PiperOrigin-RevId: 325850735
2020-08-11 14:39:26 -04:00
dniz
cbc7af2054 [BottomNavigationView] Added setItemOnTouchListener method to support custom touch handling
PiperOrigin-RevId: 325814575
2020-08-10 13:25:26 -04:00
hunterstich
05e0496cf9 [Motion] Removed internal listener from container transform after transition ends.
Resolves https://github.com/material-components/material-components-android/issues/1601

PiperOrigin-RevId: 325798894
2020-08-10 13:21:50 -04:00
marianomartin
edbfd15c82 [MaterialShapeDrawables] Fixed compat shadows after ShapePathProvider change
PiperOrigin-RevId: 325797837
2020-08-10 13:20:07 -04:00
leticiars
1f8e76b3a1 [TextInputLayout] Fixed helper text position for large font sizes.
PiperOrigin-RevId: 325521228
2020-08-10 13:18:03 -04:00
haodong
416eab583c [ProgressIndicator] Improved inflation performance.
- Deferred animator initialization to the moment animations start.
- Improved inflation time (1k times) from 1478 ms to 325 ms. For the framework ProgressBar, it's about 190 ms.

PiperOrigin-RevId: 325455356
2020-08-07 15:23:41 -04:00