material-components / material-components/material-components-android
[MaterialToolbar] Subtitle is cut off when font-size is increased via accessibility options
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:**
When the font-size is increased via the system accessibility settings (`fontScale`), then the subtitle is being cutoff on the bottom despite using `wrap_content` on the toolbar.



**Expected behavior:**
Toolbar should grow in height and keep the default paddings, and center the title/subtitle combo.
**Source code:**
https://github.com/d4rken-org/sdmaid-se/blob/e10ade68a4e2cae6cccf963862c318e29ba3acf7/app/src/main/res/layout/appcontrol_list_fragment.xml#L8
https://github.com/d4rken-org/sdmaid-se/blob/e10ade68a4e2cae6cccf963862c318e29ba3acf7/app/src/main/res/values/styles.xml#L194
**Android API version:**
AFAIK, all versions, I tested on Android 13 and 14.
**Material Library version:**
`1.11.0
**Device:**
Pixel 6 (and others)
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 the linked app/src/main/res/layout/appcontrol_list_fragment.xml and app/src/main/res/values/styles.xml files, then reproduce the issue with an increased system fontScale on Android 13 or 14. Done means the MaterialToolbar grows with the subtitle, preserves its default padding, and keeps the title/subtitle combination centered without clipping.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100