52 Commits

Author SHA1 Message Date
marianomartin
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -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
Nick Rout
94cd734a51 [FloatingActionButton] Add support for enabled/disabled state
Resolves https://github.com/material-components/material-components-android/pull/783

GIT_ORIGIN_REV_ID=76d076366145fbaa9ca01af6a6d182491d9a4659
PiperOrigin-RevId: 289017230
2020-01-10 09:08:55 -08:00
marianomartin
115313c0c0 Expose a class for themeoverlay in style
This moves functionality from ThemeEnforcement into a stand alone class.

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

PiperOrigin-RevId: 275481343
2019-10-21 10:24:19 -04: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
Material Design Team
5f017cd5cd Migrate away from deprecated behavior annotation
PiperOrigin-RevId: 271616445
2019-09-27 14:59:16 -04:00
hunterstich
4f70ac8955 Update FloatingActionButton to implement the Shapeable interface.
PiperOrigin-RevId: 271566824
2019-09-27 14:06:05 -04:00
marianomartin
a4138293df Internal cleanup
PiperOrigin-RevId: 268507643
2019-09-12 14:12:53 -04:00
Material Design Team
5e9b0dd917 Automated g4 rollback of changelist 267646424
PiperOrigin-RevId: 267814621
2019-09-12 13:51:28 -04:00
Material Design Team
2d03e4084d Migrate away from deprecated behavior annotation
PiperOrigin-RevId: 267646424
2019-09-12 13:49:58 -04:00
marianomartin
215a839598 Internal cleanup
PiperOrigin-RevId: 267504117
2019-09-12 13:48:16 -04:00
cketcham
0ad01010b9 Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 266817244
2019-09-04 18:03:53 -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
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
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
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
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
Material Design Team
3c5f9f6cb0 Migrate CoordinatorLayout android support libraries to androidx
PiperOrigin-RevId: 248819271
2019-05-21 12:03:28 -04:00
marianomartin
0f0921dbd1 Fix ripple in Fab Minis
PiperOrigin-RevId: 246370664
2019-05-03 11:01:54 -04:00
cketcham
6b1459d557 Add generic type for FloatingActionButton TransformationListener
PiperOrigin-RevId: 243652927
2019-04-19 21:02:55 -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
cketcham
76727ecc84 Add documentation to addTransformationListener() and removeTransformationListener()
PiperOrigin-RevId: 234174194
2019-02-24 14:16:07 -05:00
dniz
4f75ec6daa Update FAB to respond to themed cornerFamily
- Remove hardcoded "rounded" corner family from FAB shapeAppearanceOverlay
- Remove BottomAppBar shape toggle override from demo (now that we have a
global switcher)
- Update BottomAppBar demo to base top edge on FAB shape appearance

PiperOrigin-RevId: 229971238
2019-01-22 17:03:27 -05:00
marianomartin
055a791ae2 Support materialThemeOverlay on FloatingActionButton
PiperOrigin-RevId: 225857520
2018-12-21 11:09:03 -05:00
cketcham
dc72aaeed4 Migrate Gradle build and sources to androidx
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
marianomartin
2fdb73de6e Override setVisibility so it's not restricted
PiperOrigin-RevId: 220838067
2018-11-16 11:11:52 -05:00
marianomartin
215bb6e294 Increase touch target of fab to min 48dp
PiperOrigin-RevId: 220311577
2018-11-16 10:51:48 -05:00
marianomartin
e94e2d35fe Support shape theming in fab
PiperOrigin-RevId: 219812144
2018-11-16 10:38:43 -05:00
marianomartin
9e36c150c0 Fix most javadocs errors
PiperOrigin-RevId: 216697274
2018-10-11 18:24:53 -04:00
marianomartin
1d4882c6ac Use drawable color filter if it has one instead of overriding it
PiperOrigin-RevId: 215398208
2018-10-02 14:56:52 -04:00
marianomartin
7b0cc53898 Fix FloatingActionButton not tinting on kitkat
PiperOrigin-RevId: 215375598
2018-10-02 14:55:47 -04:00
cketcham
d6e4991e78 Fix default FAB animation for BottomAppBar
PiperOrigin-RevId: 210920372
2018-08-31 11:13:24 -04:00
cketcham
71f5ea1415 Add alternate animations for BottomAppBar mode changes
PiperOrigin-RevId: 210096177
2018-08-28 16:40:25 -04:00
cketcham
18be1b73af Modify BottomAppBar to react to the transformations of the FloatingActionButton
PiperOrigin-RevId: 209988651
2018-08-28 16:37:42 -04:00
Material Design Team
7a2b5f0cd7 Automated g4 rollback of changelist 209640439
PiperOrigin-RevId: 209705959
2018-08-28 16:34:03 -04:00
cketcham
148ca998fe Modify BottomAppBar to react to the transformations of the FloatingActionButton
PiperOrigin-RevId: 209640439
2018-08-28 16:33:22 -04:00
dniz
ad573c764b Clarify sizing for FloatingActionButton
PiperOrigin-RevId: 198914008
2018-06-04 10:51:12 -04:00