简体   繁体   English

Android弹出窗口无法在WebView中正确显示

[英]Android popup not displayed correctly in webview

I developed an Android application to host Sap Fiori Application which is a Html5 tech. 我开发了一个Android应用程序来托管Sap Fiori Application,这是一项Html5技术。 Working fine except one problem, i would like some help if possible as i could not find a solution for this yet. 工作正常,除了一个问题,如果可能的话,我希望获得一些帮助,因为我还没有找到解决方案。

The error popup message from fiori is bigger than phones screen (outside of webview). 来自fiori的错误弹出消息大于电话屏幕(在Webview外部)。 My application only consists of a webview that hosts this application. 我的应用程序仅包含一个托管该应用程序的Web视图。

But if I rotate phone screen, it displays correctly after that. 但是,如果我旋转手机屏幕,那之后它会正确显示。

Any input will be appreciated, 任何输入将不胜感激,

try to use higher version android devices. 尝试使用higher version android设备。 you should enable jscript in code as 您应该在代码中启用jscript

webView.getSettings().setJavaScriptEnabled(true);

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

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