68 Commits

Author SHA1 Message Date
hunterstich
6f41625f57 [FAB] Restored public jumpDrawablesToCurrentState method
PiperOrigin-RevId: 735749567
2025-03-11 18:02:00 +00:00
pekingme
949b05742f [FAB] Improved readability.
PiperOrigin-RevId: 735467033
2025-03-11 18:00:04 +00:00
pekingme
da442bef3b [FAB] Merged FABImpl and FABImplLollipop classes, since no pre-lollipop is supported.
PiperOrigin-RevId: 735422196
2025-03-11 17:54:56 +00:00
pubiqq
23aca03255 [Internal] Remove pre-Lollipop checks
Resolves https://github.com/material-components/material-components-android/pull/4266

GIT_ORIGIN_REV_ID=1de7808e66dd6666c893217c76c7499afe2df6a3
PiperOrigin-RevId: 669688797
2024-09-03 13:31:29 +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
Ga\u00ebtan Muller
b3fe6a7f61 [Cleanup] Remove redundant version checks for api <= 19.
Resolves https://github.com/material-components/material-components-android/pull/3849

GIT_ORIGIN_REV_ID=47bb2fcc8031740e5a7d4f741f1ada2af025e126
PiperOrigin-RevId: 632154861
2024-05-09 18:46:02 +00:00
rightnao
e3b255b3a0 [Docs] Crosslink github docs in javadocs
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
conradchen
d6f36e89e2 [FAB] Correctly handle min touch target size
In the original logic we only handle touching down events happening within the "actual" button area, which breaks the min touch target size enforcement. Fixes this by calculating the correct area of touch target when handling touching down events.

PiperOrigin-RevId: 516600706
2023-03-14 22:12:22 +00: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
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
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
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
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