Drawer.Initialize(Me, "Drawer", Activity, 300dip)
Activity.SetBackgroundImage(bmp)
ProgressDialogShow2("Loading, Please Wait...", False)
Drawer.CenterPanel.LoadLayout("bslarge")
ToolbarHelper.Initialize
ToolbarHelper.ShowUpIndicator = True 'set to true to show the up arrow (In this case, hamburger menu)
Dim bd As BitmapDrawable
bd.Initialize(LoadBitmap(File.DirAssets, "hamburger.png"))
ToolbarHelper.UpIndicatorDrawable = bd
ToolbarHelper.Title = "Major Display SportsMonitor SCB3000 Baseball"
#IF 2A and NOT(CTNC)
ToolbarHelper.Subtitle = "V" & Left(pm.GetVersionName("md.smbaseball2a"), 3) & "." & Right(pm.GetVersionName("md.smbaseball2a"), 1)
#END IF
#IF 2A AND CTNC
ToolbarHelper.Subtitle = "V" & Left(pm.GetVersionName("md.smbaseball2actnc"), 3) & "." & Right(pm.GetVersionName("md.smbaseball2actnc"), 1)
#END IF
#IF 2B
ToolbarHelper.Subtitle = "V" & Left(pm.GetVersionName("md.smbaseball2b"), 3) & "." & Right(pm.GetVersionName("md.smbaseball2b"), 1)
#END IF
ACToolBarLight1.InitMenuListener
Drawer.LeftPanel.LoadLayout("Left")
'Activity.Title = "Major Display SportsMonitor SCB3000 " & PM.GetVersionName("md.smpc01")
shutdown = False
'SetMenuItems(CommEngine.connected)
'RefreshTimer.Enabled = True
ProgressDialogHide
Sub Activity_CreateMenu(Menu As ACMenu)
Menu.Clear
Select Case CommEngine.connected
Case True
Dim Item As ACMenuItem = ACToolBarLight1.Menu.Add2(0, 0, "mnuConnection", Null)
Item.ShowAsAction = Item.SHOW_AS_ACTION_ALWAYS
UpdateIcon("mnuConnection", LoadBitmap(File.DirAssets, "power-green.png"))
Case False
Dim Item As ACMenuItem = ACToolBarLight1.Menu.Add2(0, 0, "mnuConnection", Null)
Item.ShowAsAction = Item.SHOW_AS_ACTION_ALWAYS
UpdateIcon("mnuConnection", LoadBitmap(File.DirAssets, "power-red.png"))
End Select
Dim Item As ACMenuItem = ACToolBarLight1.Menu.Add2(0, 0, "mnuClear", Null)
Item.ShowAsAction = Item.SHOW_AS_ACTION_ALWAYS
UpdateIcon("mnuClear", LoadBitmap(File.DirAssets, "trash.png"))
End Sub