简体   繁体   English

网络视图全屏模式

[英]Web-view full-screen mode

i have set swf file in webview i got everything is successfully but when i long press it give me option of full-screen so i need to avoid it how can i do that ?? 我已经在webview设置了swf文件,我一切都成功了,但是当我长按它时,可以选择全屏显示,所以我需要避免它怎么办?

here i have attach image : 我在这里附上图片:

在此处输入图片说明

Here is my webview : 这是我的网页视图

wv_introduction = (WebView) findViewById(R.id.ady_solwv);
                wv_introduction.getSettings().setJavaScriptEnabled(true);
                wv_introduction.getSettings().setPluginState(PluginState.ON);
                wv_introduction.getSettings().setAllowFileAccess(true);
                wv_introduction.loadUrl(str_url);

Try adding these: 尝试添加以下内容:

wv_introduction.getSettings().setLoadWithOverviewMode(false);
wv_introduction.getSettings().setUseWideViewPort(false);

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM