Closed ChristianGarcia closed 1 year ago
That's how AppCompat's AlertDialog works: https://android.googlesource.com/platform/frameworks/base/+/de47f1c358c8186ff3e14b887d5869f69b9a9d6c/core/java/com/android/internal/widget/DialogTitle.java#54
I believe we want to respect the existing behavior of AppCompat's alert dialogs as much as possible. : )
Description
When styling
MaterialAlertDialog
via theming, the title's (materialAlertDialogTitleTextStyle
)textSize
attribute will ignore any values over some arbitrary limit (~20sp).This works just fine for the dialog's body (
materialAlertDialogBodyTextStyle
).I've tested this both using
MaterialComponents.*
andMaterial3.*
styles (see Minimal sample app repro below).Expected behavior
The
textSize
value set formaterialAlertDialogTitleTextStyle
is respected.Source code
themes.xml
Minimal sample app repro
https://github.com/ChristianGarcia/MaterialDialogBug
Environment
Android API version : API 25
Material Library version: Broken all the way from
1.1.0
(No Material3 on that one) to latest at the time of reporting (1.8.0-alpha01
).Device: Several emulators, Pixel 6 Pro (seems to be device-independent)