Quick question: To implement a horizontal pager (or carousel) on Wear Compose, do I use the ViewPager2 components or the HorizontalPager components (from accompanist)?
Or do you simply make the element larger than the screen width and enable
You can ignore the over-engineered lifecycle code in PagerScreen, it's only needed if you have Individual page Screens with no reference to the HorizontalPager state (you are reusing a screen that could be top level) and you want to activate scrolling of ScalingLazyColumn etc.
j
Jeremiah Jordan
05/25/2022, 10:57 PM
Actually I do have two screens which would both be considered "top level" that the user will need to navigate between, so I might need the lifecycle cleanup 🙂