material-components / material-components/material-components-android
[AppBarLayout] Lift on scroll doesn't work with inner BottomAppBar and hideOnScroll set to true
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:** The AppBarLayout lift on scroll feature stops working when an inner BottomAppBar (in a fragment) has "hideOnScroll" set to true
**Expected behavior:** The AppBarLayout should get the lift on scroll color even when an inner BottomAppBar has hideOnScroll set to true
**Source code:**
activity_main.xml
```xml
```
fragment_main.xml, contained inside the FragmentContainerView
```xml
```
**Minimal sample app repro:** [Sample app](https://mega.nz/file/kABHQBbb#NDL3UoeFeW5RIZd2yX6B75px9Oc1PguY2jgFiRyJrkM)
**Android API version:** 33
**Material Library version:** 1.7.0
**Device:** Emulator AVD, Honor 70
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 running the linked minimal sample app and compare activity_main.xml with fragment_main.xml, focusing on AppBarLayout liftOnScroll and the inner BottomAppBar's hideOnScroll setting. Reproduce the issue on the stated Android API 33 and Material Library 1.7.0 setup; done means the AppBarLayout receives its lift-on-scroll color while the inner BottomAppBar remains configured with hideOnScroll="true".
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
- 42/100