Android fragment menu options being rendered too slow on ViewPager swipe
<p>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. </p>

<p>This is the behavior I recognized: </p>

<ol>
<li>Swipe to the next tab </li>
<li>Tab reached</li>
<li>~ 10ms with a empty bar Options</li>
<li>Item from the fragment appears in the ActionBar</li>
</ol>

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

<p>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.</p>

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

<p>It would be great if someone could help me solving the problem.  </p>
