I want to show URL bar and webpage(below URL bar). But I don't know why it showing only web page.
XML code:
<EditText
android:id="@+id/etURL"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:inputType="text"
/>
<WebView
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_below="@+id/etURL"
/>
Java code:
webView = (WebView) findViewById(R.id.webview);
WebSettings ws = webView.getSettings();
ws.setJavaScriptEnabled(true);
ws.setSupportMultipleWindows(true);
ws.setSupportZoom(true);
ws.setBuiltInZoomControls(true);
ws.setCacheMode(WebSettings.LOAD_NO_CACHE);
ws.setUseWideViewPort(true);
ws.setLoadWithOverviewMode(true);
ws.setLoadsImagesAutomatically(true);
webView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
webView.loadUrl(mURL);
MyWebViewClient wvc = new MyWebViewClient();
webView.setWebViewClient(wvc);
wvc.setActivity(this);
wvc.setListener(this);
I think, address bar is covered by web page. How to display webpage below addresbar?
0 comments:
Post a Comment