material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[MaterialToolbar] Subtitle is cut off when font-size is increased via accessibility options

Open d4rken opened this issue 1 year ago • 1 comments
trafficstars

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.

Screenshot from 2024-03-14 16-15-47 Screenshot from 2024-03-14 16-15-22 Screenshot from 2024-03-14 16-21-17

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)

d4rken avatar Mar 14 '24 15:03 d4rken

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.)

drchen avatar Mar 14 '24 16:03 drchen