#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#Extends: android.support.v7.app.AppCompatActivity
#End Region
#If Java
public boolean _onCreateOptionsMenu(android.view.Menu menu) {
if (processBA.subExists("activity_createmenu")) {
processBA.raiseEvent2(null, true, "activity_createmenu", false, new de.amberhome.objects.appcompat.ACMenuWrapper(menu));
return true;
}
else
return false;
}
#End If
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private ToolBar As ACToolBarLight
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Listviewer")
End Sub
Sub Activity_Resume
Log("Activity_Resume Code End")
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
#IgnoreWarnings: 11
Sub Activity_CreateMenu(Menu As ACMenu)
Log("Activity_CreateMenu Start")
Menu.Clear
Dim item As ACMenuItem
Menu.AddWithGroup2(0, 10, 0, "Menu1", Null)
Menu.AddWithGroup2(1, 20, 0, "Menu2", Null)
Menu.AddWithGroup2(2, 30, 0, "Menu3", Null)
End Sub