1844 Commits

Author SHA1 Message Date
Audrius Karosevicius
b7d46c4ba9 Automated g4 rollback of changelist 304610560
PiperOrigin-RevId: 304625391
2020-04-03 10:11:25 -07:00
Audrius Karosevicius
a6c0c4c53a [MaterialButton] Save state
Resolves https://github.com/material-components/material-components-android/pull/1123

GIT_ORIGIN_REV_ID=56600d14c8bab0932f3b3569c94d548d1c1523f2
PiperOrigin-RevId: 304610560
2020-04-03 10:06:26 -07:00
hunterstich
2a2792d4fb [Motion] Remove context parameter from MaterialContainerTransform.
PiperOrigin-RevId: 304389543
2020-04-03 09:57:54 -07:00
marianomartin
4ad50666b2 [MaterialCardView] Checked icon is being squeezed with useCompatPadding
Resolves https://github.com/material-components/material-components-android/issues/795

PiperOrigin-RevId: 304272773
2020-04-03 09:22:16 -07:00
Material Design Team
74921bbbce Update warning suppressions.
PiperOrigin-RevId: 304119651
2020-04-03 09:09:53 -07:00
leticiars
a3d356fdb4 [TextInputLayout] Fixing placeholder not respecting edit text's gravity.
Resolves: https://github.com/material-components/material-components-android/issues/1139
PiperOrigin-RevId: 304037224
2020-04-03 08:53:49 -07:00
melaniegoetz
4e28d9c916 Adjust BottomSheet peek height based on insets
PiperOrigin-RevId: 303819564
2020-04-03 08:44:46 -07:00
leticiars
236ce314e8 [ExposedDropdownMenu] Adding styles to public.xml
Resolves https://github.com/material-components/material-components-android/issues/1141

PiperOrigin-RevId: 303740794
2020-03-30 15:57:05 -04:00
isabellekim
309d71860f Respect android:background attribute for MaterialButton.
PiperOrigin-RevId: 303732939
2020-03-30 15:52:26 -04:00
hunterstich
148938ca84 [Motion] Update MaterialFadeThrough and MaterialFade to use MaterialVisibility and remove context param.
This updaes the remaining transitions to compose themselves of two animators instead of two visibility transitions. This also removes the context parameter from MaterialFadeThrough, MaterialFade and MaterialSharedAxis' constructors.

PiperOrigin-RevId: 303332658
2020-03-27 11:40:38 -04:00
leticiars
7879953930 [ExposedDropdownMenu] it should be getInt instead of getResourceId in order to properly read android:inputType
PiperOrigin-RevId: 302480767
2020-03-24 11:37:26 -04:00
Material Design Team
b9428363d7 Add nullness annotations to input parameters
PiperOrigin-RevId: 301697159
2020-03-24 11:31:35 -04:00
hunterstich
5b07d02c8e Refactor MaterialSharedAxis to be composed of two animators.
Resolves https://github.com/material-components/material-components-android/issues/1047#issuecomment-594966218

PiperOrigin-RevId: 301619025
2020-03-18 17:37:50 -04:00
leticiars
6e72652310 [ExposedDropdownMenu] Fixing width being too small when it's wrap_content.
Resolves https://github.com/material-components/material-components-android/issues/1001

PiperOrigin-RevId: 301415436
2020-03-18 17:34:28 -04:00
marianomartin
368b54c0ee Fix setItemRippleColor links
PiperOrigin-RevId: 300799013
2020-03-13 16:01:11 -07:00
isabellekim
b70cc90388 Fix javadoc errors in ExpandableBehavior.
PiperOrigin-RevId: 300777345
2020-03-13 13:36:21 -04:00
hunterstich
dce680b91a Fix BottomSheet java doc lint errors
PiperOrigin-RevId: 300605854
2020-03-13 11:13:06 -04:00
connieshi
0687ca80b0 Fix javadocs errors in Chip and ChipDrawable.
PiperOrigin-RevId: 300592847
2020-03-13 11:11:29 -04:00
haodong
6d5d939134 [Javadoc] Fixed errors in Slider.java
PiperOrigin-RevId: 300572596
2020-03-13 11:09:36 -04:00
isabellekim
358f9a7a3d Add @deprecated to javadocs for methods and classes marked @Deprecated.
PiperOrigin-RevId: 300567533
2020-03-13 11:07:17 -04:00
isabellekim
5ef93e9351 Javadoc updates for BottomNavigationView.
PiperOrigin-RevId: 300567464
2020-03-13 11:05:25 -04:00
isabellekim
f90d1cf108 Update javadocs on CircularRevealHelper.
PiperOrigin-RevId: 300567339
2020-03-13 11:03:18 -04:00
marianomartin
f90181efef Fix javadocs errors for DatePicker, Transformation, and FAB
PiperOrigin-RevId: 300553804
2020-03-13 11:00:54 -04:00
marianomartin
841fae9258 Fix javadocs issues in Shape package
PiperOrigin-RevId: 300547341
2020-03-13 10:57:59 -04:00
connieshi
facc94d1a0 Fix javadoc issues in BadgeDrawable
PiperOrigin-RevId: 300421740
2020-03-13 10:54:24 -04:00
hunterstich
fe1651939c Fix motion java doc lint errors
PiperOrigin-RevId: 300415917
2020-03-13 10:52:20 -04:00
leticiars
c86a61c3ba Updating javadocs for TextInputLayout
PiperOrigin-RevId: 300414100
2020-03-13 10:50:34 -04:00
leticiars
b8f00efb55 Updating javadocs for Tooltip
PiperOrigin-RevId: 300414090
2020-03-13 10:48:57 -04:00
isabellekim
c30abe9d7a Update javadocs for Snackbar.
PiperOrigin-RevId: 300406441
2020-03-13 10:46:58 -04:00
leticiars
fd848e8aac [ExposedDropdownMenu] Fixing double click sound when layout is clicked.
PiperOrigin-RevId: 299828619
2020-03-09 11:50:08 -07:00
Material Design Team
5213b46edd [Chip] Support setting checked icon's tint via xml attribute
PiperOrigin-RevId: 299429881
2020-03-09 10:45:57 -07:00
leticiars
2bf42a74bb [TextInputLayout] Calling clear() instead of setting text to null in ClearTextEndIconDelegate so that TalkBack announces that text was cleared.
PiperOrigin-RevId: 299417412
2020-03-09 09:39:10 -07:00
leticiars
d1850a3d78 [ExposedDropdownMenu] Implement workaround to inputType=none not working + move MaterialAutoCompleteTextView to textfield/ directory.
The alternative to android:editable="false" (which is deprecated) is to set inputType="none", however due to a framework bug that has no effect. This change makes it so it works as expected.

