iOS Question Image loaded with SimpleMediaManager disappears

angel_

Well-Known Member
Licensed User
Longtime User
I have created a draggable CustomView consisting of a panel (pnlImage) with an image (local) that is loaded with SimpleMediaManager, after adding (by code) several CustomView with their image to a panel (pnlMain), sometimes, when adding a new one CustomView the images of the other CustomViews that were already in the panel (pnlMain) disappear, and only the image of the last added elements is shown, the other CustomViews are in the panel (pnlMain) they do not disappear but the image is not displayed if I count ( with GetAllViewsRecursive) how many views are in the (pnlImage) comes out 0, in which they are visible the value is 2.

I have the same code on Android and I have not noticed this behavior.

Can it be a problem with smm? Any idea how to "refresh" the image?
 

angel_

Well-Known Member
Licensed User
Longtime User
I have tried to reproduce the problem but I have not succeeded, I know it is difficult (or impossible) to give a solution only with the video but I upload it in case someone has any suggestion of where the problem may be.

The video shows a draggable custom view with a panel to which I load an image with smm, when adding a new custom view the images disappear, the customviews are there, as you can see at the end of the video I can drag them but they are not displayed.

It happens both iPhone and iPad but it doesn't always play (on Android it never happens)

 
Upvote 0

angel_

Well-Known Member
Licensed User
Longtime User
Yes it seems a problem of "hierarchy" of views I will continue doing tests, thank you.
 
Upvote 0

angel_

Well-Known Member
Licensed User
Longtime User
After several tests I think the problem is that I Initialize SimpleMediaManager in B4XMainPage (in B4XPage_Created) and I use it inside a class (CustomView), Should I Initialize SMM inside the class or can I keep it in B4XMainPage?
 
Upvote 0
Top