I am currently using epublib-core
to read epubs and display them in Android WebView
with the following code -
webView.loadDataWithBaseURL(baseURL, new String(spineReferences.get(chapter/* <- int*/).getResource().getData()), "text/html", "utf-8", null);
But it's using Vertical Scroll
whereas I want a HorizontalScroll. After searching the web, I found Monocle, but I don't know how to integrate Monocle
with epublib
and WebView
. Any idea on how to use horizontal scroll?
Atlast, I could enable Horizontal Scroll in the app (without any Page Transitions). Use this code to scroll horizontally -
Create custom
WebViewClient
-Edit -
I integrated epub lib with Monocle for nice effects, and here is the link to the whole source code - https://drive.google.com/drive/folders/0B8UizUpBrF1YX3UxcW5nLUVQMEk
To get horizontal pagination add
css
attribute tohtml
before loading toWebView