Discussion:
Disable scroll in webview
mmkr
2010-04-12 12:48:02 UTC
Permalink
Hi all,

Is it possible to disable the scrollbar in the webview? If
possible how?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.
A.TNG
2010-04-12 14:52:53 UTC
Permalink
Post by mmkr
Hi all,
   Is it possible to disable the scrollbar in the webview? If
possible how?
Maybe not exactly, I remember there are some interfaces like
enable/disable scroll bar in WebView.java. Is that OK for you?
--
Best Regards,
TANG Jiyu
Blog: http://jiyu.wordpress.com.cn/
ezkeypad: http://ezkeypad.tool100.com/
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.
murali raju
2010-04-12 15:37:19 UTC
Permalink
ya it will be. my requirement is i want to display a large html file in
number of pages such that each page would fit exactly into a single screen.
I will place a button so that when clicked it would show the next page.
Post by A.TNG
Post by mmkr
Hi all,
Is it possible to disable the scrollbar in the webview? If
possible how?
Maybe not exactly, I remember there are some interfaces like
enable/disable scroll bar in WebView.java. Is that OK for you?
--
Best Regards,
TANG Jiyu
Blog: http://jiyu.wordpress.com.cn/
ezkeypad: http://ezkeypad.tool100.com/
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
A.TNG
2010-04-13 05:20:08 UTC
Permalink
Post by murali raju
ya it will be. my requirement is i want to display a large html file in
number of pages such that each page would fit exactly into a single screen.
I will place a button so that when clicked it would show the next page.
You mean you have a large HTML. But you want to show content in a
single screen. For user, it seems there are several pages. User only
needs to click your button to change page. Right?

I think this kind of work should be done by javascript. Or you can
split your content yourself and put one-screen content into WebView.
--
Best Regards,
TANG Jiyu
Blog: http://jiyu.wordpress.com.cn/
ezkeypad: http://ezkeypad.tool100.com/
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.
murali raju
2010-04-13 13:33:27 UTC
Permalink
Post by A.TNG
You mean you have a large HTML. But you want to show content in a
single screen. For user, it seems there are several pages. User only
needs to click your button to change page. Right?
No. suppose i have 500 lines in a html file( which is too large, so
the scroll bar appears). I want to display the first 100 lines( which fits
exactly in the screen so scroll bar doesn't appear) in first screen then
user clicks a button and next 100 lines appear and so on until the end of
html file.

To be more simple its just like a e-book reader. Where each chapter
will be divided in to pages and each page exactly fits in to the screen, so
no scroll bar.
Post by A.TNG
I think this kind of work should be done by javascript. Or you can
split your content yourself and put one-screen content into WebView.
Finally I even tried to split the text but i couldn't find a way how
to do it. i want the text to split dynamically( so that it fits to various
screen sizes ) . Any solution for splitting ?

Thanks in advance.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
grace
2010-04-13 03:25:29 UTC
Permalink
ya u can do that..
using methods like public void setHorizontalScrollBarEnabled (boolean
horizontalScrollBarEnabled)
and public void setVerticalScrollBarEnabled (boolean
verticalScrollBarEnabled)
Post by mmkr
Hi all,
    Is it possible to disable the scrollbar in the webview? If
possible how?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.
murali raju
2010-04-13 13:34:33 UTC
Permalink
But they don't seem to work for webview. the scroll bar still remains.
Post by grace
ya u can do that..
using methods like public void setHorizontalScrollBarEnabled (boolean
horizontalScrollBarEnabled)
and public void setVerticalScrollBarEnabled (boolean
verticalScrollBarEnabled)
Post by mmkr
Hi all,
Is it possible to disable the scrollbar in the webview? If
possible how?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
Loading...