Android Question problem creating imageView

Almog

Active Member
Licensed User
Hello,

I tried to create imageview in code.

B4X:
Sub Globals
    Dim v As ImageView
End Sub

Sub Activity_Create(FirstTime As Boolean)
    v.Initialize("v")
    v.Enabled = True
    v.Visible = True
    v.SetLayout(X,Y,100dip,100dip)
    v.Gravity = Gravity.FILL
    v.Bitmap = LoadBitmap(File.DirAssets,"Exit.png")
End Sub

But no image created...

Does anybody know what is the problem and how to solve that?

Thanks in advance.
 
Top