Skip to content
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

Preload images inside the image viewer screen #141

Open
mars885 opened this issue Jun 14, 2022 · 1 comment
Open

Preload images inside the image viewer screen #141

mars885 opened this issue Jun 14, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mars885
Copy link
Owner

mars885 commented Jun 14, 2022

The ViewPager2 class has the method setOffscreenPageLimit that allows to preload a specified number of items on either side.

Before the Jetpack Compose migration, it was used to preload images inside the image viewer screen.

However, the Accompanist's analogue of the ViewPager2, does not currently support that. Consider adding it as soon as support for this feature is released.

The issue to track on the Accompanist's side.

@mars885 mars885 added the enhancement New feature or request label Jun 14, 2022
@mars885 mars885 self-assigned this Jun 14, 2022
@TemMax
Copy link

TemMax commented Jun 25, 2022

+.
This feature will be very useful when need to transform pages. For example, using translationX. Now we can't do this because composable will be removed from composition due to scroll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants