tags:

views:

695

answers:

2

I have a WebView and 2 urls to open it it. What I want to do is, when i set a zoom level for 1st url, and then i go to 2nd url, it should also have the same zoom level. Right now, the zoom level resets for both.

Thanks, Farha

+1  A: 

use the webSettings class

webview.getSettings().setDefaultZoom(WebSettings.ZoomDensity.FAR);

Praveen Chandrasekaran
A: 

I have done the following: webView.getSettings().setDefaultZoom(WebSettings.ZoomDensity.CLOSE);

But still, when I click a new link/URL, the Zoom goes back to FAR (or at least my text gets way too small).

Must I use setDefaultZoom on every page load or something?

(edit: Perhaps I should have posted a new question instead? Not sure how this works.)

Yngvar Kristiansen