1545 Commits

Author SHA1 Message Date
marianomartin
34b2a17fcd [A11y] Fixed focus changing on slider thumbs when they intercept
PiperOrigin-RevId: 317190322
2020-06-19 13:46:07 -04:00
Material Design Team
342ea9ad25 Internal cleanup
PiperOrigin-RevId: 317147378
2020-06-19 13:42:35 -04:00
Eugen Pechanec
a49e8867e9 [Slider] Keyboard navigation fix, part 2
Resolves https://github.com/material-components/material-components-android/pull/1395

GIT_ORIGIN_REV_ID=7762807c9e2b58c4156267c04ae9fbb080ed8835
PiperOrigin-RevId: 317126080
2020-06-18 13:25:31 -04:00
Mattia
924ac3fe85 [ProgressIndicator] Add new minHideDelay property
Resolves https://github.com/material-components/material-components-android/pull/1411
Resolves https://github.com/material-components/material-components-android/issues/1382

GIT_ORIGIN_REV_ID=46d32f9bbb8d0f4c4ba8c7ec36b0a5d0cb61f0ae

Co-authored-by: pekingme <pekingme@gmail.com>
PiperOrigin-RevId: 317108572
2020-06-18 13:23:25 -04:00
Material Design Team
c2d3f9c380 Migrate collection android support library to androidx.
Android X migration

PiperOrigin-RevId: 316918709
2020-06-17 20:48:25 -07:00
dniz
ef64df5adc [Motion] Updated MaterialElevationScale default scale value to 0.85
PiperOrigin-RevId: 316905583
2020-06-17 20:40:56 -07:00
Rafael Wolf de Goes
b39845a452 Automated g4 rollback of changelist 314782767
PiperOrigin-RevId: 316867631
2020-06-17 18:40:38 -07:00
hunterstich
d4a5702319 [BottomAppBar] Update menu replacement animation to coordinate with fab alignment animation.
When calling both setFabAlignmentMode and replaceMenu, the fab alignment animation and menu animation were not properly coordinating. replaceMenu causes a call to onLayout, which immediately updates the menu's translationX, causeing the menu to jump to its final position. This adds a condition to skip the menu position update if a menu animatior is running.

Additionally, the menu's contents were immediately being swapped making the animation look jumpy. This CL also as a method to update the fab alignment and menu resource at the same time so a coordinated animation of: fab scale out/slide start - > menu fade out -> menu replaced -> menu fade in -> fab scale/slide finish, can be run.

PiperOrigin-RevId: 316860005
2020-06-17 18:37:51 -07:00
marianomartin
ba9c2e63ef [Slider] Changed slider to support very small widths
Resolves https://github.com/material-components/material-components-android/issues/1243

PiperOrigin-RevId: 316741418
2020-06-17 18:35:12 -07:00
dniz
3379c45980 [Motion] Added MaterialElevationScale transition
Useful as an exit transition and reenter transition in conjunction with MaterialContainerTransform

PiperOrigin-RevId: 316708216
2020-06-17 18:32:57 -07:00
haodong
5febeba67e [ProgressIndicator] Added auto-cap to limit the indicator corner radius equal to or less than half of the indicator width.
PiperOrigin-RevId: 316531091
2020-06-15 23:58:11 -07:00
haodong
48c4ef019c [ProgressIndicator] Added support of rounded corners.
- Added attribute cornerRadius.
- Added rounded corner support for linear determinate and indeterminate (non-seamless) mode.
- Added rounded corner support for circular determinate and indeterminate mode.
- Added screenshot tests.
- Modified show cases in Catalog to demo this feature.

PiperOrigin-RevId: 316400672
2020-06-15 23:54:35 -07:00
Mattia
584d72555a [ProgressIndicator] Fix for non dismissable progress indicator
Resolves https://github.com/material-components/material-components-android/pull/1391

GIT_ORIGIN_REV_ID=e657fa9409d1e16481f2383ddaa00942c874b8a2
PiperOrigin-RevId: 316209739
2020-06-15 23:52:06 -07:00
Material Design Team
073382034a Migrate android.support.v4.content.ContextCompat to androidx
Android X migration

PiperOrigin-RevId: 315791679
2020-06-11 17:27:51 -07:00
raajkumars
712a2ce920 [datepicker]Fixed issue that causes the Datepicker to highlight the wrong day as today.
Resolves https://github.com/material-components/material-components-android/issues/882

