3

i want to load my web view as a overview mode(completely zoomed out). that is the webpage zoomed out completely at the initial state.

i coded like this:

webview_obj.getSettings().setLoadWithOverviewMode(true);

its not working. what is the mistake and how to rectify it?

Praveen
  • 90,477
  • 74
  • 177
  • 219

1 Answers1

8

I was just trying to figure that out myself. It seems that setting setUseWideViewPort in addition to setLoadWithOverviewMode fixes it.

webview_obj.getSettings().setUseWideViewPort(true);

This other question deals with the same thing. How to set the initial zoom/width for a webview

Community
  • 1
  • 1
Jose Vazquez
  • 96
  • 1
  • 3
  • don't you have an issue with double-tap, which zooms in/out a view? I am just currently dealing with it. – MartinC Oct 21 '13 at 09:47