3486 Commits

Author SHA1 Message Date
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
Gabriele Mariotti
b3913cb09c [MaterialDatePicker] Added DateValidatorPointForwardTest
Resolves https://github.com/material-components/material-components-android/pull/1625

GIT_ORIGIN_REV_ID=6729932302ac42c01d51b6ccf463cc80d396817f
PiperOrigin-RevId: 330553246
2020-09-09 11:24:31 -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
afohrman
4f5e045a4b [Motion] Added content to the contact card in the View Container Transform demo.
PiperOrigin-RevId: 329356569
2020-08-31 16:05:03 -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
afohrman
653701d75c [Motion] Added a contact card to View Container Transform demo and created an expanded card for cards transition into.
This commit adds the for the separate transitions. The contact card is blank for now.

PiperOrigin-RevId: 328965507
2020-08-28 18:04:16 -04:00
dniz
474f912c22 [Motion] Update doc with guidance about "Container transform: fade through variant"
Suggestion from https://github.com/material-components/material-components-android/issues/1307#issuecomment-679327386

PiperOrigin-RevId: 328946547
2020-08-28 18:02:46 -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
dniz
77c71f389e [Motion] Added resource links to documentation
PiperOrigin-RevId: 328788844
2020-08-28 10:11: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
hunterstich
0314540366 [Motion] Fix catalog hero demo from loosing scroll position when returning to album list.
Resolves https://github.com/material-components/material-components-android/issues/1349

PiperOrigin-RevId: 328730266
2020-08-28 10:08:49 -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
leticiars
d09b416370 [Documentation] Renamed timepicker to TimePicker
PiperOrigin-RevId: 328334332
2020-08-26 09:46:50 -04:00
marianomartin
71941cd1c4 [Catalog] resolve lint issue with linear layout
PiperOrigin-RevId: 328146509
2020-08-24 18:03:48 -04:00
hunterstich
35b914e438 [Motion] Swapped shared axis code snippet order for better readability
PiperOrigin-RevId: 328145615
2020-08-24 18:03:05 -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
dniz
a83011d383 [Motion] Updated Catalog container transform enter/return configuration Slider step sizes to fix crash
PiperOrigin-RevId: 327863602
2020-08-24 18:01:26 -04:00
leticiars
06787e34ee [Catalog] Small javadoc update.
PiperOrigin-RevId: 327816511
2020-08-21 16:15:54 -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
afohrman
3f52e7f86d [Motion] Fix intermediate flash during view container transform demo.
Also rename endCard as endView in preparation for a change that shows separate end views depending on whether the FAB or a card was pressed.

PiperOrigin-RevId: 327483783
2020-08-19 17:45:44 -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
Gabriele Mariotti
d88ff770be [Doc] Updated FloatingActionButton doc
Resolves https://github.com/material-components/material-components-android/pull/1619

GIT_ORIGIN_REV_ID=a04d0e15497d545483d75cad986ecf1dc71f632b
PiperOrigin-RevId: 327242012
2020-08-18 16:32:01 -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
dniz
f00cd57f13 [Motion] Formatted AndroidX vs Platform transitions info in Motion.md doc
PiperOrigin-RevId: 326497065
2020-08-13 16:54:52 -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
marianomartin
255a23f467 [Docs] Changed path for timepicker.md
PiperOrigin-RevId: 326438581
2020-08-13 13:21:13 -04:00
marianomartin
c11ef51890 [TimePicker] Added docs
PiperOrigin-RevId: 326435948
2020-08-13 09:48:17 -04:00
Yongce Tu
907746193e Automated g4 rollback of changelist 324239369
PiperOrigin-RevId: 326431616
2020-08-13 09:47:42 -04:00
afohrman
acdd3a93b8 [Motion] Made shared axis end view in catalog demo scrollable.
The bottom of the view was cut off in some screen sizes. Making the layout scrollable fixes the issue.

PiperOrigin-RevId: 326317485
2020-08-13 09:46:46 -04:00