Shai Léger
Shai Léger

Reputation: 885

Display website in webview without zoom

I have a spinner and when an item is selected an html attached to the item is displayed on a webview.

And it looks like this after an item is selected:

With zoom

Then the user can zoom-out but I want to display the web like this from default, it's there any option for that?

enter image description here

Upvotes: 0

Views: 44

Answers (1)

user5646001
user5646001

Reputation:

Try this code:

webview.setInitialScale(1);
webview.getSettings().setLoadWithOverviewMode(true) 
webview.getSettings().setUseWideViewPort(true)

Upvotes: 1

Related Questions