Hi Erel, all.
I have 2 Activity B4XPages and this code.
B4XMainPage:
B4XPage2:
in MainPage i have
So the page2 already create in this step and after we "play" only with B4XPages.ShowPage, but still i get the unwanted effect of the refresh
Anyway when i click in
i have this "refresh" , where and how if the activity was recharged.
I also tried to eliminate Animation Duration = 0 in Design but dont change nothying.
Where i wrong ? Is it possible to have a "linear" effect (as at the end of the movie) without having the refresh.
Thank you
Marco
I have 2 Activity B4XPages and this code.
B4XMainPage:
B4X:
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
'load the layout to Root
Root.LoadLayout("lay_main")
Page2.Initialize
'B4XPages.AddPage("Page2", Page2)
B4XPages.AddPageAndCreate("Page2", Page2)
'Page2 = B4XPages.GetPage("Page2")
End Sub
Sub B4XPage_Appear
Log("sono qui")
WobbleMenu1.SetCurrentTab(1)
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
Sub WobbleMenu1_Tab2Click
'B4XPages.ShowPageAndRemovePreviousPages("Page2")
B4XPages.ShowPage("Page2")
End Sub
B4XPage2:
B4X:
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Root.LoadLayout("lay_page2")
End Sub
Sub WobbleMenu1_Tab1Click
'B4XPages.ShowPageAndRemovePreviousPages("MainPage")
B4XPages.ShowPage("MainPage")
End Sub
Sub B4XPage_Appear
Log("Appear Page2")
WobbleMenu1.SetCurrentTab(2)
End Sub
Sub B4XPage_Disappear
Log("Disappear Page2")
End Sub
in MainPage i have
B4X:
B4XPages.AddPageAndCreate("Page2", Page2)
Anyway when i click in
B4X:
Sub WobbleMenu1_Tab2Click
B4XPages.ShowPage("Page2")
End Sub
I also tried to eliminate Animation Duration = 0 in Design but dont change nothying.
Where i wrong ? Is it possible to have a "linear" effect (as at the end of the movie) without having the refresh.
Thank you
Marco
Attachments
Last edited: