Code example for WebSettings

Methods: setJavaScriptEnabledsetLayoutAlgorithmsetTextSize

0
		if(c==null||webview==null)
			return; 
		WebSettings websettings = webview.getSettings();
		// 1��LayoutAlgorithm.NARROW_COLUMNS �� ��Ӧ���ݴ�С 
        // 2��LayoutAlgorithm.SINGLE_COLUMN:��Ӧ��Ļ�����ݽ��Զ����� 
		websettings.setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
		// ����֧��JavaScript 
		webview.clearCache(true);
		websettings.setJavaScriptEnabled(true);
		//��������  
		websettings.setTextSize(SettingUtil.getNewsFontSize(c));
		webview.setWebViewClient(new WebViewClient()
		{ 
			// ����������ת���� 
			public boolean shouldOverrideUrlLoading(WebView view,
								final String url)
			{ 
				//���Ӵ����������¼��ر�ǩ 
				if(isreloadlink(url))
				{