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

[AppBarLayout] Compressed Toolbar is invisible but its buttons are clickable

Open
#3,277 0 comments 0 reactions 0 assignees View on GitHub

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:

https://user-images.githubusercontent.com/82187521/221999512-c5a7029c-d492-429b-b1d2-148926b6bbd9.mp4


Material Library version: 1.8.0

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.