cketcham
a718fd15f2
Add workaround to prevent FloatingActionButton crash on API 26.
...
Resolves https://github.com/material-components/material-components-android/issues/66
PiperOrigin-RevId: 284999697
(cherry picked from commit 3c3ac61c9126a7b97da7e10324be163c11257e53)
2019-12-18 15:51:35 -05:00
hunterstich
d10a01474b
Update ExtendedFAB to use ShapeAppearanceModel.PILL
...
PiperOrigin-RevId: 277302581
(cherry picked from commit fdc243959f4ca5394afea1395682c87fd65a455b)
2019-11-07 10:25:46 -05:00
cketcham
c831ecc99d
Add support for percentages to ShapeAppearanceModel
...
PiperOrigin-RevId: 272946740
(cherry picked from commit a130a0c3e048a6311ff70a5bcb7d50b1809f7251)
2019-10-04 16:46:21 -04:00
cketcham
53e181b82d
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
(cherry picked from commit 0547d2a06bfa636990c99c74a7a16e02cef41647)
2019-10-04 15:38:10 -04:00
hunterstich
5373d32307
Update FloatingActionButton to implement the Shapeable interface.
...
PiperOrigin-RevId: 271566824
2019-10-03 15:50:23 -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
0d4515cb46
Internal cleanup
...
PiperOrigin-RevId: 265971745
2019-08-29 14:59:20 -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
isabellekim
eb1324d475
Update FAB to use the specified rippleColor instead of creating a CSL based solely on the pressed state's color.
...
PiperOrigin-RevId: 260802204
2019-08-02 15:11:16 -04:00
isabellekim
24a3fd4bb0
Add test-only option to turn off pre-L compat shadows for FABs.
...
PiperOrigin-RevId: 260569896
2019-07-29 17:49:15 -04:00
connieshi
5a20fb0d4d
Rename TransformationListener to TransformationCallback.
...
PiperOrigin-RevId: 259827772
2019-07-25 13:12:10 -04:00
dniz
cc73c2a630
Update TODOs
...
PiperOrigin-RevId: 259535844
2019-07-23 11:21:39 -04:00
dniz
0512f776c5
Remove sub-package AndroidManifest.xml files from lib directory
...
PiperOrigin-RevId: 258390736
2019-07-16 13:18:32 -04:00
isabellekim
a628bf516b
Revert the library to compile with Java 7: revert lambdas, add necessary casts, and make some variables final.
...
Continue compile shrine demo, catalog, and tests with Java 8.
PiperOrigin-RevId: 257874888
2019-07-15 19:19:23 -04:00
marianomartin
164bf0fabd
Internal cleanup
...
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00
marianomartin
ad8003d8e9
Internal cleanup
...
PiperOrigin-RevId: 255441067
2019-07-03 13:56:54 -04:00
dniz
5df3bebd63
Update elevation overlays to be based absolute elevation, factoring in the elevation of all parent views
...
Will follow-up with TabLayout absolute elevation separately
Resolves https://github.com/material-components/material-components-android/issues/381
PiperOrigin-RevId: 255404830
2019-07-03 13:55:49 -04:00
marianomartin
367b295624
Internal cleanup
...
PiperOrigin-RevId: 254414602
2019-06-24 17:12:42 -04:00
marianomartin
f82e1a22de
Internal cleanup
...
PiperOrigin-RevId: 253635142
2019-06-18 13:45:23 -04:00
marianomartin
53e4e9cca8
Internal cleanup
...
PiperOrigin-RevId: 253624674
2019-06-18 13:43:33 -04:00
marianomartin
648a74199e
Internal cleanup
...
PiperOrigin-RevId: 253577427
2019-06-18 13:38:11 -04:00
cketcham
bff75f2d3e
Update to lamdas
...
PiperOrigin-RevId: 252846439
2019-06-18 13:21:02 -04:00
cketcham
188cf279d1
Allow for setting a custom size after the FAB has been laid out already
...
PiperOrigin-RevId: 250520682
2019-05-29 16:29:43 -04:00
marianomartin
455ba2557b
Internal cleanup
...
PiperOrigin-RevId: 249490219
2019-05-24 14:22:06 -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
marianomartin
0f0921dbd1
Fix ripple in Fab Minis
...
PiperOrigin-RevId: 246370664
2019-05-03 11:01:54 -04:00
marianomartin
b488d4a0e5
Fix crash in FAB in some APIs
...
PiperOrigin-RevId: 245244018
2019-04-29 15:40:27 -07: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
cketcham
6b1459d557
Add generic type for FloatingActionButton TransformationListener
...
PiperOrigin-RevId: 243652927
2019-04-19 21:02:55 -04:00
dniz
1f244318d8
Add @hide to all @RestrictTo annotations that are missing it
...
PiperOrigin-RevId: 243646339
2019-04-19 16:29:30 -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
raajkumars
3f43a2aa3e
Updated FloatingActionButton to support dark theme elevation overlays.
...
PiperOrigin-RevId: 239611087
2019-03-22 17:03:35 -04:00
marianomartin
05bc55723a
Add a way to disable min touch target size in fab
...
PiperOrigin-RevId: 239395098
2019-03-22 17:00:43 -04:00
marianomartin
fd01672af5
Fix nullness in FAB
...
PiperOrigin-RevId: 238990635
2019-03-22 16:21:40 -04:00
marianomartin
01874ad4e9
Change setElevation in MSD to use default offset
...
PiperOrigin-RevId: 236858323
2019-03-08 09:58:58 -05:00
marianomartin
fd4d66227d
Remove background from MaterialComponents Fab style
...
PiperOrigin-RevId: 235983820
2019-03-08 09:41:58 -05:00
cketcham
76727ecc84
Add documentation to addTransformationListener() and removeTransformationListener()
...
PiperOrigin-RevId: 234174194
2019-02-24 14:16:07 -05:00
gauthams
75db2150a8
Add shadow to MaterialButton below API 21
...
PiperOrigin-RevId: 232737347
2019-02-11 11:17:08 -08:00