John Decowski Member Licensed User Longtime User Dec 22, 2019 #1 Im using this tutorials code: https://www.b4x.com/android/forum/threads/b4x-b4xdrawer-sliding-drawer.97828/ I set the center panel using .loadlayout and it works but when i try to load a different layout for a different section it just overwrites on top of the screen. and I cant figure out how to clear the panel first. I know in android you should be using multiple activities but I cannot figure out how to incorporate the tool bar and left draw into multiple activities. Code: Drawer.CenterPanel.LoadLayout("TradeJournal") thanks in advance. Last edited: Dec 22, 2019
Im using this tutorials code: https://www.b4x.com/android/forum/threads/b4x-b4xdrawer-sliding-drawer.97828/ I set the center panel using .loadlayout and it works but when i try to load a different layout for a different section it just overwrites on top of the screen. and I cant figure out how to clear the panel first. I know in android you should be using multiple activities but I cannot figure out how to incorporate the tool bar and left draw into multiple activities. Code: Drawer.CenterPanel.LoadLayout("TradeJournal") thanks in advance.
Andrew (Digitwell) Well-Known Member Licensed User Longtime User Dec 22, 2019 #2 Drawer.CenterPanel.removeAllViews should clear the panel. Upvote 0
John Decowski Member Licensed User Longtime User Dec 22, 2019 #3 Andrew (Digitwell) said: Drawer.CenterPanel.removeAllViews should clear the panel. Click to expand... I tried that and it removes the entire toolbar and everything Upvote 0
Andrew (Digitwell) said: Drawer.CenterPanel.removeAllViews should clear the panel. Click to expand... I tried that and it removes the entire toolbar and everything
DonManfred Expert Licensed User Longtime User Dec 22, 2019 #4 John Decowski said: I tried that and it removes the entire toolbar and everything Click to expand... did you used Activity.RemoveAllViews? Upvote 0
John Decowski said: I tried that and it removes the entire toolbar and everything Click to expand... did you used Activity.RemoveAllViews?
John Decowski Member Licensed User Longtime User Dec 22, 2019 #5 DonManfred said: did you used Activity.RemoveAllViews? Click to expand... ok , I got it to work by activity.removeallviews but seems more of a workaround than an actual solution. As you see the code below I remove all views and then have to re run the activity create routine to redraw toolbar. If I dont re run the create routine the toolbar will be gone. Wasn't sure if there was a solution that didnt require redrawing the toolbar. Code: Activity.RemoveAllViews Activity_Create(False) Drawer.CenterPanel.LoadLayout("addjournal") thank you for your help Don! Appreciate it! Upvote 0
DonManfred said: did you used Activity.RemoveAllViews? Click to expand... ok , I got it to work by activity.removeallviews but seems more of a workaround than an actual solution. As you see the code below I remove all views and then have to re run the activity create routine to redraw toolbar. If I dont re run the create routine the toolbar will be gone. Wasn't sure if there was a solution that didnt require redrawing the toolbar. Code: Activity.RemoveAllViews Activity_Create(False) Drawer.CenterPanel.LoadLayout("addjournal") thank you for your help Don! Appreciate it!