Re: [android-developers] Replacing a Fragment Inside of ViewPager

2011-12-06 Thread TreKing
On Sun, Dec 4, 2011 at 4:22 PM, Alex Fu wrote: > Also, the reason I am not letting the application recreate everything on > orientation change is because I have some complex data I want to retain. > http://developer.android.com/reference/android/app/Fragment.html#setRetainInstance(boolean) ---

[android-developers] Replacing a Fragment Inside of ViewPager

2011-12-05 Thread Alex Fu
In my application I have 2 fragments existing in 1 activity. On orientation change, I would like to have my 2nd fragment to use a different layout and since I have my Activity set with android:configChanges="orientation" in the manifest, changes will be managed by the Activity. So I would have to r