gamedge icon indicating copy to clipboard operation
gamedge copied to clipboard

Preload images inside the image viewer screen

Open mars885 opened this issue 3 years ago • 1 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.

mars885 avatar Jun 14 '22 10:06 mars885

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

TemMax avatar Jun 25 '22 16:06 TemMax