My Webview Reloads When I Change From Portrait To Landscape

后端 未结 7 866
刺人心
刺人心 2021-01-01 17:25

I have a simple WebView that runs a web application on an Android. The problem is when I rotate the phone to change it to landscape the webview rel

7条回答
  •  迷失自我
    2021-01-01 18:04

    The problem with the above solution is that it renders the screen white for some time before the webview redraws the contents.

    Try using android:configChanges="orientation|keyboardHidden" inside your AndroidManifest.xml file for the activity that displays the webview. That should help.

提交回复
热议问题