Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在安卓自带的浏览器中,当你旋转手机时,WebView不会重新加载。我想知道如何做到这一点。我可以保存 的当前 URLWebview并将其传递给我自己的下一个版本,但是我该如何处理整个WebView?
WebView
Webview
我最终只使用了 onConfigurationChange 并保持了相同的 WebView。谢谢, 艾萨克·沃勒
不要忘记在 Manifest 中注册 configChange。
<activity android:name=".WebContent" android:configChanges="orientation">