android webview隐藏地址栏
发布日期:2013-06-11 15:09:38
private WebView webview ;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ebook);
//webview use to call own site
webview =(WebView)findViewById(R.id.webView);
webview.setWebViewClient(new WebViewClient());
webview .getSettings().setJavaScriptEnabled(true);
webview .getSettings().setDomStorageEnabled(true);
webview.loadUrl("http://www.google.com");
}and your entire main.xml(res/layout) look should like this:
don't go to add layouts.
===============================================================
You could remove the title by writing this for your activity in your manifest file.
android:theme="@android:style/Theme.NoTitleBar">