Answer the question
In order to leave comments, you need to log in
How to expand webview to full screen?
How to expand webview to full screen?
There are activities:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<WebView
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<FrameLayout
android:id="@+id/fullscreen_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"/>
</FrameLayout>
String strframe = "<iframe src=\""+iframe_url+"\" width=\""+"100%"+"\" height=\""+"100%"+"\" frameborder=\"0\" allowfullscreen></iframe>";
webView = (WebView) findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadData(strframe, "text/html", "utf-8");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question