0

Whenever I open a website using WebView, the page is already (initially) scrolled down.

How to prevent this default scrolling by WebView?

Confuse
  • 5,646
  • 7
  • 36
  • 58
maha m
  • 29
  • 3
  • Try this webView.setInitialScale(99); – Haresh Chhelana Oct 11 '14 at 06:32
  • please say functionality webView.setInitialScale(99); will it disable scrolling when i try to scroll? – maha m Oct 11 '14 at 06:41
  • Possible duplicate: http://stackoverflow.com/questions/2527899/disable-scrolling-in-webview – Joey Ezekiel Oct 11 '14 at 06:43
  • Hi @JoeyEzekiel http://stackoverflow.com/questions/2527899/disable-scrolling-in-webview this link says to disable scroll bar not scrolling – maha m Oct 11 '14 at 06:58
  • Ya Thakns @JoeyEzekiel i Got Answer Through this code public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_MOVE) return true; else return false – maha m Oct 11 '14 at 07:22

0 Answers0