I am getting: java.lang.IllegalArgumentException: No view found for id 0x2711 (unknown) for fragment MapFragment{4c61b43 #0 id=0x2711}
B4X:
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.Color = xui.Color_White
Root.LoadLayout("pageMain") 'HERE THERE IS A TABSTRIP
FillViewPager
StartMap
End Sub
#Region Main Page
Private Sub FillViewPager
spMainAddPage("pvMyCar")
spMainAddPage("pvHome") 'HERE THERE IS A MAPFRAGMENT
spMainAddPage("pvSettings")
B4X:
private Sub spMainAddPage(Layout As String)
#if b4a
spMain.LoadLayout(Layout, Layout)
#end if
End Sub
strangelly using the TabStrip demo it works, I have just added the mapfragment on the first page of the demo for testing and worked.
Removing any other interaction to the mapfragment did not work. So must be something during creation.