Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Vertical scrolling of webview to load whole page as different column

I want to disable webview vertical scroll view.Load the web page as columns in webview by using this way I can give the user a book reading effect.

this is the style I added in html.it is not working at all.

  loadingStringHorizontal="<style type='text/css'>body { width:200px;height:400px;
    -webkit-column-gap:17px;-webkit-column-width:170px;
     text-align:justify ;} </style>";

Thanks for your time.

like image 255
Dev.Sinto Avatar asked Apr 12 '11 09:04

Dev.Sinto


1 Answers

You can try single column layout

myWebView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);

or in XML you can put none in scrollbar

<WebView
    android:scrollbars="none" />

then set myWebView.setScrollContainer(false);

like image 193
Bon Kho Avatar answered Nov 15 '22 00:11

Bon Kho