rightnao
31fa4122c7
[ExtendedFloatingActionButton] Add a method to ExtendedFloatingActionButton to enable/disable animations.
...
PiperOrigin-RevId: 688229664
2024-10-22 20:17:25 +00:00
Material Design Team
f3aacd7bc6
[FloatingActionButton] Add an accessibility role to FloatingActionButton and ExtendedFloatingActionButton.
...
PiperOrigin-RevId: 663363115
2024-08-16 17:33:56 +00:00
pubiqq
510881a469
[Internal] Stop using deprecated androidx.core.view.* methods
...
Resolves https://github.com/material-components/material-components-android/pull/4117
GIT_ORIGIN_REV_ID=dd157e8360c2511810496693cec1616fce578655
PiperOrigin-RevId: 632284856
2024-05-13 17:37:38 +00:00
rightnao
e3b255b3a0
[Docs] Crosslink github docs in javadocs
...
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00: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
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
a487c89185
Internal change
...
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00: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
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
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
555356b03f
Internal cleanup
...
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04: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
Material Design Team
74921bbbce
Update warning suppressions.
...
PiperOrigin-RevId: 304119651
2020-04-03 09:09:53 -07:00
marianomartin
d7fbdba796
Automated g4 rollback of changelist 294487710
...
PiperOrigin-RevId: 294746271
2020-02-13 10:24:47 -05:00
marianomartin
57beb64ddf
Remove stub from Extended Floating Action Button
...
PiperOrigin-RevId: 294487710
2020-02-11 16:14:40 -05:00
isabellekim
55200c3a8f
Fix ExtendedFloatingActionButton to be WRAP_CONTENT when extended so that it will resizes on setText().
...
Resolves https://github.com/material-components/material-components-android/issues/449
PiperOrigin-RevId: 294261399
2020-02-10 17:29:35 -05:00
isabellekim
1f9de68025
[All] Add support for materialThemeOverlay
...
Resolves https://github.com/material-components/material-components-android/pull/948
GIT_ORIGIN_REV_ID=5a8bb35a56c1b813df47d964de8482a26e0da66d
PiperOrigin-RevId: 293839172
2020-02-10 09:55:19 -05:00
hunterstich
fdc243959f
Update ExtendedFAB to use ShapeAppearanceModel.PILL
...
PiperOrigin-RevId: 277302581
2019-11-01 13:28:40 -07:00
marianomartin
ffb86260ee
Add back getInsetDodgeRect to preserve compatibility
...
PiperOrigin-RevId: 276202553
2019-11-01 13:28:40 -07:00
cketcham
a130a0c3e0
Add support for percentages to ShapeAppearanceModel
...
PiperOrigin-RevId: 272946740
2019-10-04 16:33:47 -04:00
cketcham
0547d2a06b
Uncouple CornerSize from CornerTreatment
...
This allows for more easily updating the CornerSize independently from the CornerTreatment and makes it possible to create different types of CornerSizes such as percentage based corners. However, this means corner sizes can be different depending on the bounds of the shape, so the bounds need to be provided. MaterialShapeDrawable has bounds and the ShapeAppearanceModel, so there are new convenience methods there which return the current corner size for the current bounds of the drawable.
PiperOrigin-RevId: 272908508
2019-10-04 15:23:16 -04:00
marianomartin
167663ae45
Internal cleanup
...
PiperOrigin-RevId: 268698913
2019-09-12 14:29:01 -04:00
cketcham
8f6d446ad9
Remove shadowPadding rect from ExtendedFloatingActionButton
...
It seems that shadowPadding was copied over from FloatingActionButton. ExtendedFloatingActionButton extends MaterialButton which uses a MaterialShapeDrawable for its shadow so it shouldn't need to handle this case.
PiperOrigin-RevId: 268057304
2019-09-12 13:56:13 -04:00
marianomartin
c178633441
Internal cleanup
...
PiperOrigin-RevId: 268017966
2019-09-12 13:55:18 -04:00
marianomartin
215a839598
Internal cleanup
...
PiperOrigin-RevId: 267504117
2019-09-12 13:48:16 -04:00
marianomartin
3b75a113a7
Remove OnChangeListener from ExtendedFab
...
PiperOrigin-RevId: 266955697
2019-09-04 18:06:55 -04:00
cketcham
0ad01010b9
Add @NonNull and @Nullable annotations
...
PiperOrigin-RevId: 266817244
2019-09-04 18:03:53 -04:00
marianomartin
3beaee4f94
Change extended fab API to make it simpler.
...
PiperOrigin-RevId: 266669035
2019-09-04 18:03:01 -04:00
cketcham
1f1871f634
Update usages of ShapeAppearanceModel to use Builder pattern
...
PiperOrigin-RevId: 266133670
2019-08-29 15:37:04 -04:00
marianomartin
a5a300e171
Internal cleanup
...
PiperOrigin-RevId: 265503887
2019-08-29 11:26:23 -04:00
Material Design Team
290a96d881
Automated g4 rollback of changelist 262421424
...
PiperOrigin-RevId: 262443338
2019-08-16 15:36:23 -04:00
marianomartin
0ce38bf95e
Automated g4 rollback of changelist 262136482
...
PiperOrigin-RevId: 262421424
2019-08-16 15:35:44 -04:00
Material Design Team
9a7dfaaae4
Automated g4 rollback of changelist 262133140
...
PiperOrigin-RevId: 262136482
2019-08-16 15:31:16 -04:00
marianomartin
163d2828b3
Remove internalSetVisibility from ExtendedFab
...
PiperOrigin-RevId: 262133140
2019-08-16 15:30:29 -04:00
marianomartin
58d2085032
Refactor extended Fab and add test for behavior
...
PiperOrigin-RevId: 260841260
2019-08-02 15:34:16 -04:00
dniz
cc73c2a630
Update TODOs
...
PiperOrigin-RevId: 259535844
2019-07-23 11:21:39 -04:00
marianomartin
164bf0fabd
Internal cleanup
...
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00
marianomartin
367b295624
Internal cleanup
...
PiperOrigin-RevId: 254414602
2019-06-24 17:12:42 -04:00
Material Design Team
3c5f9f6cb0
Migrate CoordinatorLayout android support libraries to androidx
...
PiperOrigin-RevId: 248819271
2019-05-21 12:03:28 -04:00
gauthams
6c148904c6
Add missing Javadoc for on*AnimationListener methods in ExtendedFloatingActionButton
...
PiperOrigin-RevId: 248373312
2019-05-16 17:22:22 -04:00
gauthams
c42eb1e239
Add support for end-aligned iconGravity in MaterialButton
...
PiperOrigin-RevId: 244431572
2019-04-19 22:07:04 -04:00
gauthams
163c0ed3f5
Update ExtendedFAB to support setting corner radius via shape appearance
...
PiperOrigin-RevId: 243677036
2019-04-19 21:07:37 -04:00
Material Design Team
5a54a33aca
Add a getter to check isExtended for ExtendedFloatingActionButton.
...
Context: This is useful to test the state of the extended fab post a shrink() or extend() call. Since we can't mock Views in unit tests, we can't verify calls on void methods for views, so this makes it such that we can assert the end state of those calls.
PiperOrigin-RevId: 242997029
2019-04-19 15:34:04 -04:00
raajkumars
c3e9cb45a0
Updated extended floating action button to turn off word wrapping only if animating expand/shrink action.
...
PiperOrigin-RevId: 241594089
2019-04-05 15:30:56 -04:00
gauthams
abbec48ce6
Add MotionSpec support to ExtendedFloatingActionButton
...
PiperOrigin-RevId: 239682035
2019-03-22 17:04:12 -04:00
marianomartin
fd01672af5
Fix nullness in FAB
...
PiperOrigin-RevId: 238990635
2019-03-22 16:21:40 -04:00
gauthams
75db2150a8
Add shadow to MaterialButton below API 21
...
PiperOrigin-RevId: 232737347
2019-02-11 11:17:08 -08:00