I am currently working on creating a book reader for EPUB files, and I would like to display the book pages in a 2-page layout (horizontally) similar to a physical book. To achieve this, I have set up two webviews at runtime and attempted to manage the content within them. For navigating between next and previous pages, I have utilized the following code snippet:
webViewRead.scrollBy(0, 0);
webViewRead.scrollTo(0, postion);
Despite my efforts, it has proven quite challenging to maintain the Table of Contents when switching between pages. Is there a way to accomplish this using a single view and segmenting the content through CSS?
For example:
webkit-column-count:
moz-column-gap:
webkit-column-gap:
Would this be a better approach? Additionally, since my HTML pages are already stored in the SDCARD, how can I link a new CSS file to these existing HTML files?