alexvasilkov / GestureViews

ImageView and FrameLayout with gestures control and position animation
Apache License 2.0
2.37k stars 384 forks source link

Do not reset state when returning back to grid #140

Closed SaikrishnaRajaraman closed 4 years ago

SaikrishnaRajaraman commented 5 years ago

Is there any way to not to reset state while returning back from pager to grid.

alexvasilkov commented 4 years ago

Sorry for late reply.

You can save the last state of each image from your code and then re-apply it when an image is opened. Didn't try it myself, so I'm not sure if it'll work as expected. Let me know if you'll have particular issues implementing this logic.