https://kotlinlang.org logo
#compose
Title
# compose
a

Arpan Sarkar

12/11/2021, 6:56 PM
i am using accompanist view pager is there any way to set offscreenPageLimit like normal viewpager?
c

cb

12/11/2021, 7:11 PM
<https://google.github.io/accompanist/api/pager/com.google.accompanist.pager/-pager-state/index.html#-1555086537%2FFunctions%2F-1296668414|PagerState.scrollToPage()>
has an offset parameter
a

Arpan Sarkar

12/12/2021, 10:13 AM
Basically i am using view pager for image carousel, an i want to pre-load next items..if the carousel has 10 images when page 1 is selected i want to pre-load page next few pages. so when user moves to next page the image shows up immediately instead of lazy loading
6 Views