150 Commits

Author SHA1 Message Date
pekingme
2019bf90be [Tokens] Upgraded to version v0.147.
PiperOrigin-RevId: 492551875
2022-12-02 18:34:12 -05:00
pekingme
17e3581642 [Tokens] Upgraded to v0.145
PiperOrigin-RevId: 492291163
2022-12-02 15:11:37 +00:00
pekingme
b9963a5212 [Tokens][Android] Omitted more comments when configuration specifies no comments.
PiperOrigin-RevId: 492290497
2022-12-02 15:04:22 +00:00
pekingme
8ee6c00f73 [Tokens] Upgraded to v0.142
Added lStar CSLs for new neutral palettes in v31 and above.

PiperOrigin-RevId: 491693724
2022-11-30 17:31:11 -05:00
pekingme
12ef329276 [Tokens] Upgraded to v0.141
PiperOrigin-RevId: 490324728
2022-11-23 15:13:20 -05:00
pekingme
b2b546b205 [Tokens] Internal updates.
PiperOrigin-RevId: 490295053
2022-11-23 15:11:19 -05:00
rightnao
d5b41c185f [ExtendedFloatingActionButton] Add a extendToWrapContent attribute that can disable the current eFAB behavior of extending to wrap content (thus allowing extend to return to its original width before shrinking)
Resolves https://github.com/material-components/material-components-android/issues/3006

PiperOrigin-RevId: 487376415
2022-11-10 18:23:28 +00:00
pekingme
567cc5494b [Tokens] Refresh the output to reflect the current version.
PiperOrigin-RevId: 484515702
2022-10-28 07:46:16 -07:00
pubiqq
8cd2341a79 [Internal] Set the outline to a path whenever possible
Resolves https://github.com/material-components/material-components-android/pull/2934

GIT_ORIGIN_REV_ID=2ef0a3a6d9aa130e652fccbfc3d79f1345f2b32c
PiperOrigin-RevId: 478146360
2022-10-03 19:15:11 +00:00
rightnao
9db041cc52 [ExtendedFloatingActionButton] Update extend/shrink motion spec
PiperOrigin-RevId: 468201647
2022-08-17 14:58:55 -04:00
pubiqq
41d4460744 [Internal] Simplify size computations for some views
Resolves https://github.com/material-components/material-components-android/pull/2807

GIT_ORIGIN_REV_ID=199fecd89fb69acaaab2689a4f53966ea1dbd7de
PiperOrigin-RevId: 464151991
2022-08-04 14:24:11 -04:00
pekingme
2719859ec8 [Tokens][exFAB] Integrate component tokens.
PiperOrigin-RevId: 459541412
2022-07-07 12:31:46 -07:00
pekingme
5ff3930833 [FAB][Cleanup] Reorder styles.
PiperOrigin-RevId: 458305149
2022-07-06 04:57:47 -07:00
pekingme
65a3ac555a Automated g4 rollback of changelist 457648699
PiperOrigin-RevId: 458256849
2022-07-06 04:53:45 -07:00
Material Design Team
7e9045b8b7 Automated g4 rollback of changelist 457576897
PiperOrigin-RevId: 457648699
2022-06-29 13:40:35 +00:00
pekingme
ac5c4df3ae [Tokens][FAB] Integrate component tokens.
PiperOrigin-RevId: 457576897
2022-06-27 23:30:10 +00:00
hunterstich
5c0003ca81 [ExtendedFloatingActionButton] Updated show and hide motion specs to use motion tokens.
Resolves https://github.com/material-components/material-components-android/issues/2086

PiperOrigin-RevId: 453457969
2022-06-07 18:51:11 -07:00
pekingme
25482b1425 [FAB] Migrated "regular/default" sized styles to new shape system.
PiperOrigin-RevId: 452817382
2022-06-03 15:49:33 -07:00
conradchen
ea12f84f2b [FAB] Fix the issue that state-list animator cannot be customized
Before this CL we always reset the state-list animator when FAB elevation changes, i.e., any state-list animators set via XML will be overridden because elevation is set later. Fixes this by storing the default state-list animator created in onElevationsChanged() and check if it's been overridden before we update and reset it.

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

PiperOrigin-RevId: 452073249
2022-05-31 13:48:53 -07:00
pekingme
3db2109311 [ExFAB] Migrated to new shape system.
PiperOrigin-RevId: 450741383
2022-05-25 15:16:34 -04:00
pekingme
30bb583f20 [FAB] Migrated "Large" styles to use new shape system.
PiperOrigin-RevId: 450021484
2022-05-23 11:18:39 -04:00
pekingme
acc75697ea [FAB] Added "Small" styles with new shape system.
PiperOrigin-RevId: 450003295
2022-05-23 11:13:49 -04:00
rightnao
934985ec53 [FAB] Updated FAB to use new motion attributes.
PiperOrigin-RevId: 449046932
2022-05-16 17:00:22 -04:00
pubiqq
3ca41be8f0 [General] Fix typos
Resolves https://github.com/material-components/material-components-android/pull/2654

