LucasHeer Active Member Licensed User Longtime User Jul 11, 2020 #1 Hello! I am using B4XPages and am having trouble with displaying my bottom navigation over the pages. In B4A I use this after initiating the page manager: B4X: Dim pm As B4XPagesManager pm.Initialize(Activity) Activity.LoadLayout("BottomBar") However, I cannot figure out how to add the bottom nav layout in B4i. I tried loading it as a page and it messed up the PageManager. I also tried loading the bottom navigation in B4XMainPage, but it gets removed in future pages. Thank you!
Hello! I am using B4XPages and am having trouble with displaying my bottom navigation over the pages. In B4A I use this after initiating the page manager: B4X: Dim pm As B4XPagesManager pm.Initialize(Activity) Activity.LoadLayout("BottomBar") However, I cannot figure out how to add the bottom nav layout in B4i. I tried loading it as a page and it messed up the PageManager. I also tried loading the bottom navigation in B4XMainPage, but it gets removed in future pages. Thank you!
Erel B4X founder Staff member Licensed User Longtime User Jul 12, 2020 #2 lucasheer said: In B4A I use this after initiating the page manager: Click to expand... Not the best solution if you want to build a cross platform app. You should instead implement the bar in a class (possible as a custom view) and load it from each of the pages. Upvote 0
lucasheer said: In B4A I use this after initiating the page manager: Click to expand... Not the best solution if you want to build a cross platform app. You should instead implement the bar in a class (possible as a custom view) and load it from each of the pages.
LucasHeer Active Member Licensed User Longtime User Jul 12, 2020 #3 Erel said: Not the best solution if you want to build a cross platform app. You should instead implement the bar in a class (possible as a custom view) and load it from each of the pages. Click to expand... I can load my bar onto each page, but it becomes part of the sliding animation whenever I go to a new page. I just need to be able to overlay the bar above all of B4XPages Upvote 0
Erel said: Not the best solution if you want to build a cross platform app. You should instead implement the bar in a class (possible as a custom view) and load it from each of the pages. Click to expand... I can load my bar onto each page, but it becomes part of the sliding animation whenever I go to a new page. I just need to be able to overlay the bar above all of B4XPages
Erel B4X founder Staff member Licensed User Longtime User Jul 12, 2020 #4 lucasheer said: I just need to be able to overlay the bar above all of B4XPages Click to expand... You can't. Each B4XPage in B4i is contained in a native Page. Upvote 0
lucasheer said: I just need to be able to overlay the bar above all of B4XPages Click to expand... You can't. Each B4XPage in B4i is contained in a native Page.
LucasHeer Active Member Licensed User Longtime User Jul 13, 2020 #5 Erel said: You can't. Each B4XPage in B4i is contained in a native Page. Click to expand... I have continued to search for a way to solve this issue. 6/8 of my apps, and many apps now days use this bottom navigation: I don't see how I can implement this with B4XPages. I can't add it through each page because of the slide/new page animations. Sorry for the trouble, but I really want to use B4XPages for my apps. Thank you! Upvote 0
Erel said: You can't. Each B4XPage in B4i is contained in a native Page. Click to expand... I have continued to search for a way to solve this issue. 6/8 of my apps, and many apps now days use this bottom navigation: I don't see how I can implement this with B4XPages. I can't add it through each page because of the slide/new page animations. Sorry for the trouble, but I really want to use B4XPages for my apps. Thank you!
Erel B4X founder Staff member Licensed User Longtime User Jul 13, 2020 #6 You can disable the pages animation. You can use a single page and replace the layouts. You will lose many things but it is possible. Upvote 0
You can disable the pages animation. You can use a single page and replace the layouts. You will lose many things but it is possible.