Thursday, September 8, 2011

[android-developers] ViewFlipper with arbitrary number of Views

Hi!
I'm developing a simple photo gallery application that pulls files
from the Net and uses a ViewFlipper to change Views.
Since I don't know how many Views the ViewFlipper will have, I have to
add all the views in code and not in XML.

My question is: are all the Views of the ViewFlipper loaded in RAM? If
I use, fo instance, a gallery with 100 or even 1000 photos with
320x480, will I run the risk of running out of memory or is Android
smart enough to and fetch and drop Views from memory as needed?

The alternative is the use a ViewFlipper with just 3 views (current,
previous and next) and load photos as needed but it is a cumbersome
process. Nevertheless, if anyone has a code example, I will be very
grateful.

Thanks in advance!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment