ActionBarSherlock icon indicating copy to clipboard operation
ActionBarSherlock copied to clipboard

option menu item do not response

Open stevechapce opened this issue 12 years ago • 8 comments

Situation:

  1. Fragment Activity contains two fragments, using TabsPaging as the demo.
  2. two different fragment has its own optionmenu and set in onCreateOptionsMenu in its own class.
  3. 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:

  1. This problem will not occur in ICS, ICS is working perfectly as what i want.
  2. 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.

stevechapce avatar Jun 22 '12 07:06 stevechapce

Probably a dupe of #510

JakeWharton avatar Jun 22 '12 07:06 JakeWharton

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)

andyghiuta avatar Jun 24 '12 15:06 andyghiuta

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

stevechapce avatar Jun 26 '12 10:06 stevechapce

I confirm this is happening for me too only on <ICS

Shusshu avatar Aug 15 '12 08:08 Shusshu

Please add a test case to the known-bugs sample on the dev branch.

SimonVT avatar Jan 23 '13 18:01 SimonVT

This app : https://play.google.com/store/apps/details?id=com.afrogleap.zorgenzekerheid&hl=en should have the problem on android 2.3.x

Shusshu avatar Jan 23 '13 19:01 Shusshu

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 avatar Jan 23 '13 19:01 SimonVT

@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.

androidmoney avatar Feb 03 '13 09:02 androidmoney