Activity

Each activity module include a predefined Activity object.
Activity is the main component of your application.

Events:

Touch (Action As Int, X As Float, Y As Float)
KeyPress (KeyCode As Int) As Boolean 'Return True to consume the event
KeyUp (KeyCode As Int) As Boolean
WindowFocusChanged (Focused As Boolean)
Click
LongClick

Members:

  ACTION_DOWN As Int
  ACTION_MOVE As Int
  ACTION_UP As Int
  AddMenuItem (Title As String, EventName As String)
  AddMenuItem2 (Title As String, EventName As String, Bitmap As android.graphics.Bitmap)
  AddMenuItem3 (Title As String, EventName As String, Bitmap As android.graphics.Bitmap, AddToActionBar As Boolean)
  AddView (View As android.view.View, Left As Int, Top As Int, Width As Int, Height As Int)
  Background As android.graphics.drawable.Drawable
  CloseMenu
  Color As Int  [write only]
  Finish
  GetAllViewsRecursive As IterableList
  GetStartingIntent As Intent
  GetView (Index As Int) As View
  Height As Int
  Initialize (EventName As String)
  Invalidate
  Invalidate2 (Rect As android.graphics.Rect)
  Invalidate3 (Left As Int, Top As Int, Right As Int, Bottom As Int)
  IsInitialized As Boolean
  Left As Int
  LoadLayout (LayoutFile As String) As LayoutValues
  NumberOfViews As Int  [read only]
  OpenMenu
  RemoveAllViews
  RemoveViewAt (Index As Int)
  RequestFocus As Boolean
  RerunDesignerScript (Layout As String, Width As Int, Height As Int)
  SetActivityResult (Result As Int, Data As Intent)
  SetBackgroundImage (Bitmap As android.graphics.Bitmap)
  SetLayout (Left As Int, Top As Int, Width As Int, Height As Int)
  Tag As Object
  Title As CharSequence
  TitleColor As Int
  Top As Int
  Width As Int