public class WebViewActivity extends Activity {
private WebView webResetPwd;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// this.requestWindowFeature(Window.FEATURE_NO_TITLE);//取消标题
setContentView(R.layout.xxx);
wv= (WebView)findViewById(R.id. wv1);
wv.setWebViewClient(new WebViewClient(){});
webResetPwd.loadUrl("http://baidu.com");
WebSettings websetting = wv.getSettings();
websetting.setJavaScriptEnabled(true);
/*缩放页面方式1.
webResetPwd.setInitialScale(110);
*/
/*缩放页面方式2. 会出现放大缩小的按钮
websetting.setSupportZoom(true);
websetting.setBuiltInZoomControls(true);
*/
/*缩小页面方式3.
websetting.setDefaultZoom(WebSettings.ZoomDensity.FAR);
*/
/*缩放页面方式4.
websetting.setUseWideViewPort(true);
websetting.setLoadWithOverviewMode(true);
*/
/*缩放页面方式5. 会将页面元素在一列中显示出来
websetting.setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
*/
}
}