https://kotlinlang.org logo
b

bod

07/14/2022, 3:59 PM
Q: Isn't there a simple way to have a
ScalingLazyColumn
with a
TimeText
as the first item, so it scrolls with the rest of the contents? (Like the system settings). The samples I can find seem to make it fade away in complicated ways 🙂 And if I naively put a TimeText as the first item in my list, it takes the whole screen height 🤔
k

Kseniia Shumelchyk

07/14/2022, 4:02 PM
It’s not in the Compose for Wear OS library itself, but we have an extension in Horologist: https://github.com/google/horologist/tree/main/compose-layout Look for Fade away modifier (https://google.github.io/horologist/compose-layout/#fade-away-modifier)
b

bod

07/14/2022, 4:04 PM
Thanks! I saw it but do you know if I can use it without
WearNavScaffold
?
yes black 1
I'll have a try
b

bod

07/14/2022, 4:13 PM
Perfect! Thanks a lot 🙏
k

Kseniia Shumelchyk

07/14/2022, 5:44 PM
Np! Question on the UX - have you considered merging together ‘Theaters’ label and ‘+’ button to optimize space a bit? It can be a Chip (as a first item) or just Action button if on previous screen you already say ‘Theaters’ (so there is no ambiguity). Alternatively you can keep title on top but move add button to the bottom.
b

bod

07/14/2022, 6:41 PM
Hmm good idea, thanks! I'll experiment a bit 😊
5 Views