Setting Android webview initialScale prevents proper zooming
<p><strong>Need</strong>:</p>

<p>I want a webview to automatically be sized to fit the width of that particular page. I have Googled this and found several different suggestions. Most of them work. But then each of them effects zooming in / zooming out.</p>

<p>What I'm looking for is a solution that accomplishes both. The webview is initially set to fill the screen, but then it allows the user to zoom in (with pinching) and zoom out.</p>

<p><strong>What I've Tried</strong>:</p>

<pre><code>mainView.getSettings().setLoadWithOverviewMode(true);
mainView.getSettings().setUseWideViewPort(false);
mainView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);  
mainView.getSettings().setBuiltInZoomControls(true);
mainView.getSettings().setSupportZoom(true);
</code></pre>

<p>I have also tried setting mainView.setInitialScale(various percentages)</p>

<p>Again, I have tried these in different orders, including some, not including others. Currently, if I use the above code and setInitialScale(65), it loads initially fine but then once you zoom in, you cannot zoom all the way back out.</p>

<p>Does anyone know of the best practice to set initial scale to fit screen but fully allow zooming out and in?</p>

<p><strong>Why I Need It</strong>:</p>

<p>I'm using a ViewFlipper in my Android app to load several webviews simultaneously. I have a touch sensor that allows sliding from left to right to switch between different webviews. The practical purpose of this is to show a grocery store's ads and allow the user to slide from page to page.</p>

<p>The problem is that the API feed I'm using basically only allows me to load a URL for each page. So I have to use webviews.</p>
