material-components-android
material-components-android copied to clipboard
[MaterialToolbar] Subtitle is cut off when font-size is increased via accessibility options
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)
Unfortunately I think it's a general issue to deal with font scales. Paul, do you know if we have any plans to solve this on Views? (Adaptive components on Compose will solve this, btw.)