From a562d1c68bd0cbb11479cebdacb3e1defa66e7ce Mon Sep 17 00:00:00 2001 From: Jigar Sable <64949957+JigarSable@users.noreply.github.com> Date: Fri, 8 May 2020 15:23:37 +0530 Subject: [PATCH] Update MyActivity.java --- src/com/example/webview/MyActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/example/webview/MyActivity.java b/src/com/example/webview/MyActivity.java index 6be0d3e..8870791 100644 --- a/src/com/example/webview/MyActivity.java +++ b/src/com/example/webview/MyActivity.java @@ -26,6 +26,8 @@ public class MyActivity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); + getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); + getSupportActionBar().hide(); customViewContainer = (FrameLayout) findViewById(R.id.customViewContainer); webView = (WebView) findViewById(R.id.webView);