material-components / material-components/material-components-android
[FloatingActionButton] FAB does not move smoothly when SnackBar appears
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:** FloatingActionButton twitches when SnackBar appears.

**Expected behavior:** Expected smoothly moving FAB.

**Source code:**
`FloatingActionButton fab = findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();
}
});`
**Android API version:** Android API 23 and 24
**Material Library version:** 1.1.0
**Device:** Nexus 5X and Samsung J7
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.
Research direction
Start by reproducing the provided FloatingActionButton and Snackbar source on Android API 23 or 24 with Material Library 1.1.0, using the reported Nexus 5X or Samsung J7 context if available. Compare the observed twitch with the expected smooth movement and verify that the FAB transitions smoothly when the Snackbar appears.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100