Hi,
I have this randomly display of image based on one the forums given codes as shown below.
How can I pass the array value and use the reflection library to detect the touch event.
Thanks in advance
I have this randomly display of image based on one the forums given codes as shown below.
How can I pass the array value and use the reflection library to detect the touch event.
B4X:
For i = 1 To PZ.Length - 1
bmp = LoadBitmap(File.DirAssets,"image_"&i&".png")
vWidth = bmp.Width
vHeight = vWidth*(bmp.Height/bmp.Width)
img.Initialize("")
img.Bitmap = bmp
img.Gravity = Gravity.FILL
Activity.AddView(img,50%x-(vWidth/2),50%y-(vHeight/2),vWidth,vHeight)
img.Left = Rnd(100, 256)
img.top = Rnd(100, 500)
'------------------------------
'PZ(i).Initialize(img,"PZ",i,True,Me)
Next
Thanks in advance