android - Action Bar Sherlock - Odd menu behaviour when hardware menu button is present -


i seeing strange behaviour abs whenever hardware menu present on device. menu items aught on actionbar not appear. pressing menu button open overflow , items expect there appear.

the app in question consists of main sherlockfragmentactivity, swaps out various sherlockfragments. of fragments contain fragmentstatepagers host many other sherlockfragments. it's fragments appear in pagers exhibit problem.

i create menus in usual manner

mainactivity.java

@override public boolean oncreateoptionsmenu(menu menu) {      menuinflater inflater = getsupportmenuinflater();     inflater.inflate(r.menu.activity_main, menu);     return super.oncreateoptionsmenu(menu);  } 

fragment1.java

@override public void oncreateoptionsmenu(menu menu, menuinflater inflater) {     super.oncreateoptionsmenu(menu, inflater);     inflater.inflate(r.menu.menu_fragment_one, menu); } 

interestingly, whenever navigate away fragment key see missing menu items half second. though on previous fragment.

this problem seems pretty uniform across android versions, there needs hardware menu key present.

any appreciated.

-- edit -- looks pressing actual menu key , opening overflow menu closing it, causes missing items appear. strange.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -