Android Question Assistance with Navigation Bar Customization in B4XPages for Android (B4A)

ykucuk

Well-Known Member
Licensed User
Longtime User
Hi everyone,
I'm new to using B4XPages in Android (B4A) and need some help with two issues related to navigation bar customization:

1. Hiding the Navigation Bar on the Login Page
In B4i, I use the following code to hide the navigation bar:
B4X:
   Main.NavControl.NavigationBarVisible = False
How can I achieve the same in B4A for B4XPages?

2. Adding Buttons to the Left and Right Sides of the Navigation Bar
In B4i, I add buttons to the navigation bar using this code:
B4X:
   Dim bb As BarButton
   bb.InitializeText(Chr(0xF3FB), "hamburger")
   bb.SetFont(xui.CreateFont2(Font.CreateNew2(Helper.FontIcon, 24), 24))
   Dim aa As BarButton
   aa.InitializeText(Chr(0xF189), "notification")
   aa.SetFont(xui.CreateFont2(Font.CreateNew2(Helper.FontIcon, 24), 24))

   B4XPages.GetNativeParent(B4XPages.MainPage).TopLeftButtons = Array(bb)
   B4XPages.GetNativeParent(B4XPages.MainPage).TopRightButtons = Array(aa)
How can I replicate this functionality in B4A for B4XPages?

Any guidance or code examples for handling these navigation bar customizations in B4A would be greatly appreciated. Thank you!
 

walterf25

Expert
Licensed User
Longtime User
Android is a completely different animal than iOS, but take a look at this thread, this can help you understand better what you are trying to do, you can always customize things, like create your custom views, but I think this thread here explains better what you are trying to accomplish
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…