GIT_ORIGIN_REV_ID=b8f6728979875629f2c813ef90d2f671cf56b4eb
PiperOrigin-RevId: 442852630
2022-04-19 14:48:55 -04:00
Material Design Team
4e97f7879b Suppress new nullness warnings when stub for View.getLayoutParams is added.
PiperOrigin-RevId: 433207765
2022-03-09 22:07:00 +00:00
Material Design Team
cfc00aa5a3 Update android core class definitions across material
PiperOrigin-RevId: 414839941
2021-12-08 14:56:25 +00:00
Material Design Team
a487c89185 Internal change
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
pekingme
9de9319b1e [Resources] Added styles in res-public.
PiperOrigin-RevId: 403451624
2021-10-18 15:31:13 -04:00
Nitish Bhatt
1f7202a953 [FloatingActionButton]add setter for max image size
Resolves https://github.com/material-components/material-components-android/pull/2415

GIT_ORIGIN_REV_ID=3f0603a3f169c12d02c127726dff091c94f3561a
PiperOrigin-RevId: 402552778
2021-10-12 11:40:58 -04:00
jeremymuhia
785f5d4895 [M3][FAB] update FAB dev doc
PiperOrigin-RevId: 396900654
2021-09-16 13:35:27 -07:00
jeremymuhia
054f1dba1e [M3][FAB] add tertiary FAB color variant
PiperOrigin-RevId: 395721687
2021-09-15 12:22:52 -07:00
jeremymuhia
ca8f4cbb80 [M3][Large FAB] create M3 styles for large FAB
PiperOrigin-RevId: 392701548
2021-08-24 15:55:38 -04:00
jeremymuhia
6ba1a9206f [M3][eFAB] create M3 styles for extended FAB
PiperOrigin-RevId: 392502584
2021-08-24 15:42:13 -04:00
jeremymuhia
b06977b5db [M3][FAB] create M3 styles for regular FAB
PiperOrigin-RevId: 392072670
2021-08-23 09:45:13 -07:00
Material Design Team
f9a1b170dd Internal cleanup.
PiperOrigin-RevId: 379505436
2021-06-15 22:02:19 -07:00
Material Design Team
ed719b2ad9 Update @SuppressWarnings annotations for go/nullness diagnostics
PiperOrigin-RevId: 377367820
2021-06-09 18:06:34 +00:00
hunterstich
b4cca5b8a4 [FAB] Update FAB to use motion theming for show/hide animation.
PiperOrigin-RevId: 368831990
2021-04-16 18:03:35 -04:00
Material Design Team
5c83026c17 [ExtendedFloatingActionButton] Add support for initial show animation.
This adds setAnimateShowBeforeLayout() method to override the default behavior. With this change a button which is initially hidden (Visibility.GONE) can be animated in by calling show().

PiperOrigin-RevId: 338508716
2020-10-22 19:21:43 -04:00
Mattia Pagini
14c70f0b11 [ExtendedFloatingActionButton] Fix padding and spacing
Resolves https://github.com/material-components/material-components-android/pull/1655

GIT_ORIGIN_REV_ID=739773c36195062d498c741f4030a289e0b5d946
PiperOrigin-RevId: 334532552
2020-09-30 16:59:03 -04:00
haodong
bd731f486a [ExtendedFloatingActionButton] Added support to configure different size when collapsed.
PiperOrigin-RevId: 334209576
2020-09-29 09:17:35 -07:00
hunterstich
7d3cb73ca7 [ExtendedFloatingActionButton] Improved text label expand/collapse animation
PiperOrigin-RevId: 331166249
2020-09-11 14:51:59 -04:00
marianomartin
c59c04639c [MaterialShapeDrawable] Convert ShapeAppearancePathProvider to a singleton.
Also allocate less path objects.

PiperOrigin-RevId: 325287653
2020-08-06 21:10:36 -04:00
marianomartin
049ad022a6 Delete components build.gradle files
PiperOrigin-RevId: 320944144
2020-07-15 09:38:31 -07: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
marianomartin
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04: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
leticiars
2bc442e3fb [Documentation] Updating FABs doc.
Deleting Extended FAB doc as it's now together with regular FAB.

PiperOrigin-RevId: 310161124
2020-05-07 12:18:26 -04:00
nickrout
9df47a8548 [Documentation] Updating FAB javadoc to mention colorSecondary over colorAccent for background tint.
PiperOrigin-RevId: 307612259
2020-04-22 15:04:29 -04:00
Material Design Team
74921bbbce Update warning suppressions.
PiperOrigin-RevId: 304119651
2020-04-03 09:09:53 -07:00
marianomartin
f90181efef Fix javadocs errors for DatePicker, Transformation, and FAB
PiperOrigin-RevId: 300553804
2020-03-13 11:00:54 -04:00