Webview in AHViewPager change orientation

MDEnt

Member
Licensed User
Longtime User
I am currently using the demo code supplied with the library and currently I have the webviews being loaded in CREATEPANEL like:


B4X:
Sub CreatePanel(PanelType As Int, Title As String) As Panel
      Case TYPE_HELLO_WORLD
      ...
      mywebview.LoadUrl("http://www.awebsiteaddress.com")
      pan.AddView(mywebview, 0, 0, FILL_PARENT, FILL_PARENT)
End Sub

When I change orientations, it takes several seconds to reload and display the webpage.

I'm wondering if there is good place/way to load the webpages outside of createpanel so they display immediately when orientation changes.
 
Top