JakeWharton/ActionBarSherlock — Issue #246: Invisible split action bar reacts tapping
Author: bossturbo
Created: 2012-02-10 08:18:23+00:00
State: open

Thanks this great libarary in advance.

I found the title issue in my phone (API 10).

Split action bar can be visible but still handles tapping events
when the hide() method is called in onOptionsItemSelected(), not in onCreate().
If I post hide() in onCreate(), the issue occurs too.

This does not occur in API 15 emulator.

I think this issue is related to the following article.
http://stackoverflow.com/questions/4728908/android-view-with-view-gone-still-receives-ontouch-and-onclick

If I call the clearAnimation() method of the split view like below, the issue doesn't occur.

// ActionBarImpl.java
if (mSplitView != null && mContextDisplayMode == CONTEXT_DISPLAY_SPLIT) {
mSplitView.setVisibility(View.GONE);
// added
mSplitView.clearAnimation();
}

But, this solution is not the best, I think.
Native action bar implementation seems to be the same as ABS's at this point.