B4J Question [Solved] B4XImageView - Update

LucaMs

Expert
Licensed User
Longtime User
  1. When should Update of B4XImageView be called? I assume if you change the size of the B4XImageView and maybe when you set a new bitmap
  2. Is Sleep(0) necessary then?

I am having trouble with this in creating a custom view which contains B4XImageViews.
 

LucaMs

Expert
Licensed User
Longtime User
I am trying and instead it seems that Sleep (0) is necessary.
By making several attempts I happen to be stoned 🥴

I had used "normal" ImageViews but it seemed that the bitmaps were not centered/sized correctly.
B4XImageView had solved this problem. Now, without writing update and sleep after each change of mBase size, the image was perfect but not the size of the B4XImageViews; adding both, update and sleep, the dimensions are correct but the image is not :confused:
 
Upvote 0
Top