material-components / material-components/material-components-android
[AppBarLayout] Compressed Toolbar is invisible but its buttons are clickable
Open
Nobody has claimed this yet.
bug
Widget: TopAppBar
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
How to reproduce:
In cat_topappbar_compress_effect_fragment.xml replace:
<com.google.android.material.tabs.TabLayout
... />
with:
<FrameLayout
android:layout_width="match_parent"
android:layout_height="80dp"
app:layout_scrollFlags="scroll|enterAlways"
android:background="#33FF0000"/>
Result:
Material Library version: 1.8.0
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
Reproduce the issue using cat_topappbar_compress_effect_fragment.xml, replacing the TabLayout with the provided FrameLayout and observing the AppBarLayout compression behavior. Trace how the compressed toolbar and its buttons are rendered, then verify that the toolbar remains visible and its interaction area matches its visual state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100