material-components / material-components/material-components-android
[ExtendedFloatingActionButton] Translation animation
@imhappi is already working on this.
Since Feb 2, 2023.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
At the moment **shrink()** and **extend()** methods do not have an axis translation animation between both states.
It would be nice to add a way to pass a custom **Animator** object.
I tried passing **MotionSpec** objects into [attributes extendMotionSpec and shrinkMotionSpec](https://github.com/material-components/material-components-android/blob/d5b41c185ff41243f961784aa5a8382a387aa25a/docs/components/FloatingActionButton.md#container-attributes-1). I also tried modifying the [easing and duration motion](https://github.com/material-components/material-components-android/blob/master/docs/theming/Motion.md#theming) without success.
If exists an alternative that I have slipped I'll be happy to try it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.