Fixed
Status Update
Comments
st...@gmail.com <st...@gmail.com> #2
Hi. Thanks for reporting this. Fixed in alpha-04
mn...@google.com <mn...@google.com>
di...@google.com <di...@google.com>
am...@google.com <am...@google.com>
am...@google.com <am...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit e782987543a9f8ccd485e970ddc74564b24378db
Author: Vighnesh Raut <vighnesh.raut13@gmail.com>
Date: Mon Jan 02 15:27:40 2023
fix: tab row crashes when only 1 tab is added
Bug: b/264018028
Test: Added unit test
Change-Id: I6381dbac304fc1d69d3708c6655f8b595668e93f
M tv/tv-material/src/androidTest/java/androidx/tv/material/TabRowTest.kt
M tv/tv-material/src/main/java/androidx/tv/material/TabRow.kt
https://android-review.googlesource.com/2373449
Branch: androidx-main
commit e782987543a9f8ccd485e970ddc74564b24378db
Author: Vighnesh Raut <vighnesh.raut13@gmail.com>
Date: Mon Jan 02 15:27:40 2023
fix: tab row crashes when only 1 tab is added
Bug:
Test: Added unit test
Change-Id: I6381dbac304fc1d69d3708c6655f8b595668e93f
M tv/tv-material/src/androidTest/java/androidx/tv/material/TabRowTest.kt
M tv/tv-material/src/main/java/androidx/tv/material/TabRow.kt
pr...@google.com <pr...@google.com> #4
deleted
Description
Issue
LoremIpsum
doesn't seem to offer an option, to specify number of words. Sometimes you want to preview how specific composable behaves, when line breaks a single time.LoremIpsum
only offers "a truck load" amount of words.So basically, I would like to be able to preview text with only 20 words, instead of 500 (that's current default word count set in
LoremIpsum
).Example
I want to preview how following text breaks, but I don't want it to expand indefinitely.
Yes, I could limit it by height, but sometimes composables are more complicated than that.
Current workarounds
A. Only take first n characters
B. Manually instantiate LoremIpsum
Potential solutions
Maybe short version of
LoremIpsum
could solve this use case in a simple way? E.g.LoremIpsumShort
?Info