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:

Code:
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?)
Code:
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!
 
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

Replies
15
Views
55K
D
  • Question Question
2 3 4
Replies
65
Views
27K
Deleted member 103
D
Back
Top