I have an overridden FragmentPagerAdapter using the compatibility package. 

I use it to page between 3 fixed fragments at the bottom of my phone layout 
in my main activity. 

It worked fine, until I added 
android:configChanges="keyboardHidden|orientation" in my manifest. 

In order to make the backstack act right, I am now handling things in 
onConfigurationChanged in my main activity.

I do re-inflate the layout, and re-create and add the FragmentPagerAdapter 
to the ViewPager defined in the layout in onConfigurationChanged.

However, when I change my configuration, what I get is a blank ViewPager. 

Basically, http://code.google.com/p/android/issues/detail?id=19211

I have tried caching  the PagerAdapter and tried recreating the ViewPager.

I've even tried reinflating the fragments' layouts in their own 
onConfigurationChanged methods. 

Nothing seems to work.

More stuck on this than I've been on anything with Android.   Any ideas 
would be appreciated. 

-- 
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

Reply via email to