Open blork opened 12 years ago
This is some kind of race condition which is introduced by using the ViewPager
which is almost certainly a duplicate of #351. You'll notice that if you give the same treatment to the regular "Tabs" example (.FragmentTabs
) this bug is not present.
Also see: http://b.android.com/29472
When swiping between fragments (which have an options menu) in a pager, the action items exhibit strange behaviour when in the action bar is in split mode. Icons appear to overlay, text disappears, and the items become unclickable. If the fragments are switched by clicking a tab (i.e. not swiping), then they work fine.
This behaviour can be seen in the fragment demo app included with the library. Change the manifest like so:
adding 'android:uiOptions="splitActionBarWhenNarrow"'. Then start this activity (Tabs and Pager).
Screenshots:
More images.