On Thu, Sep 8, 2011 at 3:45 PM, Pinheiro <[email protected]> wrote: > 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.
Consider using AdapterViewFlipper on Honeycomb. > My question is: are all the Views of the ViewFlipper loaded in RAM? Yes. > 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? You will run out of heap space. > 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. Hopefully, later this year, AdapterViewFlipper will hit the AOSP repository, and we can look to try it out on earlier versions of Android. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

