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

[FloatingActionButton] FAB does not move smoothly when SnackBar appears

Open
#1,036 8 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Widget: FloatingActionButton
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:** FloatingActionButton twitches when SnackBar appears.
![untitled](https://user-images.githubusercontent.com/32244726/74826928-1df16780-5315-11ea-9797-9f8c7a906882.gif)

**Expected behavior:** Expected smoothly moving FAB.
![2](https://user-images.githubusercontent.com/32244726/74826959-32356480-5315-11ea-8177-8cf997128e90.gif)

**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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.