Fixed
Status Update
Comments
as...@google.com <as...@google.com>
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)
[Deleted User] <[Deleted User]> #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
Version used: 1.0.0-alpha01
Theme used: Theme.SplashScreen
Devices/Android versions reproduced on: Galaxy S10e (Android 11)
- Relevant code to trigger the issue.
<style name="Theme.XXX.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="Theme.XXX.SplashScreen" parent="Theme.SplashScreen">
<item name="windowSplashScreenAnimatedIcon">@mipmap/ic_launcher</item>
<item name="postSplashScreenTheme">@style/Theme.XXX.NoActionBar</item>
</style>
- A screenrecord or screenshots showing the issue (if UI related).
Screenshot attached.
It seems to be caused by Samsung launcher - because if I launch it from somewhere else - e.g. Firebase App Distribution app - it looks correctly.