I have extracted the library from the b4xlib file and added to the app.
I have also added the pages the same way as the example
I have added a breakpoint on
spMain.AddPages(lst, "text")
as soon as it entered the addpages (f8) i got the following message:
I have also added the pages the same way as the example
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.Color = xui.Color_White
Root.LoadLayout("pageMain")
FillViewPager
End Sub
Private Sub FillViewPager
Dim lst As List
lst.Initialize
Dim page As Page
page.Initialize("page")
page.RootPanel.Color = Rnd(xui.Color_Black,xui.Color_White)
page.RootPanel.As(B4XView).SetLayoutAnimated(0,0,0,Root.Width,Root.Height)
page.RootPanel.LoadLayout("pvHome")
lst.Add(page)
spMain.AddPages(lst, "text")
I have added a breakpoint on
spMain.AddPages(lst, "text")
as soon as it entered the addpages (f8) i got the following message:
B4X:
Application_Start
Settings Loaded
Last Load 1635426173975
DEBUG API
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
Application_Active
isFirst
AutoLogin true
*** page_login: B4XPage_Created [mainpage]
Class (b4i_b4xmainpage) instance released.
*** mainpage: B4XPage_Disappear [mainpage, page_login]
*** page_login: B4XPage_Appear [mainpage, page_login]
*** page_login: B4XPage_Resize [mainpage, page_login]
Login
Authorization
access_token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImViMTZlY2U3LTA2OTQtNDNjOC05MTI4LTg1MmE5Mjg2M2MxNiIsImlhdCI6MTYzNTQyNjUwMywiZXhwIjoxNjM1NTEyOTAzfQ.XS4rdMRCpJos9o_1d18E1i6x2rl4Ml_y5ocAGedf4a8
Class (b4i_httpjob) instance released.
UserAuthorization
user_access_token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJkYWQyMmFmLWYzN2YtNDA3OS1hNWFkLTlkNmE4ZTQ2NDY1ZSIsImlhdCI6MTYzNTQyNjUwNCwiZXhwIjoxNjM1NTEyOTA0fQ.y5FqygAyFebCkEzWHn7zSdi0_zkvtqNoxGkzetsiWqI
*** page_main: B4XPage_Created [mainpage, page_login]
Class (b4i_bcpath) instance released.
Class (b4i_httpjob) instance released.
Class (b4i_bcpath) instance released.
*** page_login: B4XPage_Disappear [mainpage, page_login, page_main]
*** page_main: B4XPage_Appear [mainpage, page_login, page_main]
*** page_main: B4XPage_Resize [mainpage, page_login, page_main]
Error occurred on line: 97 (ASViewPagerNative)
[<b4i_asviewpager 0x281041a40> valueForUndefinedKey:]: this class is not key value coding-compliant for the key _lst_pages.
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
Foundation <redacted> + 248
Foundation <redacted> + 260
SigaVaga -[B4IShell getField] + 176
SigaVaga -[B4IShell raiseEventImpl:method:args::] + 2100
SigaVaga -[B4IShellBI raiseEvent:event:params:] + 1580
SigaVaga +[B4IDebug delegate:::] + 80
SigaVaga -[b4i_page_main _fillviewpager:] + 220
SigaVaga -[b4i_page_main _b4xpage_appear:] + 388
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
SigaVaga +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1300
SigaVaga -[B4IShell runMethod:] + 448
SigaVaga -[B4IShell raiseEventImpl:method:args::] + 2172
SigaVaga -[B4IShellBI raiseEvent:event:params:] + 1580
SigaVaga __33-[B4I raiseUIEvent:event:params:]_block_invoke + 52
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 1068
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 1924
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 104
UIKitCore UIApplicationMain + 212
SigaVaga main + 120
libdyld.dylib <redacted> + 4
)