Re: [android-developers] Re: [Fragments/supportv4] How do I make ViewPager/TabHost attatch all tabs and not just the current and the one next to it?

2011-09-19 Thread Gustaf Carleson
Thank you both very much for your input! Brgds, Gustaf Carleson On Fri, Sep 16, 2011 at 3:44 PM, Streets Of Boston flyingdutc...@gmail.comwrote: If you just need your tabs *instantiated *(as a Java Object), you can do this in your activity. Pre-instantiate all 4 of them (new MyFragment() 4

[android-developers] Re: [Fragments/supportv4] How do I make ViewPager/TabHost attatch all tabs and not just the current and the one next to it?

2011-09-16 Thread Streets Of Boston
If you just need your tabs *instantiated *(as a Java Object), you can do this in your activity. Pre-instantiate all 4 of them (new MyFragment() 4 times), add them to a list and use this list in the FragmentPagerAdapter's * 'getItem(int)*' method. If you need your MyFragments to be *attached*