-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Pager] Support offscreenPageLimit #899
Comments
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Is this closed just because of inactivity? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
On what exact dependency are we waiting for in this issue? |
Please use the bug above to track that. Once we have that in lazy lists we will add this functionality in the new Pager we are working on for Compose UI |
@andkulikov The linked issue is fixed since October 17. By "new Pager for Compose UI", do you mean a different component than this library's pager? If yes, is there any information on a roadmap for this component? If no, is there any information when Accompanist's pager will take up the new LazyList offscreen capacity? |
@mtotschnig hey, we are currently designing a new Pager component which will live right in compose.foundation and it will be a replacement for Accompanist's Pager. We are planning to provide an experimental version of this component in Compose 1.4. It will have an api for setting offscreenPageLimit |
The referenced implementation is here: |
@andkulikov in 2024, how can we set offscreenpagelimit ? seems like it has been removed |
Accompanist Pager is deprecated, please use a HorizontalPager available in the main compose:foundation library. This component has a param for this functionality |
thank you @andkulikov, you helped me persevere, for those who are lost : It has been renamed : beyondBoundsPageCount |
Is your feature request related to a problem? Please describe.
Currently to achieve with
HorizontalPager
displaying partially next/previous page we have to definecontentPaddings
. However it is not always desirable. WithViewPager2
we can manipulate page in page transformer (e.g set transalationX) along withoffscreenPageLimit = 1
Describe the solution you'd like
HorizontalPager
andVerticalPager
should supportoffscreenPageLimit
the same asViewPager2
doesThe text was updated successfully, but these errors were encountered: