views:

126

answers:

1

How can you manually change the font size of a webview? e.g. When the page loads up in the webview the font size is like 24pt. and way too large for my android's screen. I've looked into the "websettings" but it seems that the two are not related.

Thanks

+1  A: 

I finally found it:

WebSettings webSettings = webView.getSettings();

//either setTextSize or

webSettings.setTextSize(WebSettings.TextSize.SMALLEST);

//this one works too

webSettings.setDefaultFontSize(10);

Scott