asales Expert Licensed User Longtime User Jun 15, 2020 #1 In activity I use the code below to pause and resume a banner in each activity. How do I use it in B4XPages (or I don't need this anymore)? B4X: Sub Activity_Resume AdView1.Resume End Sub Sub Activity_Pause (UserClosed As Boolean) AdView1.Pause End Sub
In activity I use the code below to pause and resume a banner in each activity. How do I use it in B4XPages (or I don't need this anymore)? B4X: Sub Activity_Resume AdView1.Resume End Sub Sub Activity_Pause (UserClosed As Boolean) AdView1.Pause End Sub
Erel B4X founder Staff member Licensed User Longtime User Jun 15, 2020 #2 Two options: 1. Use B4XPage_Appear / Disappear instead of these events. 2. Move the banner between the pages. Upvote 0
Two options: 1. Use B4XPage_Appear / Disappear instead of these events. 2. Move the banner between the pages.
asales Expert Licensed User Longtime User Jun 15, 2020 #3 Erel said: 2. Move the banner between the pages. Click to expand... How I can "move" the banner? Or other views (ads)? Upvote 0
Erel said: 2. Move the banner between the pages. Click to expand... How I can "move" the banner? Or other views (ads)?
Erel B4X founder Staff member Licensed User Longtime User Jun 16, 2020 #4 B4X: Dim SomeOtherPage As SomeOtherPageClass = B4XPages.GetPage("other page id") Dim v As B4XView = SomeOtherPage.pnlAd v.RemoveViewFromParent Root.AddView(v, ...) Upvote 0
B4X: Dim SomeOtherPage As SomeOtherPageClass = B4XPages.GetPage("other page id") Dim v As B4XView = SomeOtherPage.pnlAd v.RemoveViewFromParent Root.AddView(v, ...)