Enum for specifying the text size. SMALLEST is 50% SMALLER is 75% NORMAL is 100% LARGER is 150% LARGEST is 200%
原文:http://www.cnblogs.com/yourancao520/archive/2012/06/14/2548900.html
/**
* webview
*/
WebView wv;
/**
* Manages settings state for a WebView
*/
WebSettings settings;
/**
* 用来控制字体大小
*/
int fontSize = 1;
wv = (WebView) findViewById(R.id.webViewContent);
settings = wv.getSettings();
settings.setSupportZoom(true);
if (settings.getTextSize() == WebSettings.TextSize.SMALLEST) {
fontSize = 1;
} else if (settings.getTextSize() == WebSettings.TextSize.SMALLER) {
fontSize = 2;
} else if (settings.getTextSize() == WebSettings.TextSize.NORMAL) {
fontSize = 3;
} else if (