material-components / material-components/material-components-android
[CollapsingToolbarLayout] Margin for collapsed Title
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
On `CollapsingToolbarLayout` one can define margins for the expanded Title, and even multi-line property for the collapsed Title. However given my custom curved background I need to define side margins for a collapsed title so it wraps nicely on screen with lower density.
**Describe the solution you'd like**
Be able to define `start` and `end` margins for collapsed title property on `CollapsingToolbarLayout`.
**Describe alternatives you've considered**
I've tried to play around with TextAppearance for the collapsed title style, and both padding and margin properties on the `CollapsingToolbarLayout` itself to no avail.
**Additional context**
None.
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 locating the CollapsingToolbarLayout implementation and its collapsed-title handling, then compare it with the existing expanded-title margin properties. Define the expected start and end margin behavior for the collapsed title and verify that the title wraps correctly with those margins.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- design, mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100