Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/219.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Youtube视频webview与android中的其他布局重叠_Java_Android - Fatal编程技术网

Java Youtube视频webview与android中的其他布局重叠

Java Youtube视频webview与android中的其他布局重叠,java,android,Java,Android,我的应用程序中有一个webview,它工作正常,但当url中嵌入了youtube视频时,webview在另一个布局上重叠,该布局被覆盖。据我所知,这里的代码是: web = (WebView) findViewById(R.id.webview01); progressBar = (ProgressBar) findViewById(R.id.progressBar1); web.getSettings().setLoadWithOverviewMode(true); web.getSet

我的应用程序中有一个webview,它工作正常,但当url中嵌入了youtube视频时,webview在另一个布局上重叠,该布局被覆盖。据我所知,这里的代码是:

web = (WebView) findViewById(R.id.webview01);
progressBar = (ProgressBar) findViewById(R.id.progressBar1);



web.getSettings().setLoadWithOverviewMode(true);
web.getSettings().setUseWideViewPort(true);
web.setWebViewClient(new myWebClient());
web.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
web.getSettings().setPluginState(PluginState.ON);
web.getSettings().setJavaScriptEnabled(true);

web.loadUrl("http://savebigshopper.com/amazon");
以下是我可以展示布局如何移位的图像:


抓取一张截图,让大家看看你是否可以。