Android Question How I can load many ImageView

kosay

Member
Licensed User
Longtime User
Hello
I make a program to calculate columns (structure program) , and try to draw a column section .
I draw a rectangle by use Canvas
Now I need to draw circle and line and details (like 6T14 or 40 cm)
I try to use ImageView and do this :

B4X:
Dim N As Int
    N = Calculate.n
Dim c(n) As ImageView

Dim T As Double
T = b * 0.95
Dim f As Double
f = T /(N+1)
Dim i As Int
For i = 0 To N
c(i).Height = Rect1.Right*0.05
c(i).Width = Rect1.Right*0.05
c(i).Top = Activity.Width*0.15+l
c(i).Left= Activity.Width*0.45-(b/2) + i*f
c(i).Bitmap=LoadBitmap(File.DirAssets,"circle.png")
c(i).Initialize("C"&i)
Next

but when I debug it I test it , it stop with error in

c(i).Height = Rect1.Right*0.05

how I can solve this ?
can I draw lines and write beside then in label (as a detail) ?
thank you
 
Top