Android webview retain form data when orientation changes

拜拜、爱过 提交于 2019-12-05 13:27:42

As the WebView has been destroyed and then recreated you will need to repopulate the form. You can do this by injecting javascript into the web view

for example to update text displayed by HTML element id status

wevView.loadUrl("javascript:document.querySelector('#status').innerHTML = 'some text'");

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!