PiperOrigin-RevId: 315317701
2020-06-08 16:32:12 -04:00
leticiars
9b0a8d90e6 [TextInputLayout] Fixed clear icon and placeholder text being displayed when the text field is initialized with input text.
Resolves https://github.com/material-components/material-components-android/issues/1379

PiperOrigin-RevId: 315317199
2020-06-08 16:28:34 -04:00
Eugen Pechanec
3e3bc41abb [Slider] Keyboard navigation fix
Resolves https://github.com/material-components/material-components-android/pull/1364

GIT_ORIGIN_REV_ID=8a0fb870fafba516db529ffee13ea448964b0a9b
PiperOrigin-RevId: 315302829
2020-06-08 16:27:05 -04:00
leticiars
855602bb4f [TextInputLayout] Fixed icon tint not being applied properly when calling set*IconDrawable
Resolves https://github.com/material-components/material-components-android/issues/1142

PiperOrigin-RevId: 314965854
2020-06-05 14:58:39 -04:00
dniz
a65dbfc746 [Color] Added @color/material_on_surface_stroke to res-public
PiperOrigin-RevId: 314924864
2020-06-05 14:53:33 -04:00
connieshi
15c048c0fa [MaterialButtonToggleGroup] Do not update the checked state of any child buttons during onPressedChanged callback.
Resolves https://github.com/material-components/material-components-android/issues/1365

PiperOrigin-RevId: 314798502
2020-06-05 14:51:21 -04:00
Rafael Wolf de Goes
1171418c2b Automated g4 rollback of changelist 314715132
PiperOrigin-RevId: 314782767
2020-06-05 14:49:43 -04:00
Rafael Wolf de Goes
a284edd719 [MaterialButton] Align icon on top
Resolves https://github.com/material-components/material-components-android/pull/1129

GIT_ORIGIN_REV_ID=8d663b1ca7f7bf62e1e5aa8cfc887a33bdbaf9a2
PiperOrigin-RevId: 314715132
2020-06-05 14:46:34 -04:00
marianomartin
ef3f09d4e0 [ShapeableImageView] made stroke field nullable
PiperOrigin-RevId: 314599771
2020-06-04 16:05:33 -04:00
Yurii Blinov
c59acae371 [MaterialAutoCompleteTextView] NullPointerException on Meizu devices closes #1347
Resolves https://github.com/material-components/material-components-android/pull/1354
Resolves https://github.com/material-components/material-components-android/issues/1347

GIT_ORIGIN_REV_ID=506d9c8197cab69d63c1415237f2e75a0af1b155
PiperOrigin-RevId: 314222991
2020-06-02 12:48:41 -04:00
connieshi
470998c3dd Change string annotation from @StringRes to @PluralRes for parameter passed to. #setContentDescriptionQuantityStringsResource
PiperOrigin-RevId: 314122165
2020-06-01 17:03:28 -04:00
connieshi
3d01309475 Change annotation on customBadgeParent parameter in BadgeUtils's methods to be @Nullable and add null check before referencing it.
Resolves https://github.com/material-components/material-components-android/issues/1322

PiperOrigin-RevId: 314122111
2020-06-01 17:00:19 -04:00
Material Design Team
76ffe35fef Cleanup
PiperOrigin-RevId: 313865830
2020-06-01 16:52:06 -04:00
marianomartin
63119cfa94 Fix potential NPE when progress indicators change visibility during initialization
PiperOrigin-RevId: 313826176
2020-06-01 16:45:21 -04:00
marianomartin
61d2be7c00 Remove default shape from style in image view
PiperOrigin-RevId: 313706577
2020-05-29 15:59:58 -04:00
Material Design Team
7cfc63ed35 Fix MaterialButton$SavedState ClassNotFoundException
PiperOrigin-RevId: 313512256
2020-05-29 15:51:33 -04:00
marianomartin
efc0a7f827 [ShapeableImageView] Improve default style
PiperOrigin-RevId: 313428562
2020-05-27 14:31:09 -04:00
marianomartin
30c7b24754 [ShapeableImageView] Add Shape appearance attributes for consistency and to fix autocomplete
PiperOrigin-RevId: 313414124
2020-05-27 14:04:46 -04:00
Ethan Hsu
2b676b46a9 [ShapeableImageView] Allow ShapeableImageView to dynamically update shape appearance
In some cases setShapeAppearanceModel will be called after onSizeChanged but before the first draw. This results in the mask being out of date.

