'Creates a B4XImageView. You need to add B4XImageView.mBase to the layout tree.
Public Sub CreateB4XImageView As B4XImageView
Dim iv As B4XImageView
iv.Initialize(Null, "") ' <- ------------------------------Here I think
Dim base As B4XView = xui.CreatePanel("")
base.SetLayoutAnimated(0, 0, 0, 100dip, 100dip)
iv.DesignerCreateView(base, Null, CreateMap("Round": False, "ResizeMode": "FIT", "BackgroundColor": 0xFFAAAAAA, "CornersRadius": 0))
Return iv
End Sub