Guest User

Untitled

a guest
Mar 30th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Region  Project Attributes
  2.     #ApplicationLabel: B4A Example
  3.     #VersionCode: 1
  4.     #VersionName:
  5.     'SupportedOrientations possible values: unspecified, landscape or portrait.
  6.     #SupportedOrientations: unspecified
  7.     #CanInstallToExternalStorage: False
  8. #End Region
  9.  
  10. #Region  Activity Attributes
  11.     #FullScreen: False
  12.     #IncludeTitle: True
  13. #End Region
  14.  
  15. Sub Process_Globals
  16.     'These global variables will be declared once when the application starts.
  17.     'These variables can be accessed from all modules.
  18.  
  19. End Sub
  20.  
  21. Sub Globals
  22.     'These global variables will be redeclared each time the activity is created.
  23.     'These variables can only be accessed from this module.
  24. Dim p As Panel
  25. Dim androidresources1 As AndroidResources
  26. End Sub
  27.  
  28. Sub Activity_Create(FirstTime As Boolean)
  29.     'Do not forget to load the layout file created with the visual designer. For example:
  30.     'Activity.LoadLayout("Layout1")
  31. p.Initialize("me")
  32. Activity.AddView(p, 0dip,0dip, 100%x, 100%y)
  33. p.Color = Colors.White
  34. Dim iv As ImageView
  35. iv.Initialize("iv")
  36. iv.Bitmap = LoadBitmap(File.DirAssets, "ic_action_email.png")
  37. p.AddView(iv, 16dip, 12dip, 32dip, 32dip)
  38. End Sub
  39.  
  40. Sub Activity_Resume
  41.  
  42. End Sub
  43.  
  44. Sub Activity_Pause (UserClosed As Boolean)
  45.  
  46. End Sub
Advertisement
Add Comment
Please, Sign In to add comment