Resolves https://github.com/material-components/material-components-android/pull/1328

GIT_ORIGIN_REV_ID=3d99c7857595ff0ba61c1aaa65963909c1950c10

Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 313402813
2020-05-27 14:03:14 -04:00
dniz
7965098849 [MaterialDatePicker] Disable positive button when invalid or incomplete dates are selected
Resolves https://github.com/material-components/material-components-android/issues/1270
Resolves https://github.com/material-components/material-components-android/pull/1271

PiperOrigin-RevId: 313390751
2020-05-27 13:59:38 -04:00
marianomartin
24f9c06396 [ShapeableImageView] Change strokeWidth to float and support null for stroke color
Resolves https://github.com/material-components/material-components-android/issues/1330
Resolves https://github.com/material-components/material-components-android/issues/1331

PiperOrigin-RevId: 313390374
2020-05-27 13:57:38 -04:00
connieshi
68ccc33dad Set buttonBarButtonStyle in full Material Component themes to use @style/Widget.MaterialComponents.Button.TextButton.
Fixes regression in elevation demo introduced when MaterialButton added support for the android:background attribute.

PiperOrigin-RevId: 313390366
2020-05-27 13:54:35 -04:00
dniz
67e9eaf341 [MaterialDatePicker] Fix check for date input keyboard separator characters for single selection mode
Pointed out in d6b2da8b50 (r39471904)

PiperOrigin-RevId: 313382685
2020-05-27 13:50:17 -04:00
marianomartin
1303e400c1 Change Progress indicator to only show if they are already visible
PiperOrigin-RevId: 313327751
2020-05-27 13:48:38 -04:00
hunterstich
56b33909ee [Motion] Update ScaleProvider to use growing/shrinking naming. Fix MaterialSharedAxis isForward getter naming.
PiperOrigin-RevId: 313217150
2020-05-26 16:02:20 -04:00
connieshi
5889993bb3 Update BottomNavigation to respect left/right system insets
PiperOrigin-RevId: 313180090
2020-05-26 16:00:06 -04:00
dniz
1a6ebc0c56 [Motion] Remove boolean entering from MaterialFade constructor and don't set default duration
This makes MaterialFade more consistent with the other transition patterns

PiperOrigin-RevId: 312718402
2020-05-21 16:58:07 -04:00
raajkumars
b546cbd3ed Updated UtcDates class in datepicker implementation to allow injection of TimeSource instead of directly using Calendar.getInstance().
PiperOrigin-RevId: 312715093
2020-05-21 16:54:41 -04:00
dniz
ae6fcf14e7 [Motion] Add more explanation to the MaterialContainerTransform method Javadocs
PiperOrigin-RevId: 312672592
2020-05-21 16:52:11 -04:00
leticiars
8a5c95c7b9 [TextInputLayout] Fixing crash when calling setBoxCornerRadii when edit text hasn't been added yet.
Resolves https://github.com/material-components/material-components-android/issues/1192

PiperOrigin-RevId: 312517954
2020-05-20 17:13:45 -04:00
dniz
0bdb2cbdbd [MaterialDatePicker] Make customDatePicker method public but restricted for now
PiperOrigin-RevId: 312495780
2020-05-20 17:11:37 -04:00
dniz
f20a91f980 [Motion] Update MaterialContainerTransform to use default scrim color constant instead of theme attribute
PiperOrigin-RevId: 312492669
2020-05-20 17:09:02 -04:00
connieshi
e521fda395 [Slider] Add range and invalid value to IllegalStateException message to make it more clear.
PiperOrigin-RevId: 312474145
2020-05-20 17:07:04 -04:00
Rafael Wolf de Goes
6455e69ba7 Automated g4 rollback of changelist 312323243
PiperOrigin-RevId: 312420120
2020-05-20 17:03:52 -04:00
dniz
d854e78d54 [MaterialDatePicker] Hide customDatePicker method since DateSelector API is not exposed yet. We will consider exposing this method and the DateSelector APIs in 1.3.
PiperOrigin-RevId: 312332065
2020-05-19 18:49:32 -04:00
Rafael Wolf de Goes
cbc46e9c8d [MaterialButton] Align icon on top
Resolves https://github.com/material-components/material-components-android/pull/1129

GIT_ORIGIN_REV_ID=8d663b1ca7f7bf62e1e5aa8cfc887a33bdbaf9a2
PiperOrigin-RevId: 312323243
2020-05-19 18:35:01 -04:00