material-components / material-components/material-components-android

[ExtendedFloatingActionButton] Translation animation

Open
#3,207 0 comments 0 reactions 1 assignee View on GitHub

@imhappi is already working on this.

Since Feb 2, 2023.

feature request Widget: FloatingActionButton
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.