Display some part of HTML file in WebView

by mansur Android » Wed, 21 Apr 2010 21:49:34 GMT

Sponsored Links
 Hi All,

We have a large HTML which contents 1000's of lines. But we want to
show content of the HTML file that fits a
single screen.  We want provide a '>'  kind of to show the next
contents of the same HTML file.

Our objective is to only display the HTML contents that fits the
screen.Similar to reader application  For user, it seems there are
several pages.

Is there any way in which we can achieve this functionality. Whether
WebView has any function related to full fill the requirement.

Thanks and Regards,


Display some part of HTML file in WebView

by Sean Hodges » Wed, 21 Apr 2010 22:02:06 GMT

 Why must all the content be on a single HTML page?

If you really can't split it out, you could use some Javascript
actions to hide/display sections of the HTML page when the user clicks
the '>' button. However, the browser will still need to download and
render the entire page when it loads, which may take a long time. The
best solution would be to split the content into a number of pages.

On Wed, Apr 21, 2010 at 2:49 PM, mansur Android


Sponsored Links

Other Threads

1. Cursor and rowId

how do get the row ID from a Cursor?


2. How to get an app included in the Android Market Showcase

In the unlikely case there's a process to get an app included in the
Android Market Showcase...
Anybody know how to get to this level of exposure? I could make a
case. (yeah I understand most people pro'lly do)


3. Paging X10 Users : Setting Audio X1

4. Internet data request done via ContentProvider?

5. Is there any way to send key strokes to other applications launched from a test application

6. Layered input methods?

7. Regarding CTS test apk Signing procedure