Sreedev
Sreedev

Reputation: 6653

Disabling the zoom functionality of webview,when clicked on the textfield?

I am having a WebView with many text field and some images. I disabled all the zoom and zoom controls in the webview. But my problem is when I click on the text field its getting zoomed. I want to disable the whole zoom of the WebView even I don't want to get zoomed when clicked on the text field. I had gone through this link and tried all these ways but still am having a problem of getting the zoomed when clicked on the text field.

Upvotes: 4

Views: 2161

Answers (1)

Sreedev
Sreedev

Reputation: 6653

I got the answer

webView.getSettings().setDefaultZoom(ZoomDensity.FAR);
    webView.getSettings().setBuiltInZoomControls(true);
    webView.getSettings().setSupportZoom(true);
    webView.getSettings().setJavaScriptEnabled(true);
    webView.getSettings().setLoadWithOverviewMode(false);
    webView.getSettings().setUseWideViewPort(false);

Upvotes: 5

Related Questions