ArrayListObservable.onDisplay / onHide

22 views
Skip to first unread message

Chris Blume

unread,
Jul 19, 2013, 5:37:55 PM7/19/13
to android...@googlegroups.com
I looks like the current release and even early build of v0.6 doesn't have onDisplay and onHide in ArrayListObservable.


I ask because I seem to be running into a memory problem where scrolling through an infinite list is loading too many bitmaps (one per row) and my app crashes with an out-of-memory error. I think I should cache the bitmap to flash and unload the bitmaps from main memory when hidden. Or maybe when too far away from the visible range. But I can't seem to get onDisplay and onHide...

Thanks!

Andy Tsui

unread,
Jul 19, 2013, 9:28:50 PM7/19/13
to android...@googlegroups.com
Hi,

Please refer to other thread about memory issue:


The hide/display/onLoad is not handled in ArrayListObservable, but in the Adapter: https://github.com/gueei/AndroidBinding/blob/master/Core/AndroidBinding/src/gueei/binding/collections/CollectionAdapter.java

It's there in v0.6, don't worry. ICSDemo is using it too. 

Andy

--
You received this message because you are subscribed to the Google Groups "AndroidBinding" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbindin...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages