material-components / material-components/material-components-android
[BottomAppBar] fabCradleVerticalOffset only affects the position of the FAB, ignores the actual cradle
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:**
As the title says, the `fabCradleVerticalOffset` attribute on BottomAppBar, which I want to be 0dp, only affects the offset of the FAB, while the cradle stays the same as if the offset is set to 12dp (the default value)
This is what it looks like:

Edit: I noticed this only happens when the FAB is square, settings FAB's `shapeAppearance` to a style that would make it fully circular makes the cradle display as expected
**Expected behavior:**
Mockup of the expected behaviour:

**Source code:**
```
```
**Android API version:** My device is running Andriod 12 (SDK 32)
**Material Library version:** Tested on 1.10.0 and 1.9.0, occurs on both
**Device:** Google Pixel 3
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 supplied CoordinatorLayout, BottomAppBar, and FloatingActionButton setup on Android 12 with Material Library 1.10.0 or 1.9.0, comparing square and fully circular FAB shapes. Trace the BottomAppBar cradle and FAB positioning behavior; done means fabCradleVerticalOffset="0dp" moves both the FAB and the cradle as shown in the expected mockup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100