mars885 / gamedge

An Android application for browsing video games and checking the latest gaming news from around the world.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preload images inside the image viewer screen

mars885 opened this issue · comments

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.

+.
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.