WAI
Status Update
Comments
ab...@gmail.com <ab...@gmail.com> #2
Same code for reproduction
Text(
text = randomText,
modifier = Modifier
.verticalScroll(rememberScrollState())
)
ha...@google.com <ha...@google.com> #3
When maxLines
are defined, Text composable restricts its layout to only be as tall as maxLines
allows. It doesn't mean that text is still flowing below and gets clipped. Hence, it cannot be scrolled into view with other scroll modifiers.
Description
- Jetpack Compose component used: Text
- Android Studio Build: Android Studio Hedgehog | 2023.1.1 Canary 9
- Kotlin version: "1.8.10"
- Devices/Android versions reproduced on: Emulator
- Keyboard (i.e. Gboard, Samsung, etc):
Unable to scroll Text when max lines are used.
The requirement is to have 10 scrollable lines, height may vary according to font size, device settings, etc.