haodong
8fbc2e02e9
[ProgressIndicator] Added the custom drawable support (6/7)
...
- Integrated new animator delegate classes to ProgressIndicator.
- Removed the replaced drawable classes.
- Added getPreferredSize function to drawing delegate interface.
- Added new indicator type CUSTOM.
- Fixed some potential NPE logics.
PiperOrigin-RevId: 318197464
2020-06-26 14:10:32 -04:00
marianomartin
f945a0649b
[Slider] Rollback Slider Ally fixes, will address separately
...
PiperOrigin-RevId: 318169160
2020-06-26 14:08:53 -04:00
marianomartin
555356b03f
Internal cleanup
...
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
haodong
7e595b6ce0
[ProgressIndicator] Added the custom drawable support (5/7)
...
- Added a final animator delegate for circular indeterminate mode.
PiperOrigin-RevId: 318099750
2020-06-26 14:06:10 -04:00
haodong
4f5a98ff10
[ProgressIndicator] Added the custom drawable support (4/7)
...
- Added a final animator delegate for seamless linear indeterminate mode.
PiperOrigin-RevId: 318096350
2020-06-26 14:05:22 -04:00
haodong
c22f3f4b98
[ProgressIndicator] Added the custom drawable support (3/7)
...
- Added a final animator delegate for non-seamless linear indeterminate mode.
PiperOrigin-RevId: 318092647
2020-06-26 14:04:37 -04:00
haodong
4337eeaa0d
[ProgressIndicator] Added the custom drawable support (2/7)
...
- Added an final drawable class for all indeterminate types.
- Marked DeterminateDrawable as public and final.
PiperOrigin-RevId: 318088718
2020-06-26 14:03:49 -04:00
haodong
02c3b3d398
[ProgressIndicator] Added the custom drawable support (1/7)
...
- Added an interface for indeterminate animator delegate.
- Marked DrawingDelegate to public.
PiperOrigin-RevId: 318084805
2020-06-26 14:03:06 -04:00
marianomartin
fcbaa82f12
[Slider] Fixed focus changes after thumbs change original order
...
PiperOrigin-RevId: 317788551
2020-06-26 13:59:59 -04:00
leticiars
b274a4aa32
[TextInputLayout][a11y] Changing hint announcement.
...
* To make announcements clearer, removed helper text from hint announcement.
* Calling setLabelFor on helper text view so it's clear it refers to the edit text visually above it.
* Calling setError is enough to let the screen reader decide how to announce the error.
PiperOrigin-RevId: 317651946
2020-06-26 13:59:00 -04:00
leticiars
023e5182bf
[ExposedDropDownMenu] Changed the editable exposed dropdown menu's a11y class name to be EditText instead of a drop down since the primary action for the user is to type.
...
PiperOrigin-RevId: 317650366
2020-06-26 13:58:17 -04:00
marianomartin
20e238869c
[Internal] Added a TextWatcherAdapter class
...
PiperOrigin-RevId: 317355871
2020-06-26 13:57:26 -04:00
Sven Obser
74508c89c8
[CollapsingToolbarLayout] Fixed slight misalignment during transition in multiline mode
...
Resolves https://github.com/material-components/material-components-android/pull/1408
GIT_ORIGIN_REV_ID=9b29f85a8f9e9c52b256fbb4ce3148e19ee503fc
PiperOrigin-RevId: 317322732
2020-06-19 14:09:34 -04:00
marianomartin
aecb3be32f
[A11y] Added Range Start, Range End to slider content description
...
PiperOrigin-RevId: 317315616
2020-06-19 14:05:37 -04:00
dniz
8851f703d8
[Theming] Move Design widget styles back to full themes from Bridge themes
...
Makes the Bridge themes a more true no-op when migrating from a Theme.AppCompat or Theme.Design theme and using legacy Widget.Design component styles
Resolves https://github.com/material-components/material-components-android/issues/740
PiperOrigin-RevId: 317306206
2020-06-19 14:01:34 -04:00
haodong
c5f900b7d5
[ProgressIndicator] Fixed CircularIndeterminateDrawable not resetting animator properly after switching to determinate mode.
...
PiperOrigin-RevId: 317294538
2020-06-19 13:54:27 -04:00
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