material-components / material-components/material-components-android
[CollapsingToolbarLayout] Force NOT apply system window inset top
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
Don't apply the system window inset top even if the height is wrap_content. Consider the background image of the collapsingtooblarlayout is a fixed ratio of width and height. If the layout is as follows, the real height of the collapsingtooblarlayout is the sum of the image height and the inset top.
It seems the height of the collpasingtoolbarlayout must be set to a specific value in the run time in order to achieve this. If there is an attr such as forceNotApplySystemWindowInsetTop, it can be done in the layout XML file.
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 with CollapsingToolbarLayout and trace its system window inset handling for the top inset. Check how XML attributes are defined and applied to this component. Done means the requested opt-out can be configured in layout XML without requiring a runtime height adjustment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100