R RB Smissaert Well-Known Member Licensed User Longtime User Aug 5, 2020 #1 Trying out the example that comes with the first post about the stdActionBar library. I don't want any title, but when I set IncludeTitle: False in Region Activity Attributes I get: java.lang.NullPointerException at: bar.NavigationMode = bar.NAVIGATION_MODE_TABS Any idea what the problem could be here? I am using B4A version 10.0 RBS
Trying out the example that comes with the first post about the stdActionBar library. I don't want any title, but when I set IncludeTitle: False in Region Activity Attributes I get: java.lang.NullPointerException at: bar.NavigationMode = bar.NAVIGATION_MODE_TABS Any idea what the problem could be here? I am using B4A version 10.0 RBS
Erel B4X founder Staff member Licensed User Longtime User Aug 6, 2020 #2 Why use this library if you don't want to show the action bar (title)? Upvote 0
R RB Smissaert Well-Known Member Licensed User Longtime User Aug 6, 2020 #3 I am using AppCompat now, but thought that that wouldn't work with B4XPages. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 6, 2020 #4 You probably don't need it with B4XPages. Which features are you missing? Upvote 0
R RB Smissaert Well-Known Member Licensed User Longtime User Aug 6, 2020 #5 All I need is a toolbar/menubar that remains available at the top to all application screens. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 6, 2020 #6 You don't any library to add menu items: Code: Dim mi As B4AMenuItem = B4XPages.AddMenuItem(Me, "Main 2") mi.AddToBar = True mi.Bitmap = xui.LoadBitmapResize(File.DirAssets, "image.png", 64dip, 64dip, True) Upvote 0
You don't any library to add menu items: Code: Dim mi As B4AMenuItem = B4XPages.AddMenuItem(Me, "Main 2") mi.AddToBar = True mi.Bitmap = xui.LoadBitmapResize(File.DirAssets, "image.png", 64dip, 64dip, True)
R RB Smissaert Well-Known Member Licensed User Longtime User Aug 6, 2020 #7 OK, thanks, that will simplify things a lot then. Will that code make the menu available to all pages? Upvote 0
OK, thanks, that will simplify things a lot then. Will that code make the menu available to all pages?
Erel B4X founder Staff member Licensed User Longtime User Aug 7, 2020 #8 No. Each page has its own menu. It is trivial to create a sub in MainPage that creates the menu, and call it from other pages. Upvote 0
No. Each page has its own menu. It is trivial to create a sub in MainPage that creates the menu, and call it from other pages.