LucaMs Expert Licensed User Longtime User Mar 21, 2022 #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 Is Sleep(0) necessary then? I am having trouble with this in creating a custom view which contains B4XImageViews.
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 Is Sleep(0) necessary then? I am having trouble with this in creating a custom view which contains B4XImageViews.
Erel B4X founder Staff member Licensed User Longtime User Mar 21, 2022 #2 2. Sleep is not necessary. 1. If you programmatically change mBase size or when you change mBackgroundColor. Upvote 0
2. Sleep is not necessary. 1. If you programmatically change mBase size or when you change mBackgroundColor.
LucaMs Expert Licensed User Longtime User Mar 21, 2022 #3 Erel said: 2. Sleep is not necessary. Click to expand... I am trying and instead it seems that Sleep (0) is necessary. Can I send you the (simple) project? Upvote 0
Erel said: 2. Sleep is not necessary. Click to expand... I am trying and instead it seems that Sleep (0) is necessary. Can I send you the (simple) project?
LucaMs Expert Licensed User Longtime User Mar 21, 2022 #4 LucaMs said: I am trying and instead it seems that Sleep (0) is necessary. Click to expand... 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 Upvote 0
LucaMs said: I am trying and instead it seems that Sleep (0) is necessary. Click to expand... 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
LucaMs Expert Licensed User Longtime User Mar 21, 2022 #6 LucaMs said: Solved ? Click to expand... B4J! For the moment I have not tried B4A ? Upvote 0