A Almog Active Member Licensed User Sep 20, 2018 #1 Hello, I tried to create imageview in code. B4X: Expand Collapse Copy 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.
Hello, I tried to create imageview in code. B4X: Expand Collapse Copy 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.
DonManfred Expert Licensed User Longtime User Sep 20, 2018 #2 You did not added it to the Activity Upvote 0
A Almog Active Member Licensed User Sep 20, 2018 #3 DonManfred said: You did not added it to the Activity Click to expand... Is it possible to create imageview without adding to activity through designer, for example to add random amount of imageView? Upvote 0
DonManfred said: You did not added it to the Activity Click to expand... Is it possible to create imageview without adding to activity through designer, for example to add random amount of imageView?
Erel B4X founder Staff member Licensed User Longtime User Sep 21, 2018 #4 Yes, it is possible. It is explained in the programming guide and here: Upvote 0
A Almog Active Member Licensed User Sep 24, 2018 #5 Erel said: Yes, it is possible. It is explained in the programming guide and here: Click to expand... Thank you Upvote 0
Erel said: Yes, it is possible. It is explained in the programming guide and here: Click to expand... Thank you