Dmitry-Borodin / pdfview-android

Small Android library to show PDF files
Apache License 2.0
294 stars 48 forks source link

Save pdf page when screen orientation changed - Implement saveInstanceState() and restore. #38

Open navimakarov opened 3 years ago

navimakarov commented 3 years ago

Is it possible to go to the same screen after orientation change? Because right now it starts from 1 page

Dmitry-Borodin commented 3 years ago

By default android recreates view hierarchy, we can store current scrolling position and scroll to in on restore. But right now it's not implemented. Need to check if we can reliably scroll to position and get current position. This is a good feature request, thank you. Need to save to bundle currently opened file as well, to reopen it automatically.