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

AppBarLayout overflow a screen

Open
#2,234 3 comments 0 reactions 1 assignee View on GitHub

@hunterstich is already working on this.

Since Jul 13, 2021.

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

Description

a layout such as
ConstraintLayout
|-- Toolbar layout_height : wrap_content
|--CoordinatorLayout layout_height : 0dp topToBottom : toolbar bottomToBottom : parent
|--AppBarLayout
| |-CollapsingToolbarLayout
| |-One Child View( this child view over a screen)
|--RecyclerView

if AppBarLayout over a screen height , scroll to RecyclerView and scroll back to appbarlayout again , and repeat this operation ,
you can see the layout shake and rollback

chinese:
如果AppBarLayout的高度超过一个屏幕 , 滚动布局到RecyclerView 再回滚回AppBarLayout , 重复这样的操作 , 你会看到布局会发生抖动和回滚的现象.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.