B4J Question [ABMaterial] Showing selected item of the ABMNavigationBar

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi

How to showing the selected item of the ABMNavigationBar ?


73b0dff3c3e27daa8f0ca96121914104.png
 

mindful

Active Member
Licensed User
If you dont want to change the color of the text and just want to mark that item from the sidebar as selected (a grey overlay is placed over the whole sidebar item) you need to use the code below in the method where you build your sidebar items (eg. BuildNavigationBar or ConnectNavigationBar)
B4X:
page.NavigationBar.ActiveSideReturnName = sideItemReturnName
Page.NavigationBar.ActiveSideSubReturnName = sideSubItemReturnName
where sideItemReturnName and/or sideSubItemReturnName is the returnId of the item that you want it to be marked as selected.

You'll find an example in the Demo project that comes with ABMaterial library.
 
Upvote 0

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi

What is ActiveTopReturnName !?

page.NavigationBar.ActiveTopReturnName = ActiveTopReturnName
 
Upvote 0
Top