Status Update
Comments
vi...@google.com <vi...@google.com>
vi...@google.com <vi...@google.com> #2
Thanks, can you please add information about the Android version/device as well?
ma...@bitflyer.com <ma...@bitflyer.com> #3
I can reproduce it both on Emulator Pixel 5 API 31 arm64 version, and on Meizu X8 API 27
ma...@bitflyer.com <ma...@bitflyer.com> #5
Siyamed, just FYI that the duplicate bug was closed a while ago with WAI
vi...@google.com <vi...@google.com> #6
I skimmed over the comments on the ticket.
Working on the include font padding I saw some opportunities to provide kind of tighter bounds API.
As far as I can see at the time we didn't know what is the absolute right solution and mention a lot about different alignments, rtl, ltr etc.
it looks like it is worth to investigate this a little further to see if there is any non-binary solution to it (API, handling cases separately, the concept of tight-er bounds that would not work for Bidi text where each line paragraph is LTR / RTL.)
I changed it to be a feature request.
ma...@bitflyer.com <ma...@bitflyer.com> #7
Assigning to myself as this related to the bug I'm working on
vi...@google.com <vi...@google.com> #8
a3...@gmail.com <a3...@gmail.com> #9
Facing the same issue in one of my production apps.
Compose UI version: 1.4.3
Compose compiler version: 1.4.7
Compose material version: 1.2.0
This happens when I use modifier = Modifier.weight(1f, fill = false)
in my text.
Please try the following code snippet to reproduce the behavior
Row(
horizontalArrangement = Arrangement.spacedBy(
dimensionResource(id = size.sizes.spaceBetween)
),
verticalAlignment = Alignment.CenterVertically,
modifier = modifier.clickable(
interactionSource = interactionSource,
indication = null,
role = Role.Button
) {
onClick()
}
) {
Text(
text = "this is a very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text",
style = TextStyle(
color = theme.textColor,
fontSize = dimenToSp(size.sizes.fontSize),
lineHeight = dimenToSp(size.sizes.lineHeight),
textDecoration = decoration,
fontWeight = if (isBold) FontWeight.Bold else FontWeight.Normal,
textAlign = multilineTextAlign
),
modifier = Modifier.weight(1f, fill = false) // <--- The issue happens when I apply this modifier
)
Icon(
painter = <Some icon here>,
contentDescription = "",
tint = theme.iconColor,
modifier = Modifier.size(
dimensionResource(id = size.sizes.iconSizing) * getSystemFontScale()
)
)
}
vi...@google.com <vi...@google.com> #10
vi...@google.com <vi...@google.com> #11
You can use
Description
It seems that this call:
WindowInsetsControllerCompat(window, window.decorView).isAppearanceLightStatusBars = true\false
does nothing for 3-button navigation if the target API is set to VanillaIceCream. Therefore I can't change the color of navigation bar icons arbitrary. This icon color is affected only by switching to a dark theme and back. When the dark theme is enabled colors are light and vice versa. If we move back to a lower target api levels and launch the app on a lower api device, 3-button navigation bar icon colors can be changed using theisAppearanceLightStatusBars
property.Yes
AP31.240426.022.B1
Yes
Android Emulator
Create a new application from a template
Try to call
WindowInsetsControllerCompat(window, window.decorView).isAppearanceLightStatusBars = false
orWindowInsetsControllerCompat(window, window.decorView).isAppearanceLightStatusBars = false
in the onCreate function before setContent()Framework
Be able to change navigation bar icon colors for 3-button navigation (to dark or light) by modifying
isAppearanceLightStatusBars
propertyNo
Can't change navigation bar colors