Android Question How to add B4XImageView into BBCodeView?

Hanz

Active Member
Hi,

Adding an imageview inside the BBCodeView is simple but I can't add the B4XImageView just like the imageview with the following code:

B4X:
Dim b4xiv As B4XImageView
b4xiv.Initialize("", "b4xiv")
b4xiv.Bitmap = job.GetBitmap

bbcMessageContent.Views.Put("iv", iv)

bbcMessageContent.Text = $"
[View=b4xiv Vertical 20/]
"$

And I get this error:
B4X:
java.lang.RuntimeException: Object should first be initialized (B4XView).

Thanks.
 
Top