6

While working with the ActionBar tabs (being fragments) that can be swiped with a ViewPager I recognized that the custom menu options for each fragment are added pretty lately to the ActionBar.

This is the behavior I recognized:

  1. Swipe to the next tab
  2. Tab reached
  3. ~ 10ms with a empty bar Options
  4. Item from the fragment appears in the ActionBar

The "10ms gap" looks pretty ugly and it would be great to solve that problem.

I have looked through the native Android applications and I am able to reproduce the problem in the native ICS/JB dialer. (swiping from the contacts tab to the call log) When I look at the Play Movies app the "10ms gap" is missing (swiping from movies to personal movies) so it should be possible to solve the problem somehow.

It is interesting as well that the gap is missing when clicking on the tab. The click causes the options item to appear instantly.

It would be great if someone could help me solving the problem.

4

0 回答 0