I have a TabHost view (2 tabs) and first tab loads in Activity_Create a .bal-file with a WebView ("webMsg")
Also in Activity_Create the WebView loads a html:
Now, when I open the Activity with the fist tab, it is OK. But when I change to the second tab and come back to the first, it seems to change between the two tabs very fast automatically and the tabheader disappear (see attached video). It is not an event raised by code. I tried the following, but still the same behavior:
B4X:
TabHost1.AddTab("Nachricht", "viewMsg.bal")
B4X:
webMsg.LoadHtml(sHTML)
Now, when I open the Activity with the fist tab, it is OK. But when I change to the second tab and come back to the first, it seems to change between the two tabs very fast automatically and the tabheader disappear (see attached video). It is not an event raised by code. I tried the following, but still the same behavior:
- removed every code with TabHost1.CurrentTab = ...
- removed every events that could be raised by the WebView, like webMsg_PageFinished, ...
- loaded only a small text in the WebView: webMsg.LoadHtml("test")