Material Design Team
76ffe35fef
Cleanup
...
PiperOrigin-RevId: 313865830
2020-06-01 16:52:06 -04:00
dniz
c7c846f026
[Catalog] Fix launching of range picker to calendar mode in date picker demo
...
PiperOrigin-RevId: 313283795
2020-05-27 13:46:50 -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
Rafael Wolf de Goes
6455e69ba7
Automated g4 rollback of changelist 312323243
...
PiperOrigin-RevId: 312420120
2020-05-20 17:03:52 -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
hunterstich
e00df6d075
[Motion] Add support for container transform start and end container colors.
...
PiperOrigin-RevId: 312152199
2020-05-19 10:23:24 -04:00
marianomartin
8f0aa7f8d6
Split Slider into two classes
...
Slider throws an exception when calling getValue with more than one value. Supporting both single value and multiple values in the same class makes it confusing. While not supporting convenience methods getValue and setValue in the multi value class makes it, well, inconvenient.
In addition min, max are also a bit ambiguous since seekBar uses these for valueFrom and valueTo so those were removed.
PiperOrigin-RevId: 311774410
2020-05-18 11:19:05 -04:00
hunterstich
c457774268
[Motion] Fix catalog transition hero shared axis/fade through transitions.
...
PiperOrigin-RevId: 310956443
2020-05-11 16:08:42 -04:00
dniz
46574b5ec8
[Motion] Add target to Hold transitions in demos to keep shadows rendering on child views during transition
...
PiperOrigin-RevId: 310542929
2020-05-08 15:22:29 -04:00
raajkumars
9f719505cb
Fixed Datepicker demo in Catalog application to call the correct method to obtain current date (and time).
...
PiperOrigin-RevId: 310198348
2020-05-07 12:26:26 -04:00
hunterstich
6ab9e11a0e
[Motion] Fix container transform start delay flash
...
Switch the container transform to use a transition listener instead of an animator listener. A transition listener calls onTransitionStart as soon as the transition begins where an animator listener calls onAnimatorStart after the transitions delay, if any, casuing an unwanted visual flash of the end view before the animator starts.
PiperOrigin-RevId: 309977033
2020-05-07 11:26:11 -04:00
dniz
ca2e65443f
Refactor Catalog transition demos to use Dagger injection for default container transform config
...
Also updates Catalog navigation to respect arc motion config
PiperOrigin-RevId: 309297383
2020-05-01 14:54:14 -04:00
dniz
20038e6ffa
Fix Catalog table of contents -> demo landing page container transform z-order bug
...
PiperOrigin-RevId: 309254432
2020-05-01 14:43:24 -04:00
Andrey Derkach
6f589d3f03
[catalog-demo] Fixed crash in bottomsheet on SDK 17
...
Resolves https://github.com/material-components/material-components-android/issues/1251
Resolves https://github.com/material-components/material-components-android/pull/1253
GIT_ORIGIN_REV_ID=926c37fcab4a7585a1df0dde7805f96545841d34
PiperOrigin-RevId: 308813639
2020-04-28 07:05:02 -07:00
hunterstich
d025a3b2c3
[Motion] Replace MaterialVisibility subclass static constructors for standard constructors
...
PiperOrigin-RevId: 308793749
2020-04-28 06:52:44 -07:00
dniz
cd36c2f5e7
[Motion] Update transitions to be based on androidx and add transitions platform subpackage to support Activities, Windows, etc.
...
PiperOrigin-RevId: 308651633
2020-04-27 17:32:30 -04:00
Kirill Olenyov
1b124afa02
[TextInputLayout] Add click listener for error icon
...
Resolves https://github.com/material-components/material-components-android/pull/1215
GIT_ORIGIN_REV_ID=f2ae41512162b09c4e37fa727b465970eb83f2b1
PiperOrigin-RevId: 307624385
2020-04-22 15:06:21 -04:00
dniz
d5faac589b
Update Catalog to use Container Transform transition for navigation
...
PiperOrigin-RevId: 307096919
2020-04-20 14:57:28 -04:00
dniz
4f33aaca8a
Fix Catalog favorite demo toggle not showing the correct state after click
...
PiperOrigin-RevId: 306474528
2020-04-14 22:13:39 -04:00
marianomartin
cc88816b82
[ProgressIndicator] initial commit
...
ORIGINAL_AUTHOR=pekingme
PiperOrigin-RevId: 306469609
2020-04-14 22:11:45 -04:00
connieshi
b6f19d115c
Add toggle to switch between enabling / disabling textfields.
...
Also added a button to toggle between showing/hiding leading icons in the exposed dropdown menu demo.
PiperOrigin-RevId: 305468134
2020-04-09 06:04:41 -07:00
connieshi
72a710bc9a
Update main chip demo to add disable switch.
...
PiperOrigin-RevId: 305340568
2020-04-09 05:44:21 -07:00
hunterstich
2a2792d4fb
[Motion] Remove context parameter from MaterialContainerTransform.
...
PiperOrigin-RevId: 304389543
2020-04-03 09:57:54 -07:00
hunterstich
8bb87cb10f
Fix FadeThrough catalog demo on API 21 and 22.
...
GridLayout needs to use the app: namespace for column and row attributes for API 21 and 22.
PiperOrigin-RevId: 304206794
2020-04-03 09:18:48 -07: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
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
haodong
4132b7c839
[Catalog] Updated the fillColor in some icon drawables for MDC Catalog.
...
PiperOrigin-RevId: 299127777
2020-03-05 13:09:33 -08:00
leticiars
a36826b018
[Catalog][ToggleButton] Adding content description to icon-only buttons.
...
PiperOrigin-RevId: 297642030
2020-02-27 16:00:23 -05:00
leticiars
dbfb6cbdba
[Catalog][Tabs] Putting tabs demo in a scroll view.
...
Resolves https://github.com/material-components/material-components-android/issues/977
PiperOrigin-RevId: 297429398
2020-02-27 15:51:28 -05:00
leticiars
a66fef21e7
[Catalog] Removing unnecessary content description in cards demo.
...
a11y services should read the text of the text views.
PiperOrigin-RevId: 297350692
2020-02-27 15:19:27 -05:00
leticiars
d0fca5fa29
[Catalog] Making swipe-to-dismiss card focusable so that it announces that there are a11y actions available (to dismiss it).
...
PiperOrigin-RevId: 297216974
2020-02-27 15:16:50 -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
afohrman
dee1c711e0
Remove scrim flash from View to View demo.
...
A scrim was flashing in the demo of partial screen transitions; this commit removes the flash.
PiperOrigin-RevId: 296990749
2020-02-25 11:21:06 -05:00
afohrman
624ed46ce7
Add elevation overlays to elevation and shadows main demo.
...
PiperOrigin-RevId: 296229479
2020-02-20 10:09:15 -08:00
afohrman
0d9fe32731
Use transformation icon for transitions catalog demo.
...
And rename it from ic_transformation to ic_transitions.
Currently the shape catalog demo's icon is used for transitions, but there's an icon that was created for transformations that would be more fitting for the transitions catalog demo.
PiperOrigin-RevId: 296210450
2020-02-20 10:05:48 -08:00
afohrman
501e967796
Add view to view container transform demo to the catalog.
...
Add a container transform demo similar to the activity and fragment container transform demos, but for view to view transitions.
PiperOrigin-RevId: 296048253
2020-02-20 10:00:53 -08:00
Felipe Roriz
4ccb052d2b
[MaterialDatePicker] Added a DateValidator for a bounded range.
...
Resolves https://github.com/material-components/material-components-android/pull/972
GIT_ORIGIN_REV_ID=29cbbd569f5284f0bdf4cc1bdad60f93f92856eb
Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 295810824
2020-02-18 18:03:44 -05:00
hunterstich
c589d8df7d
Fix catalog gradle build by including transition Activities in Manifest.
...
PiperOrigin-RevId: 295809600
2020-02-18 17:05:57 -05:00
hunterstich
95b83b504b
Add transitions demo to catalog.
...
PiperOrigin-RevId: 294988834
2020-02-13 14:05:58 -08:00
hunterstich
70f447d77e
Fix gradle build and lint errors for transition package.
...
PiperOrigin-RevId: 294971841
2020-02-13 13:55:08 -08:00
afohrman
0a9b24e146
Add the ability to configure which ContainerTransformConfigurationHelper is used to configure the container transform demos.
...
PiperOrigin-RevId: 294931519
2020-02-13 13:54:12 -08:00
hunterstich
a3a9793fb1
Fix container transform crash on API 21 and 22 due to path unioning.
...
PiperOrigin-RevId: 294924927
2020-02-13 13:49:21 -08:00
hunterstich
bd8e6d28e1
Update catalog to enable compat vector resources after multidexing has been installed on api level 21 and below.
...
PiperOrigin-RevId: 294906229
2020-02-13 10:33:00 -05:00
hunterstich
80e4bfd888
Add ability to restrict a demo feature fragment.
...
PiperOrigin-RevId: 294797214
2020-02-13 10:31:55 -05:00
marianomartin
841ac942a7
Fix lint warning on Gradle build
...
PiperOrigin-RevId: 294498507
2020-02-11 16:15:24 -05:00
johan12345
d7554adce3
Add catalog demo for CollapsingToolbarLayout with mutliple lines
...
Resolves https://github.com/material-components/material-components-android/pull/413
Resolves https://github.com/material-components/material-components-android/issues/6
PiperOrigin-RevId: 294481434
2020-02-11 14:36:03 -05:00
cketcham
0731d28420
Add Range Slider demo to catalog
...
PiperOrigin-RevId: 293864326
2020-02-10 09:57:48 -05:00
afohrman
cb1e892cd9
Adding new attr to the catalog.
...
PiperOrigin-RevId: 293659818
2020-02-07 10:33:50 -05:00
marianomartin
30ec731a28
Remove experimental annotation from ShapeableImageView
...
PiperOrigin-RevId: 293251962
2020-02-05 17:28:32 -05:00
Zhaonian Luan
290fe3029d
[Slider] Fix a typo
...
Resolves https://github.com/material-components/material-components-android/pull/942
GIT_ORIGIN_REV_ID=7515fa2eb135bfec29bf59053888a0dbe3dbdcae
PiperOrigin-RevId: 291759766
2020-01-28 16:11:11 -05:00