I have implemented my own header in place of the typical action bar, but would like to keep the original contextual action bar available when text is selected within the WebView.
Unfortunately, what happens is that the contextual action bar is inserted above my header, pushing the header down. I would rather it cover my header.
I think the best way to handle this is to hide my header when the CAB is opened, and restore the header afterwords. This would provide behavior more consistent with the stock Action Bar found on many apps.
I have found what might be a way to detect when the CAB is opened, but is this the right way? And more importantly, how can I detect when the CAB is closed to restore my header?