https://kotlinlang.org logo
#compose
Title
# compose
g

galex

03/02/2023, 1:05 PM
Hey, can we lerp on the numbers of maxLines on a Text? 🤔
a

Arjan van Wieringen

03/02/2023, 1:21 PM
How would you interpolate integers?
But just make an animated state value and round it
g

galex

03/02/2023, 1:22 PM
It will basically jump at 50% from 2 lines to 1, indeed
That could be actually good enough
g

Giang

03/02/2023, 1:46 PM
are you trying to make an expandable text 😄
It will basically jump at 50% from 2 lines to 1, indeed
will make the animation jarring imo
g

galex

03/02/2023, 2:25 PM
Yes, that's what I'm looking to do, in a Collapsible TopAppBar. Open it should show two lines minimum or all the text it contains, and closed one max line.... Interesting, right?
4 Views