PiperOrigin-RevId: 299411110
2020-03-09 09:36:24 -07:00
melaniegoetz
2a188e507a Change Theme.MaterialComponents.BottomSheetDialog to use new bottomSheet style
Fixes: https://github.com/material-components/material-components-android/issues/1086
PiperOrigin-RevId: 299402955
2020-03-09 09:25:30 -07:00
marianomartin
7e99fcb67d Fix issue when setting padding and ShapeableImageView background
PiperOrigin-RevId: 299359752
2020-03-06 11:39:32 -08:00
isabellekim
6602bf622d Open access to MaterialColors.
Resolves https://github.com/material-components/material-components-android/issues/949

PiperOrigin-RevId: 299343895
2020-03-06 14:34:11 -05:00
melaniegoetz
d0f13768b5 Make @style/Widget.MaterialComponents.BottomSheet public
PiperOrigin-RevId: 299139774
2020-03-05 13:11:40 -08:00
hunterstich
0f0942bdfd Fix container transform flashing on API 22.
Resolves https://github.com/material-components/material-components-android/issues/1061

PiperOrigin-RevId: 298752245
2020-03-05 13:05:24 -08:00
Material Design Team
6ad240dfc0 Pass the item ID through to the item view which is created by the RecyclerView if the ID is greater than zero.
PiperOrigin-RevId: 298611118
2020-03-05 13:00:06 -08:00
cketcham
5a34bad28b Update content description for Slider
It shouldn't add the content description of the Slider if it doesn't exist.
It shouldn't add the min and max values if there's only 1 thumb.

PiperOrigin-RevId: 298453769
2020-03-05 12:58:24 -08:00
Paul Woitaschek
e2224fa0a4 Correctly initialize the slider state on instance state restoration.
Resolves https://github.com/material-components/material-components-android/pull/1072

GIT_ORIGIN_REV_ID=3a2adb451ab8b2879ea409793d0ebd6c60131f3d
PiperOrigin-RevId: 298379846
2020-03-02 15:37:08 -05:00
marianomartin
5706775bfd Expose customDatePicker so people don't have to limit to range or
single date.

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

PiperOrigin-RevId: 297875559
2020-02-28 15:12:40 -05:00
isabellekim
b5f4c788c6 Remove android:background from default MaterialButton styles in preparation for changing MaterialButton to read the android:background attribute.
PiperOrigin-RevId: 297875537
2020-02-28 15:10:26 -05:00
marianomartin
bbd645a341 [TabLayout] Mutate tabSelectedIndicator before tinting
Resolves https://github.com/material-components/material-components-android/issues/1029
Resolves https://github.com/material-components/material-components-android/issues/963

PiperOrigin-RevId: 297866034
2020-02-28 13:02:51 -05:00
cketcham
84a351281e Delay validation for Slider valueTo, valueFrom, stepSize, and values
This enables initially setting things that conflict. For instance if the current valueFrom is 0 and valueTo is 1, it's now possible to call setValueFrom() with something greater than 1 without immediately throwing an exception.

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

PiperOrigin-RevId: 297671715
2020-02-28 09:35:36 -05:00
connieshi
ded0c3ff61 Initialize chipCornerRadius to -1 instead of 0 so it would not ignore a user who sets the corner radius to 0.
Resolves https://github.com/material-components/material-components-android/issues/1058

PiperOrigin-RevId: 297422651
2020-02-27 15:49:57 -05:00
afohrman
bbb534e256 Deprecate transformation package in favor of MaterialContainerTransform.
The new recommendation is to use com.google.android.material.MaterialContainerTransform instead of the transformation library.

Also delete the catalog demo for transformation.

PiperOrigin-RevId: 297171082
2020-02-27 15:13:44 -05:00
isabellekim
5834d44a85 Update Chip close icon tint to have sufficient contrast.
PiperOrigin-RevId: 296985379
2020-02-24 18:34:21 -05:00
cketcham
0d709391bc Update primary color to match spec
PiperOrigin-RevId: 296949207
2020-02-24 18:30:14 -05:00
hunterstich
05804ddade Improve error message when container transform is unable to find an ancestor for the drawing view id.
PiperOrigin-RevId: 296884487
2020-02-24 18:28:14 -05:00