问题如图所示。
Activity WebView 设置的代码
contentView = (WebView)this.findViewById(R.id.content);
WebSettings mWebSettings = contentView.getSettings();
mWebSettings.setUseWideViewPort(true);
mWebSettings.setLoadWithOverviewMode(true);
mWebSettings.setTextZoom(getResources().getInteger(R.integer.webview_text_size));
contentView.loadDataWithBaseURL(null, content, "text/html", "utf-8", null);
sourceView.setText(source);
xml 里面的代码
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_paren