I am developing android quiz app. I created questions as html files and copied in asset folder. I need to show these html files, one by one in Webview while swiping left to right.
Asked
Active
Viewed 226 times
-2
-
Please show your code. You can create buttons on each page and communicate with Java code — and in Java code you can reload webview's page. – Peter Samokhin Aug 11 '18 at 19:08
-
But why you don't use cordova/react native/etc if you want to use html/js? – Peter Samokhin Aug 11 '18 at 19:08
1 Answers
0
You can use a tabbed activity with only a viewpager. and add webviews as fragments. And load each HTML page to the fragment. See Tabbed Activity

NirmalCode
- 2,140
- 1
- 14
- 19
-
Somehow i completed the webview with multiple html loading. I have one more doubt. It is possible to show some portion of html file instead of showing full content. – Suresh Srinivasalu Aug 13 '18 at 03:20
-
Refer this link (https://stackoverflow.com/questions/12257929/display-a-part-of-the-webpage-on-the-webview-android) – NirmalCode Aug 14 '18 at 06:25