Android Question Bitmapdrawable not working after activity_resume

leitor79

Active Member
Licensed User
Longtime User
Hi,

I have 3 Bitmapdrawables that load into a customlistview item:

B4X:
Item.img.Bitmap = bd1.Bitmap

bd1 = bitmapdrawable
Item = custom type, containing...
img = imageview object

This works fine... until I switch to another app, and come back... then, I don't get exceptions but the image is not shown.

This is my code in Activity_Create (should it be initialized only if firstime=true?)
B4X:
bd1.Initialize(LoadBitmap(File.DirAssets, "first.png"))

I've tried putting the initialization in Activity_Resume but no changes.

bd1 is declared in sub Globals.



Thank you!
 

leitor79

Active Member
Licensed User
Longtime User
Solved.

Wasn't a bitmapdrawable problem. It was due creating a new panel for the customlistiview and not assigning the new views to the current item.

Regards!
 
Upvote 0

Similar Threads

Top