https://kotlinlang.org logo
#compose-wear
Title
# compose-wear
j

Jonathan

12/12/2023, 5:23 PM
Is there any recommended practices using a vertically scrolling content (
LazyColumn
or
Column
w/
Modifier._verticalScroll_(…)
) inside of a
VerticalPager
? Personally I think this is a odd UX but my designer has settled on this UI for the time being. I would like to implement sync’d rotary (digital crown) scrolling such that once the internal scrolling list has reached its vertical extent it will automatically cause the vertical pager to scroll to the next page. As of right now, this behavior works out-the-box w/ finger drags, but doesn’t with the digital crown; in-fact I’m not able to get the crown to scroll the VerticalPager without vertically scrollable content (ex:
Box(Modifier.fillMaxSize().backgroundColor(color = Color.DarkGray))
). If this is not possible, please let me know and I’ll discuss with my designer.
y

yschimke

12/12/2023, 9:35 PM
I think the feature request on Horologist is way forward
It probably should work even if not recommended
j

Jonathan

12/12/2023, 10:02 PM
I don’t understand what you mean by “way forward”?
y

yschimke

12/13/2023, 9:28 AM
I mistakenly thought it was related to this feature request. https://github.com/google/horologist/issues/1862
I know some of the Google UX designers are discussing how this would work. A modified Page Indicator would be needed.
So I think it's a valid request, worth raising in Horologist project for discussion, but I doubt it will simply work currently, without essentially building custom components. But that's a guess.
🙏 1
j

Jonathan

12/13/2023, 2:06 PM
Thanks for looking into this!