marianomartin
e5f7951b01
[Chip] Support setting text size without changing TextAppearance
...
PiperOrigin-RevId: 320083914
2020-07-08 15:00:37 -04:00
marianomartin
272ce50950
[TimePicker] Renamed radius attr to avoid conflicts
...
PiperOrigin-RevId: 319985243
2020-07-08 14:59:44 -04:00
marianomartin
4eea03dff5
[RangeSlider] Fixed number of values changing in RangeSlider
...
https://github.com/material-components/material-components-android/issues/1460
https://github.com/material-components/material-components-android/issues/1393
PiperOrigin-RevId: 319980426
2020-07-07 11:01:15 -04:00
dniz
6b63c117fd
[Motion] Changed MaterialContainerTransform to skip transition instead of crash when no view bounds
...
Resolves https://github.com/material-components/material-components-android/issues/1377
PiperOrigin-RevId: 319977600
2020-07-07 11:00:27 -04:00
marianomartin
42aa5015a2
[TimePicker] Added a theme attribute
...
PiperOrigin-RevId: 319977105
2020-07-07 10:59:37 -04:00
leticiars
7b5aea2ca3
[TextInputLayout] Fixed padding for prefix/suffix and label in RTL being wrong.
...
PiperOrigin-RevId: 319873647
2020-07-07 10:57:16 -04:00
marianomartin
26fc10cfc9
[MaterialShapeDrawable] Fixed exception with int division
...
Resolves https://github.com/material-components/material-components-android/issues/937
PiperOrigin-RevId: 319778531
2020-07-06 11:10:33 -04:00
marianomartin
a6935dc73d
[TimePicker] Added haptic feedback
...
PiperOrigin-RevId: 319287390
2020-07-06 11:09:40 -04:00
hunterstich
3c9096d451
[Motion] Fix zero-length motion path container transform bug.
...
getPosTan, which calculates the translation of the conatienr bounds, no-ops if the startView doesn't move to a new position (when the startView and endView are top aligned and centered horizontally on one another). This was causing motionPathPositions, the int array holding the x and y of the animated bounds to never be initialized, defaulting to 0, and throwing off the bounds calculation.
This CL updates the int array with actual default x and y values so when getPosTan no-ops, the motionPathPosition array contains the correct values.
Resolves https://github.com/material-components/material-components-android/issues/1161
PiperOrigin-RevId: 319247326
2020-07-06 11:08:36 -04:00
marianomartin
3960a13a85
[TimePicker] Update toggle constraints on visibility changed
...
PiperOrigin-RevId: 319082558
2020-06-30 16:10:53 -04:00
haodong
984738c067
[ProgressIndicator] Added logic to respond to system animation scale settings for determinate types.
...
PiperOrigin-RevId: 319038716
2020-06-30 16:07:44 -04:00
marianomartin
61e927ed5a
[ExtendedFloatingActionButton] Fixed ripple issue
...
Resolves https://github.com/material-components/material-components-android/issues/1359
PiperOrigin-RevId: 319038380
2020-06-30 16:07:02 -04:00
haodong
4ccec4ff71
[ProgressIndicator] Fixed indeterminate types disco when system animation duration scale is off.
...
- Removed constant for debugging animation speed.
- Added a condition to check if resetting start offset for circular indeterminate type is valid.
- Added a condition to check if rotating color for seamless indeterminate type is valid.
PiperOrigin-RevId: 319035241
2020-06-30 16:06:17 -04:00
marianomartin
cd6b062519
[TimePicker] Added a TimePicker component
...
This should be considered a pre-alpha of timepicker.
Try the component today, on the latest snapshot:
https://github.com/material-components/material-components-android/blob/master/docs/using-snapshot-version.md
The initial API offers feature parity with android.app.TimePickerDialog
Resolves https://github.com/material-components/material-components-android/issues/690
PiperOrigin-RevId: 318879238
2020-06-29 16:24:46 -04:00
haodong
26021ed418
[ProgressIndicator] Fixed incorrectly setting drawable's visibility when switching indeterminate mode for API19.
...
PiperOrigin-RevId: 318877353
2020-06-29 16:21:45 -04:00
haodong
0b443ad51f
[ProgressIndicator] Changed interpolator for seamless linear indeterminate type from LINEAR_OUT_SLOW_IN to FAST_OUT_SLOW_IN.
...
PiperOrigin-RevId: 318866756
2020-06-29 16:20:21 -04:00
haodong
e44804ffd4
[ProgressIndicator] Relocated the logic of animator disabling.
...
- Removed the flag for disabling animators in drawable classes.
- Rewrote the logic to disable animators in ProgressIndicator class.
- Some cleanup.
PiperOrigin-RevId: 318823871
2020-06-29 16:17:51 -04:00
connieshi
8544f7acc2
[Chip] Include font padding.
...
Resolves https://github.com/material-components/material-components-android/issues/1424
PiperOrigin-RevId: 318817230
2020-06-29 16:17:12 -04:00
marianomartin
811d45216b
[DatePicker] Fixed crash when GridView has not rendered the last child
...
Resovles https://github.com/material-components/material-components-android/issues/1338
PiperOrigin-RevId: 318811845
2020-06-29 16:16:37 -04:00
Robert Williams
77a0a87fb1
[CollapsingToolbarLayout] Use correct layout to calculate expanded bounds
...
Resolves https://github.com/material-components/material-components-android/pull/1432
GIT_ORIGIN_REV_ID=6041d791702d16e7501289f939fa01874b16b32c
PiperOrigin-RevId: 318639226
2020-06-29 09:28:40 -04:00
marianomartin
71fcb73c7f
[Slider] Changed slider thumbs to prevent crossing each other
...
PiperOrigin-RevId: 318502401
2020-06-26 14:13:27 -04:00
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