ActionBarSherlock
ActionBarSherlock copied to clipboard
option menu item do not response
Situation:
- Fragment Activity contains two fragments, using TabsPaging as the demo.
- two different fragment has its own optionmenu and set in onCreateOptionsMenu in its own class.
- the default fragment will option menu item does not response and does not fire the onOptionsItemSelected ( actually, the screen will not show onclick highlight)
More finding:
- This problem will not occur in ICS, ICS is working perfectly as what i want.
- After slide to another fragment and slide back to the "problem" fragment, it works as expected, the button was being fired.
conclusion: it only occur on non-ICS version and the first time to load. Is that a bug or i had doing something wrong?
Instead, may i ask a stupid question, how can i ignore all ICS layout ? i want ICS also can use that UGLY big Tab and the edittext box instead a line.thank you very much.
Probably a dupe of #510
I have the same issue. A few more details: I have also two fragments, both with lists which they load asynchronously. Both fragments have a refresh button in the menu. Only when loading the activity the first time and going to the second tab, the refresh is not responding (taping it once). But if I tap an item in the list, then it is executing the action it was supposed to. The refresh button in the first tab is disappearing when I click the refresh in the second tab (when it is not responding)
but i didnt call getSherlockActivity().invalidateOptionsMenu(); and it only not showing in the first time and in sdk below 11.
Anyway will have a try on the 4.01 version tonight, thanks
I confirm this is happening for me too only on <ICS
Please add a test case to the known-bugs sample on the dev branch.
This app : https://play.google.com/store/apps/details?id=com.afrogleap.zorgenzekerheid&hl=en should have the problem on android 2.3.x
Can't really use a closed source app for debugging. And besides, a complete app is too much noise. A simple example added to the known-bugs project is preferred.
@SimonVT Dude, no offense, but you need to tone it down a bit. You are absolutely right about what you are saying, but you are coming across as an a-hole on here on all the other threads.