JakeWharton/ActionBarSherlock — Issue #351: ViewPager Action Bar Items not showing
Author: ericklee
Created: 2012-03-09 07:27:50+00:00
State: open

The ViewPager is set up like this:
http://developer.android.com/reference/android/support/v4/view/ViewPager.html

I have 4 Fragments under the ViewPager and each Fragment may have difference menu item which setShowAsAction is set to SHOW_AS_ACTION_ALWAYS

setHasOptionMenu(true) has put in onCreate method in the Fragment.

The Action Items are working fine when the activity first created.
But if I flip the fragment quickly, at some point all Action Items will be disappeared.
The Action Items can only be restored if you change the orientation of the phone.