首页 > 代码库 > MainActivity.java

MainActivity.java

package www.wulian1.com.webview;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

WebView webView=(WebView)findViewById(R.id.wv_zknu);
webView.loadUrl("http://10.10.192.58:83/zknu84/index.html");

//webView.getSettings().setUseWideViewPort(true);
//webView.getSettings().setLoadWithOverviewMode(true);
}
}

MainActivity.java