monocle

Use Horizontal Scroll in Android WebView

你。 提交于 2019-12-02 08:10:49
问题 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? 回答1: Atlast, I could

Use Horizontal Scroll in Android WebView

那年仲夏 提交于 2019-12-02 07:28:25
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 -