安卓webview对html5支持怎么样

如题所述

第1个回答  2017-02-06
css3的重要标准都已经兼容
javascript方面es6以上的特性不支持,promise,canvas,audio video api之类的部分高级特性部分版本安卓已经支持
所以一般的webapp问题不大,不过从性能上来说webview的性能还是赶不上react native,毕竟还是以cpu运算为主
第2个回答  2016-07-17
提供下思路
mWebView.setWebChromeClient(new WebChromeClient() { public void openFileChooser(ValueCallback<Uri> uploadFile, String acceptType) { });复制代码
可以阅读下WebChromeClient的源码,我就摘抄下吧
/**
* Tell the client to open a file chooser.
* @param uploadFile A ValueCallback to set the URI of the file to upload.
* onReceiveValue must be called to wake up the thread.a
* @param acceptType The value of the 'accept' attribute of the input tag
* associated with this file picker.
* @hide
*/如果不管用添加这个方法
public void openFileChooser(ValueCallback<Uri> uploadFile, String acceptType,String capture)
因为Android API变化了。本回答被提问者采纳
相似回答