Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private WImageView1 As ImageView
Private position As Int
Private DirectionLeft As Boolean
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("Layout1")
Move_Right
End Sub
Sub Move_Right
WImageView1.SetLayoutAnimated(1000,100%x-WImageView1.Width,0,100dip,100dip)
Starter.csu.CallSubPlus(Me, "Move_Left", 1000)
End Sub
Sub Move_Left
WImageView1.SetLayoutAnimated(1000,0,0,100dip,100dip)
Starter.csu.CallSubPlus(Me, "Move_Right", 1000)
End Sub