简体   繁体   English

如何防止在 Jetpack Compose 中的 HorizontalPager 中滑动

[英]How to prevent swipe in HorizontalPager in Jetpack Compose

I want to know how it's possible to prevent swipe in HorizontalPager, and how I can load next element by lazy.我想知道如何防止在 HorizontalPager 中滑动,以及如何通过延迟加载下一个元素。 Now HorizontalPager creates first and second elements at once.现在 HorizontalPager 一次创建第一个和第二个元素。

in HorizontalPager method, use userScrollEnabled = false to prevent swipeHorizontalPager ntalPager 方法中,使用userScrollEnabled = false来防止滑动

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Jetpack compose 中检测 HorizontalPager 中的滑动? - How to detect swipe in HorizontalPager in Jetpack compose? 如何在 Jetpack Compose 中禁用 HorizontalPager 的寻呼机 animation - How to disable pager animation of HorizontalPager in Jetpack Compose Compose 中 Horizo​​ntalPager 的滑动灵敏度 - Swipe sensitivity for HorizontalPager in Compose 在 Jetpack Compose 的 HorizontalPager 中滚动阻力 - Resistance with scroll in HorizontalPager in Jetpack Compose 如何防止在 Jetpack Compose 中向惰性列/行的一个方向滑动? - How to prevent swipe one direction of Lazy Column/Row in Jetpack Compose? 带有 LazyColum 的 HorizontalPager 在另一个 LazyColum 中 - Jetpack Compose - HorizontalPager with LazyColum inside another LazyColum - Jetpack Compose Jetpack Compose - 在 Accompanist HorizontalPager 中延迟加载数据 - Jetpack Compose - Lazy loading of data in Accompanist HorizontalPager HorizontalPager 忽略 itemSpacing 并覆盖 Jetpack Compose 中的内容 - HorizontalPager is ignoring itemSpacing and overriding content in Jetpack Compose 如何在Jetpack compose中实现滑动刷新 - How to implement swipe to refresh in Jetpack compose Jetpack Compose:如何检测 Horizo​​ntalPager 中的 TabRow 何时可见并调用 ViewModel 函数? - Jetpack Compose: How to detect when TabRow inside HorizontalPager is visible and call a ViewModel function?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM