WAI
Status Update
Comments
al...@google.com <al...@google.com>
ca...@google.com <ca...@google.com> #2
removed the dup; this is possibly about how android spans work on empty strings.
- the calculation in the composable level seemed correct but the layout was not
- it happens for a new line as well
- one problem with both includeFontPadding true/false is that the cursor height is possibly can be visually improved to match the text ascent/descent rather than line top/bottom (might be challenging)
fo...@gmail.com <fo...@gmail.com> #3
I do not fully understand your points, though I was wondering if a similar "trick" to measure "HHHHHHHHHHH" cannot be used here, because if I'm not mistaken the cursor gets drawn by text layout measuring on empty string.
ca...@google.com <ca...@google.com> #4
StaticLayout does not call LineHeightSpan's for empty sstring (or the empty final line at the end of the string - a string that ends with "\n")
Description
Artifact used (ex. androidx.appcompat:appcompat:1.0.0-alpha1):
androidx.core:core-splashscreen
Version used:
1.0.0-alpha01
Theme used:
Theme.MaterialComponents.DayNight
Devices/Android versions reproduced on:
Samsung Galaxy Note 9 - SM-N960U (Android 10, API 30)
- Relevant code to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).
Import the compat SplashScreen dependency as specified in the migration docs here
Use a Theme.SplashScreen for the starting activity and call `installSplashScreen()` during onCreate. Increate the `windowSplashScreenAnimationDuration` to 4000 (4s) and observe that the AVD doesn't animate during app launch on API 30. This same configuration works as expected on Android 12 as expected.