Android, changing orientation of WebView in fragment -
i have fragment webview , need play video in fullscreen. can't use android:configchanges="orientation|screensize" in androidmanifest mainactivity, because mainactivity has 2 different layout lanscape , portrait mode. calling method setretaininstance on fragment retain fragment (it not destroyed), hence instance variables of fragment preserved, destroy fragment's view hence webview gets destroyed.
Comments
Post a Comment