I have just to understand... (I think so)
#Region Activity Attributes
#FullScreen: true
#IncludeTitle: false
#End Region
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.
'***************************************
' Parameter of Module B (Main menu)
'***************************************
Dim b,c, timebotton As Double
b=0.65
c=150
Dim language As String
language="EN"
Dim spf As Int
spf=25
timebotton=200
'***************************************
Dim modegame As Int
modegame=1
Dim x,y,a,ho As Double
Dim imageview1,imageview2 As ImageView
Dim picture1,picture2 As BitmapData
Dim picture1b,picture2b As Bitmap
Dim AcSf As AcceleratedSurface
Dim IU As AS_ImageUtils
Dim gv As GameView
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")
AcSf.Initialize("AcSf", True)
Activity.AddView(AcSf, 0, 0, 100%x, 100%y)
gv.Initialize("gv")
Activity.AddView(gv, 0, 0, 100%x, 100%y)
gv.BitmapsData.Add(picture1)
gv.BitmapsData.Add(picture2)
Activity.LoadLayout("testpictures")
x=Activity.Width/100.000
y=Activity.Height/100.000
imageview1.Visible=True
a=0.23
imageview1.Width=110*x*a
imageview1.Height=130*x*a
imageview1.Left=1*x
imageview1.Top=20*x
imageview2.Visible=True
a=0.23
imageview2.Width=330*x*a
imageview2.Height=110*x*a
imageview2.Top=20*x
imageview2.Left=24*x
picture1.Bitmap = IU.LoadScaledBitmap(File.DirAssets,"questionbotton_110x130.png",110*1.84,130*1.84,True)
picture2.Bitmap = IU.LoadScaledBitmap(File.DirAssets,"score_330x110.png",330*1.84,110*1.84,True)
picture1.DestRect.Initialize(8, 380, 110*1.84+8, 130*1.84+380)
picture2.DestRect.Initialize(192, 380, 330*1.84+192, 110*1.84+380)
picture1b = IU.LoadScaledBitmap(File.DirAssets,"questionbotton_110x130.png",110*1.84,130*1.84,False)
picture2b = IU.LoadScaledBitmap(File.DirAssets,"score_330x110.png",330*1.84,110*1.84,False)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub AcSf_Draw(AC As AS_Canvas)
'AC.DrawBitmapAt(picture1, 8, 380)
'AC.DrawBitmapAt(picture2, 192, 380)
AC.DrawBitmapAt(picture1b, 8, 600)
AC.DrawBitmapAt(picture2b, 192, 600)
End Sub
It works, the quality is high! it is great!