Simona Stojanovic
09/22/2022, 3:16 PMAlbert Chang
09/22/2022, 3:50 PMste
09/22/2022, 6:13 PMHorizontalPager
uses LazyRow
(which relies in scrollable
), so such (very common) layout cannot be implementedColton Idle
09/23/2022, 2:48 AMColton Idle
09/23/2022, 2:49 AMColton Idle
09/23/2022, 2:50 AMAlbert Chang
09/23/2022, 8:57 AMlevima
09/23/2022, 9:04 AMZoltan Demant
09/23/2022, 9:24 AMcurrentPage
with an external currentPage value. Ive been able to get it working almost perfectly well, but Im still curious if this is something that I can expect to see baked into the library at some point in the future? Im also curious if others are dealing with such scenarios a lot; I for one have a lot of cases where the page should change in response to some user action, and usually that state change happens inside a "viewmodel", sometimes directly in response to an event, and sometimes after doing some async work first.
🌻: 99% of usages for me are full-screen, one of which makes use of tabs as well. My only other case is a carousel, and I decided to use the pager for it because the snapping behavior makes the most sense for that particular screen. Only challenge has been resizing the pager to accomodate the largest item in the currently visible set of items; generally I dont think the solution is perfect as it forces me to either guess a good average size to begin with, or animate the change when its needed - it would be superb to instead have a way to know the exact sizes beforehand, so plus1 for a non lazy variant.Albert Chang
09/23/2022, 10:22 AMReusableContent
.Simona Stojanovic
09/24/2022, 1:15 PM