Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
' this is the color of a selected item when isColoredBackground(False)
Navigation.ItemActiveColorWithoutColoredBackground = Colors.Magenta
' background color of navigation bar
Navigation.Color = Colors.green
' when an item is clicked, does the color change? True = Yes
Navigation.isColoredBackground(True)
AddNavigationItem("10K", Colors.Blue, "likeb")
AddNavigationItem("2K", Colors.Red, "comment")
AddNavigationItem("Following", Colors.Yellow, "following")
End Sub
' define a single method to add an item
Sub AddNavigationItem(sTitle As String, clr As Int, res As String)
' the color here works when the isColoredBackground(true)
' when clicked, the color of the whole BottomNavigation turns into that
Dim Item As BottomNavigationItem
Item.Initialize(sTitle,clr,res)
Navigation.addTab(Item)
End Sub